Keep an existing integration
Connect a service through its existing MCP server and publish selected tools alongside native GateRook connectors. Your AI client only needs the gateway endpoint.
MCP servers · MCP integration
Keep an existing MCP integration and add it to the same endpoint as your databases and infrastructure. GateRook can start a local stdio server or connect to a Streamable HTTP URL. It discovers the tools, prefixes their names and lets you decide which tools become available to your AI client.
Connection in GateRook
everything
MCP servers
devThe route
Your AI requests a tool. GateRook checks the endpoint policy, resolves credentials locally, and calls the configured service.
Understand the request flowAsk your AI
Use the Everything test server to echo “GateRook connection ready”.
{
"message": "GateRook connection ready"
}{
"content": [
{
"type": "text",
"text": "Echo: GateRook connection ready"
}
],
"isError": false
}Sample configuration and output, not a live connection. Replace example values with your environment. Tool names here are connector names; the endpoint may expose a connection-specific name.
Put context to work
Connect a service through its existing MCP server and publish selected tools alongside native GateRook connectors. Your AI client only needs the gateway endpoint.
Choose which external tools are off, which need approval and which reviewed read tools may run without a prompt. See the server and exact arguments when an approval is requested.
When a server changes a reviewed tool definition, GateRook stops the call until the change is reviewed. An approval for the old definition cannot execute against the new one.
From service to MCP
GateRook must be running on a computer that can reach your service. Open Connectors, choose MCP servers, then Add MCP server. Select stdio or Streamable HTTP and review the server before starting it.
New to GateRook? Start with the full setup guide.Prepare a local command with a pinned package version or the Streamable HTTP URL of your server. Local commands run with your user permissions; inspect the server before starting it.
Open Connectors, choose MCP servers and Add MCP server. Enter its name and transport, configure the command or URL, then choose Review and start. Review the exact process or remote destination before confirming.
For stdio, choose which environment variables receive values from Secrets. For HTTP, configure the required headers from Secrets. The echo example requires neither. Only explicitly bound secrets are injected; the core’s own secret environment variables are not inherited. The process also receives baseline environment variables such as PATH.
Inspect each tool name, description and input schema before exposing it on an endpoint. Newly added server tools are not automatically published to your AI clients; the initial endpoint mode for external tools is Approval.
Add the reviewed server tools to an endpoint. Keep the initial Approval mode for the first call and leave unused tools Off. Only move a trusted server-declared read tool to Read only after reviewing its implementation and permissions.
In Clients, choose your AI app and endpoint, review the connection details, and connect. Try this guide’s example in Playground before asking your AI. Open Activity to inspect the tool, target, decision and returned result. The getting started guide covers this shared flow.
Connection settings
These are example values for the connection form. Enter credentials into GateRook’s secret fields, not into an AI prompt. Requirements and alternatives are noted per field.
| Setting | Example | How to use it |
|---|---|---|
Name | everything | A server name also supplies its tool prefix; this example exposes everything_echo. |
Transport | stdio | The gateway starts a local command. Choose HTTP instead for a Streamable HTTP server URL. |
Command | npx -y @modelcontextprotocol/server-everything@2.0.0 stdio | Illustrative test server version exercised by this repository. Review the package before running it; this command needs Node.js and npx on the computer. |
Variables or headers | None for this echo example | For authenticated servers, bind only the required environment variables or HTTP headers to secrets stored in GateRook. |
Know what you expose
The connector determines what is possible. Endpoint modes and connection policies determine what a particular AI client may use.
| Tool | Purpose | Access behavior |
|---|---|---|
everything_echo | Example discovered tool from the pinned Everything test server. It echoes a message; this name is specific to the configured server and prefix. | Approval initially |
Server-defined tools | The connected server supplies the actual tool names and schemas. GateRook prefixes them and stores the reviewed definitions. | Configured per endpoint |
GateRook stores local connection secrets encrypted and resolves them for connectors. Allowed tool results are returned to your AI client and may be processed by its provider. Scope the data you expose as well as the actions you allow.
Practical answers
Review and start lists the server tools. Use Playground and Activity to inspect endpoint permissions and tool calls.
They are different sides of the gateway. An external MCP server supplies tools to GateRook. Claude, Codex, Cursor or another MCP client connects to a GateRook endpoint to use the tools you publish.
Yes, choose the HTTP transport and provide its Streamable HTTP URL. Configure any required headers from Secrets and check destination policies. Legacy SSE is not a transport option in this connector.
No. An external server declares that annotation itself. Keep unfamiliar tools in Approval and review the server implementation and permissions before deciding which reads to allow.
GateRook compares calls with the reviewed tool definitions. A changed definition blocks execution and must be reviewed again; a previously approved call is not silently transferred to the changed tool.
Keep exploring
Connect a REST or HTTP API to AI through MCP. Scope base URLs and paths, keep API keys in GateRook, and approve requests that change data.
Use SSH from AI through GateRook MCP runbooks. Connect with keys, passwords or Vault SSH CA, verify host keys, and approve commands that change your servers.
Connect PostgreSQL to an MCP-compatible AI app with GateRook. Explore schemas, run read-only SQL, review changes and keep database credentials out of prompts.
Your infrastructure, on your terms
Start with one connection. Choose what your AI can do.