Checked on November 20, 2026 against the MCP connector docs (beta
mcp-client-2025-11-20), anthropic 2.11.0 (Python) and @anthropic-ai/sdk 1.11.0 (TypeScript).authorization_token, as Authorization: Bearer <token>: an API key, or an OAuth access token of the user. Calls come from Anthropic’s IP addresses, so a key with an IP whitelist is refused.
Each server in mcp_servers needs a matching mcp_toolset entry in tools.
Python
claude.py
TypeScript
claude.mjs
Purchases
The connector runs tool calls inside the request without asking you. Before letting Claude spend:- enable only the tools it needs (
default_configandconfigs, as in the Python example); - prefer an API key with narrow scopes, or a user’s OAuth token, whose daily spending cap bounds what a request can spend;
- if a person must confirm each purchase, run your own MCP client instead (TypeScript, Python) and call
buy_energyafter they agree.
response.content as mcp_tool_use and mcp_tool_result blocks.