Cover image
Try Now
2025-04-14

Eine schnelle Implementierung des Modellkontextprotokolls von Anthropic (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
  • Führen Sie mühelos LLM -Backends, APIs, Frontends und Dienste mit einem Befehl aus.

  • WangRongsheng
  • 🧑‍🚀 全世界最好的 llm 资料总结(数据处理、模型训练、模型部署、 O1 模型、 MCP 、小语言模型、视觉语言模型) | Zusammenfassung der weltbesten LLM -Ressourcen.

  • 1Panel-dev
  • 🔥 1Panel bietet eine intuitive Weboberfläche und einen MCP -Server, um Websites, Dateien, Container, Datenbanken und LLMs auf einem Linux -Server zu verwalten.

  • rulego
  • ⛓️Rugele ist ein leichter, leistungsstarker, leistungsstarker, eingebetteter Komponenten-Orchestrierungsregel-Motor-Rahmen für GO.

  • lasso-security
  • Ein Plugin-basiertes Gateway, das andere MCPs orchestriert und es Entwicklern ermöglicht, auf IT-Agenten zu bauen.

  • Byaidu
  • PDF wissenschaftliche Papierübersetzung mit erhaltenen Formaten - 基于 ai 完整保留排版的 pdf 文档全文双语翻译 , 支持 支持 支持 支持 google/deeptl/ollama/openai 等服务 提供 cli/gui/mcp/docker/zotero

  • hkr04
  • Leichtes C ++ MCP (Modellkontextprotokoll) SDK

  • sigoden
  • Erstellen Sie einfach LLM -Tools und -Argarten mit einfachen Bash/JavaScript/Python -Funktionen.

  • RockChinQ
  • 😎简单易用、🧩丰富生态 - 大模型原生即时通信机器人平台 | 适配 qq / 微信(企业微信、个人微信) / 飞书 / 钉钉 / diskord / telegram / slack 等平台 | 支持 Chatgpt 、 Deepseek 、 Diffy 、 Claude 、 Gemini 、 xai 、 ppio 、 、 ulama 、 lm Studio 、阿里云百炼、火山方舟、 siliconflow 、 qwen 、 mondshot 、 chatglm 、 sillytraven 、 mcp 等 llm 的机器人 / agent | LLM-basierte Instant Messaging Bots-Plattform, unterstützt Zwietracht, Telegramm, Wechat, 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!