Skip to content

Enable FastMCP to filter tools, prompts, resources using a fine grained policy #1031

@davemssavage

Description

@davemssavage

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    authIssues and PRs related to Authentication / OAuthenhancementRequest for a new feature that's not currently supportedv2Ideas, requests and plans for v2 of the SDK which will incorporate major changes and fixes

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions