feat: filter tools by OpenAPI tag via MCP_TOOLS_TAGS_INCLUDED
CI / Build and push docker image (push) Successful in 1m21s
CI / Build and push docker image (push) Successful in 1m21s
Adds a comma-separated tag allowlist alongside the existing name allowlist. When both are configured a tool must match both (AND). Unknown names/tags are ignored with a startup warning, and a filter that resolves to nothing exposes no tools rather than falling back to all of them. Startup logs the active filters and the exposed tools.
This commit is contained in:
1 parent
3ec12439b4
commit
321996f436
4 files changed
+89
-34
No files matched your search
+4
-2
@@ -33,9 +33,11 @@ MCP_HOST=0.0.0.0
|
||||
MCP_PORT=8000
|
||||
#MCP_SERVER_NAME=My API
|
||||
|
||||
# Comma-separated allowlist of tool names to expose. Unset or empty exposes
|
||||
# every generated tool; unknown names are ignored with a startup warning.
|
||||
# Comma-separated allowlists of tool names and OpenAPI tags to expose. Unset or
|
||||
# empty disables that filter; unknown entries are ignored with a startup
|
||||
# warning. When both are set, a tool must match both.
|
||||
#MCP_TOOLS_INCLUDED=getPetById,findPetsByStatus
|
||||
#MCP_TOOLS_TAGS_INCLUDED=pet
|
||||
|
||||
# Timeout in seconds for fetching the spec and calling the API (default: 30).
|
||||
#HTTP_TIMEOUT=30
|
||||
|
||||
Reference in new issue
Block a user