Skip to content

feat: add MCP Weather Tool with scope-based access control#1

Merged
husky-parul merged 1 commit into
redhat-et:mainfrom
husky-parul:main
Sep 29, 2025
Merged

feat: add MCP Weather Tool with scope-based access control#1
husky-parul merged 1 commit into
redhat-et:mainfrom
husky-parul:main

Conversation

@husky-parul

Copy link
Copy Markdown
Collaborator
  • Implement minimal MCP resource server in FastAPI
    • Metadata endpoint at /.well-known/oauth-protected-resource
    • Advertises supported scopes: weather:current, weather:forecast
  • Add two tools with scope enforcement
    • /tools/current (requires weather:current)
    • /tools/forecast (requires weather:forecast)
  • Implement JWT validation + simple scope decorator
  • Add logging for granted/denied access
  • Update README with run instructions, token examples, and Mermaid diagram

@husky-parul husky-parul self-assigned this Sep 29, 2025
@husky-parul husky-parul merged commit f8117b1 into redhat-et:main Sep 29, 2025
- Implement minimal MCP resource server in FastAPI
  - Metadata endpoint at /.well-known/oauth-protected-resource
  - Advertises supported scopes: weather:current, weather:forecast
- Add two tools with scope enforcement
  - /tools/current (requires weather:current)
  - /tools/forecast (requires weather:forecast)
- Implement JWT validation + simple scope decorator
- Add logging for granted/denied access
- Update README with run instructions, token examples, and Mermaid diagram

Signed-off-by: Parul Singh <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant