View and manage a Context Gateway
View and manage a Context Gateway and its Upstreams in Redis Cloud.
After you create a Context Gateway, select Context Gateway under Redis Iris in the Redis Cloud console menu to see the list of your Gateways.
The list shows each Gateway's Name, Gateway ID, Tool exposure mode, Gateway database, Cache and Compression state, and Created date. Cache and Compression show On only when the feature is on and the Gateway has a database. Select a Gateway to open it.
The Gateway's page has the Configuration and Upstreams tabs, and opens on the Configuration tab.
Configuration tab
The Configuration tab starts with a banner for connecting agents. Select Connect or Create API key there to connect an agent.
The General settings section shows the Gateway's Gateway ID, its Model Context Protocol (MCP) endpoint (MCP endpoint), its Created date, and its Configuration updated date. To change a setting, select Edit in the General settings section, make your changes, and select Save changes.
| Setting | Section | Description |
|---|---|---|
| Name | General settings | The Gateway's name, up to 128 characters. |
| Description | General settings | An optional description. |
| Tool exposure | Tool exposure | Search or Full. Agents get the new mode on their next request. In full mode, agents see every tool as namespace__tool, and with many tools that fills more of their context. |
| Database | Cache and compression | The Gateway database. Select a database, or clear it to remove it. |
If someone else changed the Gateway while you were editing, the console asks you to reload it and apply your changes again. If the Gateway is in search mode and serves only a few tools, the tab suggests full mode.
Cache and compression
The Cache and compression section shows the Gateway database under Redis Cloud database, or None, and the Cache and Compression switches. Both keep tool results in the Gateway database: cache answers repeated reads, and compression hands agents large results as handles.
- Cache serves repeated calls to read-only tools that have a cache time to live (TTL) from the Gateway database.
- Compression holds large results as handles in the Gateway database, and agents see the handle tools.
A switch saves as soon as you turn it on or off. The switches work only when the Gateway has a database, and not while you're editing the Gateway's settings. Save or cancel your changes first. You set each tool's cache and compression policy on the Upstream's Tools tab.
If a tool policy sets a cache TTL but the Gateway has no database or has cache turned off, the Configuration tab shows a banner.
Delete a Gateway
Deleting a Gateway removes its MCP endpoint, and agents that use it lose access right away. You can't delete a Gateway that has Upstreams, because deleting a Gateway never deletes its Upstreams for you. Delete its Upstreams first. Until you do, the Danger zone section lists them.
- On the Gateway's Configuration tab, select Delete Gateway in the Danger zone section.
- Select the Yes, I want to delete this resource checkbox.
- Select Delete.
This action can't be undone.
Upstreams tab
The Upstreams tab lists the Gateway's Upstreams, with each one's Name, Namespace, Type (MCP server or Context Surface), number of Tools, whether it's Enabled, and its Created date.
From this tab, you can:
- Add an MCP server or create a Context Surface.
- Turn an Upstream on or off with its Enabled switch. A disabled Upstream keeps its configuration and tools, but agents see none of its tools.
- Use an Upstream's actions menu to open, refresh, enable or disable, or delete it.
Select an Upstream to open its page, which has the Configuration and Tools tabs and opens on the Configuration tab.
Refresh an Upstream
Select Refresh on an Upstream to discover an MCP server's tools again, or to regenerate a Context Surface's tools. Refresh after the server's tools change, or after you fix a problem that stopped discovery. If the refresh fails, the console shows the error and how to fix it.
Tools tab
The Tools tab lists the Upstream's tools by their namespace__tool names, with each tool's description and annotations, such as Read-only or Destructive. It also shows each tool's Cache and Compression policy.
To change a tool's policies:
-
Set the tool's Cache and Compression policies:
Policy Settings Cache Turn the switch on to cache the tool's results, then set the Cache TTL. The Gateway caches only tools marked read-only. For other tools, the cell says why the tool is never cached. Compression Off returns results whole, never as a handle. Default lets any eligible result come back as a handle, under the deployment's defaults. Custom does the same with the Handle TTL you set. Each TTL is 1 second to 1 day, in seconds, minutes, or hours.
-
In the Pending changes notice, select Save changes. To undo your changes, select Discard.
A policy works only when the Gateway has a database and has the feature turned on in its Cache and compression settings. Until then, the tool's cell shows Off, and the tab shows a banner with Open Gateway configuration.
For a Context Surface, the Entities section shows its data model. Select Edit data model to change it, or Add data model if the Surface has none. Saving regenerates the Surface's tools and removes the policies of any tools the new model drops.
Configuration tab
The Configuration tab shows the Upstream's settings and its Upstream ID. In the General section, select Edit name to rename the Upstream, or use the Status switch to turn it on or off.
- For an MCP server, select Edit MCP server to change the Endpoint URL and the authentication. When you change the endpoint, enter every secret again, so the Gateway never sends credentials to a host you didn't intend. Saving discovers the server's tools again.
- For a Context Surface, you can replace the data model from a JavaScript Object Notation (JSON) file with Replace from JSON, or add one with Add from JSON if the Surface has none. Saving the data model regenerates the Surface's tools.
You can't change an Upstream's namespace, or a Context Surface's Surface database ID, after you create it.
Delete an Upstream
Deleting an Upstream removes its tools from the Gateway right away, along with their tool policies.
- On the Upstream's Configuration tab, select Delete Upstream in the Danger zone section. Delete in the Upstream's actions menu on the Upstreams tab opens the same step.
- Select the Yes, I want to delete this resource checkbox.
- Select Delete Upstream.
When you delete a Context Surface, the Gateway also drops the search indexes it built on the Surface database. Your records stay. If the Gateway can't drop the indexes, you can retry once the database is fixed, or select Delete anyway. Then indexes named idx:<upstream-id>:* stay on the database until someone drops them.