MCP server configuration reference
This page is a reference for MCP server configuration in Itential Gateway. It covers the fields used when registering an MCP server, supported transport types, secret template syntax, and database export behavior.
For step-by-step procedures, see Register and manage MCP servers.
Configuration fields
These fields define an MCP server registration.
Credentials are stored via Itential Gateway’s secrets manager and are never returned in plaintext. Inspection and export output redacts all secret values.
Transport types
Itential Gateway supports three transport types for MCP server communication.
Auto-detection behavior
If you omit --transport when using the CLI, or don’t specify a transport in the Gateway UI, Itential Gateway detects the transport automatically:
command_or_urlvalues beginning withhttp→streamable-http- All other values →
stdio
Specify --transport explicitly when auto-detection would produce the wrong result.
Transport and field compatibility
Secret template syntax
The command_or_url field and env and header values support Go template syntax. Use the secret function to reference a secret stored in Itential Gateway’s secret store instead of providing sensitive values as plain text.
Syntax
Replace secret-name with the name of the secret as stored in Itential Gateway’s secrets management.
Examples
Reference a secret in an environment variable:
Reference a secret in an HTTP header:
Reference a secret in the server command:
Feature flag
FlowMCP Gateway functionality is controlled by the mcp_enabled feature flag, which defaults to true. MCP commands and endpoints are available without any additional configuration unless the flag has been explicitly disabled.
Database export and import behavior
MCP server configurations are included in Itential Gateway database exports by default. When you import a database into a new Itential Gateway instance, MCP server definitions are restored.
Any credentials required by an MCP server’s transport configuration are handled through Itential Gateway’s secrets-reference model rather than being included as plaintext values. Exported configurations reference credentials using a $GATEWAYSECRET_<alias> value, which Itential Gateway resolves at runtime against the target instance’s stored secrets. Confirm that the corresponding secrets exist on the destination instance before importing, since the import doesn’t create or transfer the underlying secret values themselves.
Gateway service representation
When Itential Gateway discovers the tools exposed by a registered MCP server, it surfaces them in Gateway Manager as native gateway services. MCP-backed gateway services behave the same as all other gateway services:
- They’re subject to the same Gateway Manager RBAC permission model.
- They’re available to Platform workflows and agents through the same tool attachment mechanism.
- They participate in agent project tool discovery.
Each registered MCP server is represented internally as an McpServer object with the following fields: id, name, created, and transport configuration. Each tool it exposes is represented as an McpTool object with the following fields: name, description, input_schema, and output_schema.
JSON-RPC methods
Itential Gateway exposes the following JSON-RPC types for MCP server management and tool invocation.
McpListToolsRequest
Lists the tools available on a registered MCP server.
McpCallToolRequest
Invokes a tool on a registered MCP server.
McpCallToolResponse
The response returned after a tool invocation.
Error handling
No errors are reported during server registration. Errors are returned in the following situations:
- Accessing an MCP server that isn’t registered returns a
NotFounderror. - Calling a tool on an unavailable MCP server returns an
Internalerror. - Calling a tool with invalid parameters returns an
Internalerror containing an MCP-level validation message.
Example errors