McpServer
Stability: beta -- This resource kind ships with
orloj.dev/v1and is suitable for production use, but its schema may evolve with migration guidance in future minor releases.
Represents a connection to an external MCP (Model Context Protocol) server. The McpServer controller discovers tools via tools/list and auto-generates Tool resources (type=mcp) for each.
spec
transport(string): required.stdioorhttp.command(string): stdio transport: command to spawn the MCP server process.args([]string): stdio transport: command arguments.env([]object): stdio transport: environment variables for the child process. Each entry has:name(string): environment variable name.value(string): literal value.secretRef(string): resolve value from a Secret resource. Mutually exclusive withvalue.
endpoint(string): http transport: the MCP server URL.auth(object): http transport: authentication configuration.secretRef(string): secret reference for auth.profile(string):bearerorapi_key_header. Defaults tobearer.
tool_filter(object): optional tool import filtering.include([]string): allowlist of MCP tool names. When set, only listed tools are generated. When empty, all discovered tools are generated.
reconnect(object): reconnection policy.max_attempts(int): max reconnection attempts. Defaults to 3.backoff(duration string): backoff between attempts. Defaults to2s.
Defaults and Validation
transportis required. Must bestdioorhttp.commandis required whentransport=stdio.endpointis required whentransport=http.env[].secretRefandenv[].valueare mutually exclusive.reconnect.max_attemptsdefaults to3.reconnect.backoffdefaults to2s.
status
phase:Pending,Connecting,Ready,Error.discoveredTools([]string): all tool names from the MCP server'stools/listresponse.generatedTools([]string): names of theToolresources actually created.lastSyncedAt(timestamp): last successful tool sync.lastError(string): last error message.
Guide: Connect an MCP Server
Examples: examples/resources/mcp-servers/
See also: MCP server concepts.