mirror of
https://github.com/docker/docs.git
synced 2026-03-28 23:08:49 +07:00
82 lines
2.8 KiB
YAML
Generated
82 lines
2.8 KiB
YAML
Generated
command: docker mcp profile tools
|
|
short: Manage tool allowlist for servers in a profile
|
|
long: |-
|
|
Manage the tool allowlist for servers in a profile.
|
|
Tools are specified using dot notation: <serverName>.<toolName>
|
|
|
|
Use --enable to enable specific tools for a server (can be specified multiple times).
|
|
Use --disable to disable specific tools for a server (can be specified multiple times).
|
|
Use --enable-all to enable all tools for a server (can be specified multiple times).
|
|
Use --disable-all to disable all tools for a server (can be specified multiple times).
|
|
|
|
To view enabled tools, use: docker mcp profile show <profile-id>
|
|
usage: docker mcp profile tools <profile-id> [--enable <tool> ...] [--disable <tool> ...] [--enable-all <server> ...] [--disable-all <server> ...]
|
|
pname: docker mcp profile
|
|
plink: docker_mcp_profile.yaml
|
|
options:
|
|
- option: disable
|
|
value_type: stringArray
|
|
default_value: '[]'
|
|
description: 'Disable specific tools: <serverName>.<toolName> (repeatable)'
|
|
deprecated: false
|
|
hidden: false
|
|
experimental: false
|
|
experimentalcli: false
|
|
kubernetes: false
|
|
swarm: false
|
|
- option: disable-all
|
|
value_type: stringArray
|
|
default_value: '[]'
|
|
description: 'Disable all tools for a server: <serverName> (repeatable)'
|
|
deprecated: false
|
|
hidden: false
|
|
experimental: false
|
|
experimentalcli: false
|
|
kubernetes: false
|
|
swarm: false
|
|
- option: enable
|
|
value_type: stringArray
|
|
default_value: '[]'
|
|
description: 'Enable specific tools: <serverName>.<toolName> (repeatable)'
|
|
deprecated: false
|
|
hidden: false
|
|
experimental: false
|
|
experimentalcli: false
|
|
kubernetes: false
|
|
swarm: false
|
|
- option: enable-all
|
|
value_type: stringArray
|
|
default_value: '[]'
|
|
description: 'Enable all tools for a server: <serverName> (repeatable)'
|
|
deprecated: false
|
|
hidden: false
|
|
experimental: false
|
|
experimentalcli: false
|
|
kubernetes: false
|
|
swarm: false
|
|
examples: |4-
|
|
# Enable specific tools for a server
|
|
docker mcp profile tools my-profile --enable github.create_issue --enable github.list_repos
|
|
|
|
# Disable specific tools for a server
|
|
docker mcp profile tools my-profile --disable github.create_issue --disable github.search_code
|
|
|
|
# Enable and disable in one command
|
|
docker mcp profile tools my-profile --enable github.create_issue --disable github.search_code
|
|
|
|
# Enable all tools for a server
|
|
docker mcp profile tools my-profile --enable-all github
|
|
|
|
# Disable all tools for a server
|
|
docker mcp profile tools my-profile --disable-all github
|
|
|
|
# View all enabled tools in the profile
|
|
docker mcp profile show my-profile
|
|
deprecated: false
|
|
hidden: false
|
|
experimental: false
|
|
experimentalcli: false
|
|
kubernetes: false
|
|
swarm: false
|
|
|