Skip to content

basalt / mcp/src / mcpPlugin

Function: mcpPlugin() ​

> mcpPlugin(options): BasaltPlugin<unknown>

Defined in: mcp/src/server.ts:141

Registers the MCP server (built from the opted-in routes) in the container. Pair it with mcpRoutes() for the HTTP transport, or serveMcpStdio() for stdio. The AI/codegen layer stays dev-only — this is the runtime surface.

Parameters ​

options ​

McpPluginOptions

Returns ​

BasaltPlugin<unknown>

Released under the MIT License.