Skip to content

Documentation / @agentick/gateway / MCPServerPluginConfig

Interface: MCPServerPluginConfig ​

Defined in: gateway/src/plugins/mcp-server.ts:26

Properties ​

exclude? ​

optional exclude: string[]

Defined in: gateway/src/plugins/mcp-server.ts:36

Exclude tools matching these names


id? ​

optional id: string

Defined in: gateway/src/plugins/mcp-server.ts:28

Plugin ID (default: "mcp-server")


include? ​

optional include: string[]

Defined in: gateway/src/plugins/mcp-server.ts:34

Only expose tools matching these names


path? ​

optional path: string

Defined in: gateway/src/plugins/mcp-server.ts:30

Route path (default: "/mcp")


sessionId ​

sessionId: string

Defined in: gateway/src/plugins/mcp-server.ts:32

Session whose tools to expose


toolFilter()? ​

optional toolFilter: (tools, req) => McpToolEntry[] | Promise<McpToolEntry[]>

Defined in: gateway/src/plugins/mcp-server.ts:42

Filter tools per MCP session. Called once when a client initializes. Receives the pre-filtered tool catalog and the raw HTTP request. Return the tools to expose for this session.

Parameters ​

tools ​

McpToolEntry[]

req ​

IncomingMessage

Returns ​

McpToolEntry[] | Promise<McpToolEntry[]>

Released under the ISC License.