Skip to content

How to create a mcp client using Swift? #58

Open
@MenJH

Description

@MenJH

hello, @mattt , I am a swift beginner, I want to write a swift version of client that mimics the python example

Now that I have started a python server before swift client initialization, I wonder if I need to inject something into StdioTransport() before client initialization? Do the initialization directly as in the documentation?

python client link: https://modelcontextprotocol.io/quickstart/client
swift client link: https://github.com/modelcontextprotocol/swift-sdk?tab=readme-ov-file#basic-client-setup

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions