modelcontextprotocol / modelcontextprotocol/python-sdk
Enable FastMCP to filter tools, prompts, resources using a fine grained policy
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 24.3k
- 派生
- 4k
- 平均合并
- 1 天 1 小时
- 30 天内合并 PR
- 31
描述
Description
The authorization protocol allows MCP to implement course grained authorization checks e.g. a principal can/cannot access the server.
For advanced use cases though it is useful to be able to limit access on a per tool/resource/prompt basis.
There are a range of authorization tools that can be used however rather than being specific I suggest it is better to provide a plugin API that allows providers to pick their underlying authorization approach.
I have a patch that shows this idea, I'll open a draft pull request to illustrate the idea and allow for further testing & refinement.
References
No response
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先审查细粒度授权提案以及 issue 中提到的补丁,然后将其与 MCP 授权协议进行比较。当 FastMCP 提供一个 provider plugin API,能够分别独立地允许或拒绝对工具、提示和资源的访问,并通过测试完善这一方案时,工作就完成了。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- api, security
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100