Documentation / @agentick/gateway / MCPServerPluginConfig
Interface: MCPServerPluginConfig ​
Defined in: gateway/src/plugins/mcp-server.ts:26
Properties ​
exclude? ​
optionalexclude:string[]
Defined in: gateway/src/plugins/mcp-server.ts:36
Exclude tools matching these names
id? ​
optionalid:string
Defined in: gateway/src/plugins/mcp-server.ts:28
Plugin ID (default: "mcp-server")
include? ​
optionalinclude:string[]
Defined in: gateway/src/plugins/mcp-server.ts:34
Only expose tools matching these names
path? ​
optionalpath: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()? ​
optionaltoolFilter: (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 ​
req ​
IncomingMessage
Returns ​
McpToolEntry[] | Promise<McpToolEntry[]>