Documentation Index
Fetch the complete documentation index at: https://mintlify.com/nicobailon/pi-mcp-adapter/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Thesettings field in your mcp.json file controls global behavior for all MCP servers. Individual server configurations can override these defaults.
Configuration Structure
Options
toolPrefix
Controls how tool names are prefixed to avoid naming conflicts between servers.
Prefix Modes
"server" (default) - Use the full server name as prefix:
chrome_devtools_take_screenshot, chrome_devtools_navigate, etc.
"short" - Strip -mcp suffix and use shortened name:
chrome_devtools_take_screenshot (prefix: chrome_devtools)
"none" - No prefix:
take_screenshot, navigate, etc.
Prefix Normalization
Hyphens in server names are converted to underscores in prefixes:chrome-devtools→chrome_devtools_my-api-server→my_api_server_
idleTimeout
Minutes of inactivity before automatically disconnecting a server. Applies to
lazy and eager lifecycle modes. Set to 0 to disable idle timeout globally.Behavior
- Lazy servers: Connect on first use, disconnect after idle timeout
- Eager servers: Connect at startup, disconnect after idle timeout (unless overridden)
- Keep-alive servers: Never disconnect due to idle timeout
Activity Tracking
A server is considered “active” if:- A tool call is in progress
- A tool call completed within the timeout window
Per-Server Override
Servers can override the global timeout:Disabling Idle Timeout
Set to0 to keep servers connected indefinitely:
lifecycle: "keep-alive", but without automatic reconnection on failure.
directTools
Global default for whether servers register their tools as individual Pi tools. Per-server
directTools settings override this.Behavior
true- All servers register their tools directly by defaultfalse- All servers use proxy mode by default
Token Costs
Each direct tool adds ~150-300 tokens to the system prompt (name + description + parameter schema). For example:- 10 direct tools ≈ 2,000 tokens
- 50 direct tools ≈ 10,000 tokens
- 100 direct tools ≈ 20,000 tokens
directTools: true globally only if you have a small total number of tools across all servers, or if you’re willing to pay the context cost for immediate tool availability.
Complete Examples
Minimal Config (all defaults)
toolPrefix: "server"idleTimeout: 10directTools: false
Custom Prefix and Timeout
chrome_devtools_*, servers disconnect after 5 minutes.
No Prefix, No Timeout
take_screenshot instead of my_only_server_take_screenshot), server never disconnects.
Direct Tools Globally
huge-api.
Mixed Lifecycle and Timeouts
Validation
Invalid settings are ignored and logged to the console:Related
- Server Options - Per-server configuration
- Types Reference - TypeScript interfaces
- /mcp Command - Interactive server management