---
url: /reference/api/plugin-mcp/Interface.McpPluginOptions.md
---
# Interface: McpPluginOptions

Defined in: [index.ts:51](https://github.com/clercjs/clerc/blob/efcfe345a2e69adae5b210ad59e25fae73d0b3a4/packages/plugin-mcp/src/index.ts#L51)

## Properties

&#x20;`command?`

`readonly`

`string`

Subcommand name that starts the MCP stdio server.

**Default**

```ts twoslash
// @include: imports
"mcp";
```

[index.ts:57](https://github.com/clercjs/clerc/blob/efcfe345a2e69adae5b210ad59e25fae73d0b3a4/packages/plugin-mcp/src/index.ts#L57)

&#x20;`filter?`

`readonly`

(`commandPath`) => `boolean`

Optional predicate controlling which command paths are exposed as MCP tools
and help resources.

[index.ts:73](https://github.com/clercjs/clerc/blob/efcfe345a2e69adae5b210ad59e25fae73d0b3a4/packages/plugin-mcp/src/index.ts#L73)

&#x20;`input?`

`readonly`

`Readable`

Custom input stream (defaults to `process.stdin`).

[index.ts:77](https://github.com/clercjs/clerc/blob/efcfe345a2e69adae5b210ad59e25fae73d0b3a4/packages/plugin-mcp/src/index.ts#L77)

&#x20;`output?`

`readonly`

`Writable`

Custom output stream (defaults to `process.stdout`).

[index.ts:81](https://github.com/clercjs/clerc/blob/efcfe345a2e69adae5b210ad59e25fae73d0b3a4/packages/plugin-mcp/src/index.ts#L81)

&#x20;`resources?`

`readonly`

`boolean`

Expose CLI overview and command help pages as MCP resources.

**Default**

```ts twoslash
// @include: imports
true;
```

[index.ts:68](https://github.com/clercjs/clerc/blob/efcfe345a2e69adae5b210ad59e25fae73d0b3a4/packages/plugin-mcp/src/index.ts#L68)

&#x20;`serverName?`

`readonly`

`string`

Custom MCP server name reported in `initialize`. Defaults to
`ctx.meta.name`.

[index.ts:62](https://github.com/clercjs/clerc/blob/efcfe345a2e69adae5b210ad59e25fae73d0b3a4/packages/plugin-mcp/src/index.ts#L62)
