Require authentication for accessing MCP tools

This commit is contained in:
Jan Böhmer 2026-07-25 21:35:27 +02:00
parent 8b484d5776
commit 32669b2cc0
3 changed files with 14 additions and 0 deletions

View file

@ -73,3 +73,6 @@ security:
- { path: "^/api", allow_if: 'is_granted("@api.access_api") and is_authenticated()' }
# Restrict access to KICAD to users, which has API access permission
- { path: "^/kicad-api", allow_if: 'is_granted("@api.access_api") and is_authenticated()' }
# Restrict MCP access to users, which has the MCP access permission
- { path: "^/mcp", allow_if: 'is_granted("@api.use_mcp") and is_authenticated()' }