MCP学习
MCP概述
MCP(Model Context Protocol)模型上下文协议
MCP用途
能让模型更好的使用各类工具(大模型本身只会问答)
MCP Host
支持MCP协议的软件,Cursor,Claude Desktop,Cline
MCP Server
本质上是一个符合MCP协议的程序,不一定联网
timeout: 60 (连接MCP Server的超时时间)
command: uv (程序)
transportType: stdio、sse(client和MCP Server沟通的方式)
以一个 MCP Server 为例
MCP Server,MCP Host,用户,模型交互流程

如何使用别人写的MCP Server
- mcp.so
 - mcpmarket.com
 - smithery.ai
 
MCP Server一般用 Python 或 Node 编写,对应启动程序 -> uvx,npx