Skip to main content
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).
With the MCP connector, Claude calls TronRental from Anthropic’s side during the request — no MCP client in your code. The connector sends only 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_config and configs, 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_energy after they agree.
The tool calls and their results come back in response.content as mcp_tool_use and mcp_tool_result blocks.