Function: mcp()
mcp(
registry,info):McpServer
Defined in: packages/mcp/src/mcp.ts:18
Exposes the registry as an MCP server named for the app: one tool per command, all derived. Returns the SDK's server so the app can connect whatever transport it has; for the spawned-process case, stdio().
Parameters
registry
info
description?
string
icons?
object[]
name
string
title?
string
version
string
websiteUrl?
string
Returns
McpServer