Client never connects

Open
#164 1 comment 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
swift
Domain
api

Research direction

Start by reproducing the sample client and server, then inspect the transport passed to client.connect(transport:). Compare the client and server setup around the await that does not return. Done means identifying why the connection remains pending and documenting or fixing the connection behavior.

Written by the indexing model from the issue text.

Description

bug

Just looking for some advice...

Ive followed the sample code and have both client and server. The server connects and seems fine. The client never connects and the line

let result = try await client.connect(transport: transport)

never moves past the await.

Is there something painfully obvious I'm missing?

TIA

Dominant language
Swift
Stars
1.6k
Forks
278
Avg merge
11h 15m
Merged PRs (30d)
46

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from modelcontextprotocol/swift-sdk

All issues in modelcontextprotocol/swift-sdk

Similar issues

More Swift issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.