Skip to content

Commit 0988f98

Browse files
Update Claude Code docs - 2025-08-27 | Updated: common-workflows.md,mcp.md settings.md,slash-commands.md
1 parent dcaa364 commit 0988f98

5 files changed

Lines changed: 90 additions & 18 deletions

File tree

docs/common-workflows.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ Suppose you're working on complex architectural decisions, challenging bugs, or
523523
```
524524

525525
```
526-
> think harder about edge cases we should handle
526+
> keep thinking about edge cases we should handle
527527
```
528528
</Step>
529529
</Steps>
@@ -542,7 +542,7 @@ Suppose you're working on complex architectural decisions, challenging bugs, or
542542
The way you prompt for thinking results in varying levels of thinking depth:
543543

544544
* "think" triggers basic extended thinking
545-
* intensifying phrases such as "think more", "think a lot", "think harder", or "think longer" triggers deeper thinking
545+
* intensifying phrases such as "keep thinking", "think more", "think a lot", or "think longer" triggers deeper thinking
546546

547547
For more extended thinking prompting tips, see [Extended thinking tips](/en/docs/build-with-claude/prompt-engineering/extended-thinking-tips).
548548
</Tip>

docs/docs_manifest.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
"common-workflows.md": {
2222
"original_url": "https://docs.anthropic.com/en/docs/claude-code/common-workflows",
2323
"original_md_url": "https://docs.anthropic.com/en/docs/claude-code/common-workflows.md",
24-
"hash": "ac1c508033364228c68a452e5b4a794af8bc6982fdd9c495f48803c93b90f878",
25-
"last_updated": "2025-08-26T21:03:54.125538"
24+
"hash": "4004b1fe2440bbebb2d8c041f944d4a79a7bb8c61bd3bd355596340a1cf3f723",
25+
"last_updated": "2025-08-27T18:05:39.042943"
2626
},
2727
"corporate-proxy.md": {
2828
"original_url": "https://docs.anthropic.com/en/docs/claude-code/corporate-proxy",
@@ -105,8 +105,8 @@
105105
"mcp.md": {
106106
"original_url": "https://docs.anthropic.com/en/docs/claude-code/mcp",
107107
"original_md_url": "https://docs.anthropic.com/en/docs/claude-code/mcp.md",
108-
"hash": "3110c23f7a50c398bd6fe914b71b45f4ae5672d68a42e9fa4f5f089c47e3b752",
109-
"last_updated": "2025-08-22T21:03:59.291460"
108+
"hash": "aedc4db3406451dc397d4b92c5903d343cfe4582d2f8d0782477a482cbd84344",
109+
"last_updated": "2025-08-27T18:05:46.641773"
110110
},
111111
"memory.md": {
112112
"original_url": "https://docs.anthropic.com/en/docs/claude-code/memory",
@@ -171,8 +171,8 @@
171171
"settings.md": {
172172
"original_url": "https://docs.anthropic.com/en/docs/claude-code/settings",
173173
"original_md_url": "https://docs.anthropic.com/en/docs/claude-code/settings.md",
174-
"hash": "c4522c192d6ace37dd5c3fe1c11adc30e6aad754bad7b8ff6fc6d76681a47761",
175-
"last_updated": "2025-08-26T18:06:01.457544"
174+
"hash": "847612a6dbf2cff6913f17f2d33b8e7769a45a90c82a45872a7ab679d407220b",
175+
"last_updated": "2025-08-27T18:05:52.647697"
176176
},
177177
"setup.md": {
178178
"original_url": "https://docs.anthropic.com/en/docs/claude-code/setup",
@@ -183,8 +183,8 @@
183183
"slash-commands.md": {
184184
"original_url": "https://docs.anthropic.com/en/docs/claude-code/slash-commands",
185185
"original_md_url": "https://docs.anthropic.com/en/docs/claude-code/slash-commands.md",
186-
"hash": "d196c5cf49d7ae86357c2ab23ec90a4f15eafadea28dacf4ade9ff0a09f34234",
187-
"last_updated": "2025-08-18T18:02:23.695887"
186+
"hash": "a92657563011b0d9cf1b59de5c493e3d3cb5f4f1f5aa31ae3a3acf3bd97d7750",
187+
"last_updated": "2025-08-27T18:05:53.748782"
188188
},
189189
"statusline.md": {
190190
"original_url": "https://docs.anthropic.com/en/docs/claude-code/statusline",
@@ -225,8 +225,8 @@
225225
}
226226
},
227227
"fetch_metadata": {
228-
"last_fetch_completed": "2025-08-27T15:05:13.114474",
229-
"fetch_duration_seconds": 19.743665,
228+
"last_fetch_completed": "2025-08-27T18:05:56.559982",
229+
"fetch_duration_seconds": 19.947657,
230230
"total_pages_discovered": 36,
231231
"pages_fetched_successfully": 37,
232232
"pages_failed": 0,
@@ -236,7 +236,7 @@
236236
"total_files": 37,
237237
"fetch_tool_version": "3.0"
238238
},
239-
"last_updated": "2025-08-27T15:05:13.114506",
239+
"last_updated": "2025-08-27T18:05:56.560012",
240240
"base_url": "https://raw.githubusercontent.com/mnestorov/cc-docs-mirror/main/docs/",
241241
"github_repository": "mnestorov/cc-docs-mirror",
242242
"github_ref": "main",

docs/mcp.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -714,6 +714,7 @@ claude mcp remove github
714714
* `user`: Available to you across all projects (was called `global` in older versions)
715715
* Set environment variables with `--env` flags (e.g., `--env KEY=value`)
716716
* Configure MCP server startup timeout using the MCP\_TIMEOUT environment variable (e.g., `MCP_TIMEOUT=10000 claude` sets a 10-second timeout)
717+
* Claude Code will display a warning when MCP tool output exceeds 10,000 tokens. To increase this limit, set the `MAX_MCP_OUTPUT_TOKENS` environment variable (e.g., `MAX_MCP_OUTPUT_TOKENS=50000`)
717718
* Use `/mcp` to authenticate with remote servers that require OAuth 2.0 authentication
718719
</Tip>
719720

@@ -1019,6 +1020,32 @@ You can use this in Claude Desktop by adding this configuration to claude\_deskt
10191020
* Note that this MCP server is simply exposing Claude Code's tools to your MCP client, so your own client is responsible for implementing user confirmation for individual tool calls.
10201021
</Tip>
10211022
1023+
## MCP output limits and warnings
1024+
1025+
When MCP tools produce large outputs, Claude Code helps manage the token usage to prevent overwhelming your conversation context:
1026+
1027+
* **Output warning threshold**: Claude Code displays a warning when any MCP tool output exceeds 10,000 tokens
1028+
* **Configurable limit**: You can adjust the maximum allowed MCP output tokens using the `MAX_MCP_OUTPUT_TOKENS` environment variable
1029+
* **Default limit**: The default maximum is 25,000 tokens
1030+
1031+
To increase the limit for tools that produce large outputs:
1032+
1033+
```bash
1034+
# Set a higher limit for MCP tool outputs
1035+
export MAX_MCP_OUTPUT_TOKENS=50000
1036+
claude
1037+
```
1038+
1039+
This is particularly useful when working with MCP servers that:
1040+
1041+
* Query large datasets or databases
1042+
* Generate detailed reports or documentation
1043+
* Process extensive log files or debugging information
1044+
1045+
<Warning>
1046+
If you frequently encounter output warnings with specific MCP servers, consider increasing the limit or configuring the server to paginate or filter its responses.
1047+
</Warning>
1048+
10221049
## Use MCP resources
10231050
10241051
MCP servers can expose resources that you can reference using @ mentions, similar to how you reference files.

docs/settings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ Claude Code supports the following environment variables to control its behavior
183183
| `MAX_THINKING_TOKENS` | Force a thinking for the model budget |
184184
| `MCP_TIMEOUT` | Timeout in milliseconds for MCP server startup |
185185
| `MCP_TOOL_TIMEOUT` | Timeout in milliseconds for MCP tool execution |
186-
| `MAX_MCP_OUTPUT_TOKENS` | Maximum number of tokens allowed in MCP tool responses (default: 25000) |
186+
| `MAX_MCP_OUTPUT_TOKENS` | Maximum number of tokens allowed in MCP tool responses. Claude Code displays a warning when output exceeds 10,000 tokens (default: 25000) |
187187
| `USE_BUILTIN_RIPGREP` | Set to `0` to use system-installed `rg` intead of `rg` included with Claude Code |
188188
| `VERTEX_REGION_CLAUDE_3_5_HAIKU` | Override region for Claude 3.5 Haiku when using Vertex AI |
189189
| `VERTEX_REGION_CLAUDE_3_5_SONNET` | Override region for Claude Sonnet 3.5 when using Vertex AI |

docs/slash-commands.md

Lines changed: 49 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,18 +88,40 @@ Meanwhile, a file at `~/.claude/commands/component.md` creates the command `/com
8888

