For AI agents: the complete documentation index is available at https://scriptedalchemy.github.io/agent-bundle/llms.txt, the full documentation bundle is available at https://scriptedalchemy.github.io/agent-bundle/llms-full.txt, and this page is available as Markdown at https://scriptedalchemy.github.io/agent-bundle/api/functions/api.runMcp.md.
  • English
  • Function: runMcp()

    runMcp(options): Promise<number>

    Runs one built stdio MCP server in the foreground with inherited stdio, resolving its content-hashed generated entry from the target manifest. Both durable-state anchors point at the project root: plugin-data state persists under .agent-bundle/mcp-run/<target>/<server>, and env-declared plugin-root anchors expand to the project root itself (override with pluginRoot). The launch environment layers, lowest to highest: manifest env, the project-root .env set (or envFiles), the operator's real process.env.

    Parameters

    options

    RunMcpOptions

    Returns

    Promise<number>