Cover image
Try Now
2025-04-14

快速实施人类的模型上下文协议(MCP)

3 years

Works with Finder

1

Github Watches

0

Github Forks

1

Github Stars

A Swift Package for the Model Context Protocol

Swift Platforms License

This was something I was working on, but there is now an official Swift SDK so I can only recommend to use the official version. This package will no longer be maintained or developeed.

ModelContextProtocol was an under-development Swift 6.0 implementation of Anthropic's Model Context Protocol (MCP), with the goal of providing an easy-to-use, pluggable Swift Package for MCP use across macOS, iOS, + Linux.

The package is split into three components:

  1. MCPCore: The core data types and functionality shared between the MCPClient and MCPServer.
  2. MCPClient: A relatively simple implementation for an MCPClient.
  3. MCPServer: An interface for a server to provide MCP functionality.

Features

  • 🏃 Modern Swift Concurrency - Built with Swift 6.0, leveraging actors, async/await, + Sendable
  • 🔒 Type-Safe - Full type safety for all MCP messages and operations
  • 🔌 Multiple Transports - Support for stdio and Server-Sent Events (SSE)
  • ⚡️ Performance - Efficient message handling with timeout and retry support
  • 🛠 Rich Capabilities - Support for resources, prompts, tools, and more
  • 📦 SwiftPM Ready - Easy integration through Swift Package Manager

Contributing

  1. Read the MCP Specification
  2. Fork the repository
  3. Create a feature branch
  4. Add tests for new functionality
  5. Submit a pull request

Limitations

  • StdioTransport does not work in sandboxed environments

相关推荐

  • av
  • 毫不费力地使用一个命令运行LLM后端,API,前端和服务。

  • WangRongsheng
  • 🧑‍🚀 llm 资料总结(数据处理、模型训练、模型部署、 o1 模型、mcp 、小语言模型、视觉语言模型)|摘要世界上最好的LLM资源。

  • 1Panel-dev
  • 🔥1Panel提供了直观的Web接口和MCP服务器,用于在Linux服务器上管理网站,文件,容器,数据库和LLMS。

  • rulego
  • ⛓️Rulego是一种轻巧,高性能,嵌入式,下一代组件编排规则引擎框架。

  • Byaidu
  • PDF科学纸翻译带有保留格式的pdf -基于ai完整保留排版的pdf文档全文双语翻译

  • lasso-security
  • 基于插件的网关,可协调其他MCP,并允许开发人员在IT企业级代理上构建。

  • hkr04
  • 轻巧的C ++ MCP(模型上下文协议)SDK

  • sigoden
  • 使用普通的bash/javascript/python函数轻松创建LLM工具和代理。

  • RockChinQ
  • 😎简单易用、🧩丰富生态 -大模型原生即时通信机器人平台| 适配QQ / 微信(企业微信、个人微信) /飞书 /钉钉 / discord / telegram / slack等平台| 支持chatgpt,deepseek,dify,claude,基于LLM的即时消息机器人平台,支持Discord,Telegram,微信,Lark,Dingtalk,QQ,Slack

    Reviews

    3.5 (10)
    Avatar
    user_6s0l5yne
    2025-04-26

    As an avid user of the ModelContextProtocol (MCP), I've found it to be an indispensable tool in my daily workflow. Developed by the talented JakeSax, MCP simplifies complex tasks and enhances productivity with its user-friendly interface. The seamless start URL and welcoming information make onboarding a breeze. Highly recommend for anyone looking to streamline their processes!

    Avatar
    user_MT4L2nwz
    2025-04-26

    As a dedicated user of ModelContextProtocol (MCP) by JakeSax, I have found it incredibly efficient and user-friendly. The seamless integration and robust functionalities have significantly streamlined my workflow. Highly recommend MCP for anyone looking to enhance their modeling processes!

    Avatar
    user_FsCaMZek
    2025-04-26

    As a dedicated user of the ModelContextProtocol (MCP) by JakeSax, I can confidently say that it has revolutionized the way I manage and implement context protocols. The intuitive design and seamless integration into my existing workflow have significantly boosted my productivity. Highly recommended!

    Avatar
    user_Q4LsZRwD
    2025-04-26

    The ModelContextProtocol by JakeSax has revolutionized my workflow. It's intuitive, highly versatile, and seamlessly integrates with my projects. I appreciate the thoughtfulness in its design, making it incredibly user-friendly. Definitely a must-have for anyone serious about enhancing their modeling process!

    Avatar
    user_XcXugfwl
    2025-04-26

    As an avid user of the ModelContextProtocol application by JakeSax, I must say it has truly revolutionized my workflow. The intuitive design and seamless integration have made managing contexts a breeze. Its efficiency and user-friendly interface set it apart. Highly recommend to anyone looking to streamline their modeling processes!

    Avatar
    user_9CI78kZc
    2025-04-26

    As a dedicated user of ModelContextProtocol, I must say this tool has transformed my workflow dramatically. JakeSax has done an excellent job in creating a user-friendly and efficient application. With easy navigation and clear welcoming information, it’s perfect for both beginners and advanced users. Highly recommend giving it a try!

    Avatar
    user_6Kob6HQw
    2025-04-26

    As a dedicated user of the ModelContextProtocol (MCP) by JakeSax, I must say it has revolutionized the way we handle model context switching. The seamless integration and ease of use make it a go-to for any serious developer. Highly recommended for anyone looking to streamline their workflow and increase productivity!

    Avatar
    user_UZsi9IBn
    2025-04-26

    As an avid user of the ModelContextProtocol (MCP) by JakeSax, I am thoroughly impressed by its capabilities and ease of use. This tool offers comprehensive solutions for context management in various model frameworks, streamlining workflows significantly. The interface is intuitive, and the integration process is seamless, making it a must-have for anyone working in the field. Highly recommended!

    Avatar
    user_qx3C76Rw
    2025-04-26

    As a dedicated user of the ModelContextProtocol (MCP) created by JakeSax, I can confidently say that this tool has revolutionized my workflow. The interface is intuitive, and the robust functionality has significantly improved my productivity. Highly recommend it to anyone seeking efficiency and reliability in their projects!

    Avatar
    user_6EflFrqH
    2025-04-26

    As a dedicated user of the ModelContextProtocol (MCP) created by JakeSax, I must say this tool is a game-changer. It perfectly integrates various models into a seamless workflow, making my work more efficient and coherent. The ease of use and the comprehensive documentation are impressive, and the welcoming user interface ensures a smooth start. Highly recommend for anyone looking to streamline their modeling processes!