8989
#### Arguments
9090

91-
Pass dynamic values to commands using the `$ARGUMENTS` placeholder.
91+
Pass dynamic values to commands using argument placeholders:
9292

93-
For example:
93+
##### All arguments with `$ARGUMENTS`
94+
95+
The `$ARGUMENTS` placeholder captures all arguments passed to the command:
9496

9597
```bash
9698
# Command definition
9799
echo 'Fix issue #$ARGUMENTS following our coding standards' > .claude/commands/fix-issue.md
98100

99101
# Usage
100-
> /fix-issue 123
102+
> /fix-issue 123 high-priority
103+
# $ARGUMENTS becomes: "123 high-priority"
101104
```
102105

106+
##### Individual arguments with `$1`, `$2`, etc.
107+
108+
Access specific arguments individually using positional parameters (similar to shell scripts):
109+
110+
```bash
111+
# Command definition
112+
echo 'Review PR #$1 with priority $2 and assign to $3' > .claude/commands/review-pr.md
113+
114+
# Usage
115+
> /review-pr 456 high alice
116+
# $1 becomes "456", $2 becomes "high", $3 becomes "alice"
117+
```
118+
119+
Use positional arguments when you need to:
120+
121+
* Access arguments individually in different parts of your command
122+
* Provide defaults for missing arguments
123+
* Build more structured commands with specific parameter roles
124+
103125
#### Bash command execution
104126

