Skip to content

Commit a824153

Browse files
committed
Sync open source content 🐝 (from 76186d8a583034ab0441394055f8cac5eebc191b)
1 parent ef87b4d commit a824153

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

docs/standalone-mcp/customize-tools.mdx

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,14 @@ actions:
122122

123123
### Specify scopes at runtime
124124

125-
When starting the MCP server, you can specify which scopes to include:
125+
When starting the MCP server, you can specify which scopes to include using the `--scope` flag:
126126

127127
```json
128128
{
129129
"mcpServers": {
130130
"MyAPI": {
131131
"command": "npx",
132-
"args": ["your-npm-package@latest", "start"]
132+
"args": ["your-npm-package@latest", "start", "--scope", "read"],
133133
"env": {
134134
"API_TOKEN": "your-api-token-here"
135135
}
@@ -138,18 +138,32 @@ When starting the MCP server, you can specify which scopes to include:
138138
}
139139
```
140140

141-
This example configuration only mounts tools tagged with the `read` scope, creating a read-only server.
141+
This example configuration only mounts tools tagged with the `read` scope, creating a read-only server. You can specify multiple scopes by repeating the flag:
142+
143+
```json
144+
{
145+
"mcpServers": {
146+
"MyAPI": {
147+
"command": "npx",
148+
"args": ["your-npm-package@latest", "start", "--scope", "read", "--scope", "admin"],
149+
"env": {
150+
"API_TOKEN": "your-api-token-here"
151+
}
152+
}
153+
}
154+
}
155+
```
142156

143157
### Specify individual tools
144158

145-
You can further limit the subset of tools mounted on an MCP server by specifying individual tool names:
159+
You can further limit the subset of tools mounted on an MCP server by specifying individual tool names using the `--tool` flag:
146160

147161
```json
148162
{
149163
"mcpServers": {
150164
"MyAPI": {
151165
"command": "npx",
152-
"args": ["your-npm-package@latest", "start"]
166+
"args": ["your-npm-package@latest", "start", "--tool", "list-products", "--tool", "get-product"],
153167
"env": {
154168
"API_TOKEN": "your-api-token-here"
155169
}

0 commit comments

Comments
 (0)