MCP协议,全称 Model Context Protocol,是一套让 AI 模型与本地工具、数据源之间用统一格式对话的约定。它能做什么?简单说,你写一个 Python 函数,加上装饰器,AI 就能通过 JSON-RPC 2.0 消息调用它,拿到结构化结果后再转成自然语言回复。适合谁?适合需要把本地 ...
MCP 全称 Model Context Protocol,是一套让 AI 应用(Host)通过标准协议调用外部工具与数据源(Server)的通信规范。它解决的问题很具体:以前每接一个工具就要写一套适配代码,现在只要 Server 按 MCP 暴露能力,任何支持 MCP 的 Host 都能直接发现并调用。适合谁?
A Python 2.7 and 3.4+ server implementation of the JSON RPC 2.0 protocol. This library has been pulled out of the Python Language Server project. Asynchronous request handling is supported using ...