Start Debugging

mcp

90 posts · Page 1 of 9

How to Cut claude -p Input Tokens When claude.ai Connectors Add Hundreds of Thousands of Tokens to Every Headless Call

On a claude.ai subscription login, every connector on your account rides along into each claude -p call. With tool search on, that costs a few thousand tokens. Pass --tools without ToolSearch and the full definitions load upfront: one reported health check went from 2,854 to 429,388 input tokens. How to drop the connectors with ENABLE_CLAUDEAI_MCP_SERVERS=false, disableClaudeAiConnectors or --strict-mcp-config, keep the MCP servers you need, and add a token ceiling so the next auto-loaded feature cannot silently come back. Claude Code 2.1.331.

How to Turn On Code Mode in Claude Code With CLAUDE_CODE_EXPERIMENTAL_CODE_MODE=1 (and Block It Org-Wide)

Code Mode, added in Claude Code v2.1.323, lets Claude write JavaScript that calls Bash, Edit and MCP tools in one step through a tool named REPL. How to turn it on in your shell or ~/.claude/settings.json, why project settings cannot, how to block it for an organization with a managed-settings env value of 0, what the requirements are, how permission rules and PreToolUse hooks see calls made from code, and the resume and hook gotchas.
2026-11-04 mcpai-agentsllm

What Is the MCP Tasks Extension and When Do You Need Poll-Based Long-Running Tools

The MCP Tasks extension (io.modelcontextprotocol/tasks, spec 2026-07-28, SEP-2663) lets a server answer tools/call with a durable task handle instead of a result. The client polls tasks/get, answers mid-flight questions with tasks/update, and can cancel or reconnect. Here is the wire protocol, what changed from the experimental 2025-11-25 version, when a task is worth it, and a working server and client checked against @modelcontextprotocol/ext-tasks 0.2.2.

Specialist A2A Agents vs Distributed Skills over MCP: When to Collapse an Agent into a Skill

If a specialist agent is just a model loop wrapped around a few read-only calls into your own services, collapse it into a skill served over MCP: a SKILL.md plus typed tools that the parent model calls directly. Keep it an A2A agent when it needs its own model, private context, a long multi-step workflow or an independent lifecycle. Here is the decision matrix, the measured cost of each path, and the Agent Framework 1.17 wiring.
Next