{"id":28096197,"url":"https://github.com/atorber/wcf-mcp-sse","last_synced_at":"2025-07-21T18:36:39.306Z","repository":{"id":290302440,"uuid":"972611212","full_name":"atorber/wcf-mcp-sse","owner":"atorber","description":"一个wcf的MCP封装，可以在此模板基础上继续添加自己的功能","archived":false,"fork":false,"pushed_at":"2025-04-28T04:26:29.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-29T12:41:09.478Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/atorber.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-25T11:10:17.000Z","updated_at":"2025-04-28T04:26:32.000Z","dependencies_parsed_at":"2025-04-28T05:38:10.361Z","dependency_job_id":null,"html_url":"https://github.com/atorber/wcf-mcp-sse","commit_stats":null,"previous_names":["atorber/wcf-mcp-sse"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/atorber/wcf-mcp-sse","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atorber%2Fwcf-mcp-sse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atorber%2Fwcf-mcp-sse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atorber%2Fwcf-mcp-sse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atorber%2Fwcf-mcp-sse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/atorber","download_url":"https://codeload.github.com/atorber/wcf-mcp-sse/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atorber%2Fwcf-mcp-sse/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266353098,"owners_count":23915894,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-21T11:47:31.412Z","response_time":64,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-13T16:18:40.984Z","updated_at":"2025-07-21T18:36:39.292Z","avatar_url":"https://github.com/atorber.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WCF-MCP\n\n\u003e !!! 注意注意，此项目仅为MCP探索交流目的，近期使用wcf封号严重，慎用！！！——2025-04-28\n\nWeChatFerry的MCP封装，使用MCP客户端发送消息\n\n- 基于[wcf-http](https://github.com/yuxiaoli/wcf-http)的MCP\n\n- 基于原生[WCF python客户端](https://github.com/atorber/WeChatFerryNext/tree/master/clients/python)的MCP\n\n## MCP配置\n\n```\ntbd\n```\n\n## 使用方法\n\n**注意**：请确保在 `.env` 文件或环境变量中提供 `ANTHROPIC_API_KEY`。\n\n```\nuv run weather.py\n\nuv run client.py http://0.0.0.0:8080/sse\n```\n\n```\nInitialized SSE client...\nListing tools...\n\nConnected to server with tools: ['get_alerts', 'get_forecast']\n\nMCP Client Started!\nType your queries or 'quit' to exit.\n\nQuery: whats the weather like in Spokane?\n\nI can help you check the weather forecast for Spokane, Washington. I'll use the get_forecast function, but I'll need to use Spokane's latitude and longitude coordinates.\n\nSpokane, WA is located at approximately 47.6587° N, 117.4260° W.\n[Calling tool get_forecast with args {'latitude': 47.6587, 'longitude': -117.426}]\nBased on the current forecast for Spokane:\n\nRight now it's sunny and cold with a temperature of 37°F and ...\n```\n\n## 为什么选择这种方式？\n\n这意味着 MCP 服务器现在可以作为一个运行中的进程，代理（客户端）可以随时随地连接、使用并断开连接。换句话说，基于 SSE 的服务器和客户端可以是解耦的进程（甚至可能在解耦的节点上）。这与基于 STDIO 的模式不同，在 STDIO 模式中客户端本身会将服务器作为子进程启动。这种方式更适合\"云原生\"的使用场景。\n\n### 通过 Smithery 安装\n\n要通过 [Smithery](https://smithery.ai/server/@sidharthrajaram/mcp-sse) 自动安装用于 Claude Desktop 的基于 SSE 的服务器和客户端：\n\n```bash\nnpx -y @smithery/cli install @sidharthrajaram/mcp-sse --client claude\n```\n\n### 服务器\n\n`weather.py` 是一个基于 SSE 的 MCP 服务器，它提供了一些基于国家气象服务 API 的工具。改编自 MCP 文档中的[示例 STDIO 服务器实现](https://modelcontextprotocol.io/quickstart/server)。\n\n默认情况下，服务器运行在 0.0.0.0:8080，但可以通过命令行参数进行配置：\n\n```\nuv run weather.py --host \u003cyour host\u003e --port \u003cyour port\u003e\n```\n\n### 客户端\n\n`client.py` 是一个 MCP 客户端，可以连接并使用基于 SSE 的 MCP 服务器提供的工具。改编自 MCP 文档中的[示例 STDIO 客户端实现](https://modelcontextprotocol.io/quickstart/client)。\n\n默认情况下，客户端连接到命令行参数中提供的 SSE 端点：\n\n```\nuv run client.py http://0.0.0.0:8080/sse\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatorber%2Fwcf-mcp-sse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatorber%2Fwcf-mcp-sse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatorber%2Fwcf-mcp-sse/lists"}