Documentation
¶
Overview ¶
Package main demonstrates configuring a stdio MCP server with command-line arguments (Args).
The placeholder command `/bin/sh -c "cat"` is used so the example can run without depending on a real MCP binary being installed — it is enough for codex to load the config and complete the app-server handshake. Replace the Command and Args with a real stdio MCP launcher (for example `npx -y @playwright/mcp@latest`) in practice.
Historical context: before Args were serialized as a TOML inline array, running this example failed with "transport closed while waiting for response" because codex rejected the config with `invalid type: string ..., expected a sequence`.
Click to show internal directories.
Click to hide internal directories.