105127
Execute bash commands before the slash command runs using the `!` prefix. The output is included in the command context. You *must* include `allowed-tools` with the `Bash` tool, but you can choose the specific bash commands to allow.
@@ -165,7 +187,19 @@ description: Create a git commit
165187
model: claude-3-5-haiku-20241022
166188
---
167189

168-
An example command
190+
Create a git commit with message: $ARGUMENTS
191+
```
192+
193+
Example using positional arguments:
194+
195+
```markdown
196+
---
197+
argument-hint: [pr-number] [priority] [assignee]
198+
description: Review pull request
199+
---
200+
201+
Review PR #$1 with priority $2 and assign to $3.
202+
Focus on security, performance, and code style.
169203
```
170204

171205
## MCP slash commands
@@ -219,8 +253,19 @@ Use the `/mcp` command to:
219253
* Clear authentication tokens
220254
* View available tools and prompts from each server
221255

256+
### MCP permissions and wildcards
257+
258+
When configuring [permissions for MCP tools](/en/docs/claude-code/iam#tool-specific-permission-rules), note that **wildcards are not supported**:
259+
260+
***Correct**: `mcp__github` (approves ALL tools from the github server)
261+
***Correct**: `mcp__github__get_issue` (approves specific tool)
262+
***Incorrect**: `mcp__github__*` (wildcards not supported)
263+
264+
To approve all tools from an MCP server, use just the server name: `mcp__servername`. To approve specific tools only, list each tool individually.
265+
222266
## See also
223267

268+
* [Identity and Access Management](/en/docs/claude-code/iam) - Complete guide to permissions, including MCP tool permissions
224269
* [Interactive mode](/en/docs/claude-code/interactive-mode) - Shortcuts, input modes, and interactive features
225270
* [CLI reference](/en/docs/claude-code/cli-reference) - Command-line flags and options
226271
* [Settings](/en/docs/claude-code/settings) - Configuration options

0 commit comments

Comments
 (0)