TwiScan
Hot
Communities
Account collections
Login
Register
English
日本語
한국의
简体中文
繁体中文
Register and share your invite link to earn from video plays and referrals.
Register now
Ren
@Ryrenz
AI Engineer | 分享实用 AI 工具和实战心得
Joined March 2025
689
Following
11.5K
Followers
Ren
@Ryrenz
2026.10.02 13:09
🪝 太强了,MCP Python SDK 能把你随手写的 Python 函数直接变成 Claude 能调用的工具。 它是 Model Context Protocol 的官方 Python 实现,GitHub 上已经揽获 2.4 万 star,近 4000 个 fork、450 多个 issue 还开着,9 月初刚发完 2.2.0。 以前想给 AI 接一个自己的小能力,真正费时间的不是那十行业务逻辑,而是外面那一圈:手写 JSON Schema 描述参数、解析请求、校验字段、再把协议的收发对上。十行的活儿,外面套两百行胶水。 用 MCP Python SDK 之后这一层整个没了。写一个带类型注解的函数,把文档字符串当说明写清楚,schema、参数解析、校验、协议握手它全替你生成,模板化的资源也是一个函数的事。本地调试用 stdio 子进程拉起来,上线换成 Streamable HTTP 就行,SSE 也在支持范围里。它还带了一个客户端类,哪天你要反过来写个程序去连别人的服务器,用的还是同一套东西。 把自己的工具接给 AI 用,门槛已经降到写一个函数了。 GitHub:
Show more
0
0
2
58
8
Forward to community
Most Popular Users
Tibo
@thsottiaux
930.7K Followers
TheStreet
@TheStreet
1.2M Followers
Seeking Alpha
@SeekingAlpha
344K Followers
The Wall Street Journal
@WSJ
22.3M Followers
CNBC
@CNBC
6.3M Followers
Benzinga
@Benzinga
345.3K Followers
Serenity
@aleabitoreddit
1.1M Followers
Stocktwits
@Stocktwits
1.2M Followers
zerohedge
@zerohedge
3.4M Followers
unusual_whales
@unusual_whales
5.4M Followers
Yahoo Finance
@YahooFinance
2.1M Followers
Elon Musk
@elonmusk
241.5M Followers
New York Post
@nypost
4.2M Followers
Reuters
@Reuters
26.4M Followers
OpenAI
@OpenAI
5.5M Followers