---
url: /api/@ufo-soft/caelus-mcp/functions/mcp.md
---
# Function: mcp()

> **mcp**(`registry`, `info`): `McpServer`

Defined in: [packages/mcp/src/mcp.ts:18](https://github.com/ufo-soft/caelus/blob/31cc32fc3d2008e3b0d484d65d10bba2a91a5897/packages/mcp/src/mcp.ts#L18)

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

[`Registry`](../../caelus/core/classes/Registry.md)

### info

#### description?

`string`

#### icons?

`object`\[]

#### name

`string`

#### title?

`string`

#### version

`string`

#### websiteUrl?

`string`

## Returns

`McpServer`
