mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-07-27 11:41:36 +00:00
Require authentication for accessing MCP tools
This commit is contained in:
parent
8b484d5776
commit
32669b2cc0
3 changed files with 14 additions and 0 deletions
|
|
@ -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()' }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue