MCP Sampling Server 与 Client 实现
两种开发视角:Server 与 Client 实现1. MCP Server:发起 sampling(主动调用 LLM)typescript运行// server 主动向client请求LLM生成
const result await client.request({method: "sampling/createMessage",params: {m…
2026/7/21 16:44:17