Skip to content

Commit af042b8

Browse files
authored
refact: rename hub into agents and add system prompt support (#2197)
* Refactor terminology from "Hubs" to "Agents" across documentation and UI components. Update descriptions and references to reflect the new terminology, ensuring consistency in the context of MCP Mesh functionality. Additionally, introduce a new hook for managing system prompts specific to agents. * Update documentation to replace "Hubs" with "Agents" for consistency across MCP Mesh references. Adjust descriptions and instructions in multiple files to reflect this terminology change, ensuring clarity in the context of virtual server functionality. * Refactor extractConnectionData function for improved readability and consistency. Removed unnecessary line breaks and cleaned up the code structure. Removed unused findRegistryItemByBinding function to streamline the utility file. * fmt * Update text in ConnectionGatewaysSection to clarify that the connection is used on agents instead of being exposed via agents, enhancing consistency with recent terminology changes. * Update documentation and code references to replace "Hubs" with "Agents" throughout the MCP Mesh, ensuring consistency in terminology. Adjust descriptions, instructions, and error messages to reflect the new terminology, enhancing clarity in the context of virtual server functionality. * Update documentation and code references to consistently replace "Gateways" with "Agents" in the MCP Mesh, ensuring clarity and uniformity in terminology across multiple files. * Update documentation and code references to consistently replace "Gateways" with "Agents" across multiple files, enhancing clarity and uniformity in terminology within the MCP Mesh.
1 parent 8532124 commit af042b8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+635
-447
lines changed

apps/docs/client/src/content/en/introduction.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ The application will be available at `http://localhost:8080`.
9393
- **[Quickstart](/en/mcp-mesh/quickstart)**
9494
- **[Concepts](/en/mcp-mesh/concepts)**
9595
- **[MCP Servers (Connections)](/en/mcp-mesh/mcp-servers)**
96-
- **[MCP Gateways](/en/mcp-mesh/mcp-gateways)**
96+
- **[MCP Agents](/en/mcp-mesh/mcp-gateways)**
9797
- **[API Keys](/en/mcp-mesh/api-keys)**
9898
- **[Monitoring](/en/mcp-mesh/monitoring)**
9999

apps/docs/client/src/content/en/mcp-mesh/api-keys.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: API Keys
3-
description: Create scoped API keys to access management tools, proxies, and gateways
3+
description: Create scoped API keys to access management tools, proxies, and agents
44
icon: KeyRound
55
---
66

@@ -18,7 +18,7 @@ API keys are the simplest way to give an agent/app access to the Mesh without an
1818

1919
- **Least privilege**: only grant the tool permissions you need.
2020
- **Separate keys per workload**: one key per app/agent is easier to rotate.
21-
- **Use gateways for surface control**: combine API-key permissions with a curated gateway.
21+
- **Use agents for surface control**: combine API-key permissions with a curated agent.
2222

2323
<Callout type="warning">
2424
Treat API keys like production secrets. Store them in a secrets manager and rotate regularly.

apps/docs/client/src/content/en/mcp-mesh/api-reference.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: API Reference
3-
description: The core HTTP endpoints exposed by the Mesh for MCP, gateways, OAuth, and ops
3+
description: The core HTTP endpoints exposed by the Mesh for MCP, agents, OAuth, and ops
44
icon: Code
55
---
66

@@ -10,18 +10,18 @@ icon: Code
1010

1111
- `POST /mcp`
1212

13-
This endpoint exposes **management tools** via MCP (orgs, connections, gateways, API keys, monitoring, event bus).
13+
This endpoint exposes **management tools** via MCP (orgs, connections, agents, API keys, monitoring, event bus).
1414

1515
### Connection proxy
1616

1717
- `POST /mcp/:connectionId`
1818

1919
Proxies MCP requests to a single upstream connection.
2020

21-
### Gateway (virtual server)
21+
### Agent (virtual server)
2222

2323
- `POST /mcp/gateway/:gatewayId`
24-
- `POST /mcp/gateway` (default Hub; requires `x-org-id` or `x-org-slug`)
24+
- `POST /mcp/gateway` (default Agent; requires `x-org-id` or `x-org-slug`)
2525

2626
Aggregates tools/resources/prompts across multiple connections.
2727

apps/docs/client/src/content/en/mcp-mesh/authorization-and-roles.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@ API keys are created with explicit permissions for specific management tools (an
3939

4040
- **Members**: manage roles and invitations
4141
- **API Keys**: create/update/delete keys and restrict permissions
42-
- **Gateways**: expose only the desired tool surface (include/exclude strategies)
42+
- **Agents**: expose only the desired tool surface (include/exclude strategies)
4343

4444

apps/docs/client/src/content/en/mcp-mesh/concepts.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
---
22
title: Concepts
3-
description: The mental model for organizations, connections, gateways, API keys, and tool calls
3+
description: The mental model for organizations, connections, agents, API keys, and tool calls
44
icon: BookOpen
55
---
66

77
## Core entities
88

9-
- **Organization**: the top-level tenant boundary. Everything (connections, gateways, logs) is org-scoped.
9+
- **Organization**: the top-level tenant boundary. Everything (connections, agents, logs) is org-scoped.
1010
- **Members**: users invited into an organization.
1111
- **Roles**: role assignments for members, used by access control checks.
1212
- **Connection**: a configured upstream MCP endpoint (usually HTTP), optionally with stored credentials.
13-
- **Hub**: a virtual MCP server that aggregates multiple connections into a single MCP surface.
14-
- **Tool call**: a `tools/call` request routed through the Mesh to a downstream MCP server (or via a gateway).
13+
- **Agent**: a virtual MCP server that aggregates multiple connections into a single MCP surface.
14+
- **Tool call**: a `tools/call` request routed through the Mesh to a downstream MCP server (or via an agent).
1515
- **Monitoring log**: a record of a tool call (inputs, outputs, duration, error), used for debugging and ops.
1616

1717
## Data and security boundaries
@@ -25,7 +25,7 @@ icon: BookOpen
2525
2. The client calls either:
2626
- the **Management MCP** (admin tools), or
2727
- a **Proxy endpoint** (one connection), or
28-
- a **Hub endpoint** (aggregated tools/resources/prompts).
28+
- an **Agent endpoint** (aggregated tools/resources/prompts).
2929
3. The Mesh authorizes, loads credentials, proxies to the downstream Connection(s), and logs monitoring events.
3030

3131

apps/docs/client/src/content/en/mcp-mesh/connect-clients.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ There are two common ways to connect clients to the Mesh:
1717

1818
- **Management MCP**: `POST /mcp`
1919
- **Connection proxy**: `POST /mcp/:connectionId`
20-
- **Hub (virtual server)**: `POST /mcp/gateway/:gatewayId` (or omit `:gatewayId` to use the org default Hub with headers)
20+
- **Agent (virtual server)**: `POST /mcp/gateway/:gatewayId` (or omit `:gatewayId` to use the org default Agent with headers)
2121

2222
<Callout type="tip">
23-
If your goal is a "single MCP URL" for a curated tool surface, use **Hubs**. If you want a direct pipe to one upstream MCP, use **Connection proxy**.
23+
If your goal is a "single MCP URL" for a curated tool surface, use **Agents**. If you want a direct pipe to one upstream MCP, use **Connection proxy**.
2424
</Callout>
2525

2626
## Authentication quick notes

apps/docs/client/src/content/en/mcp-mesh/mcp-gateways.mdx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
2-
title: Hubs
2+
title: Agents
33
description: Publish a virtual MCP server that aggregates tools/resources/prompts from multiple connections
44
icon: Waypoints
55
---
66

77
import Callout from "../../../components/ui/Callout.astro";
88

9-
## What is a Hub?
9+
## What is an Agent?
1010

11-
A **Hub** is a **virtual MCP server** that aggregates multiple connections into a single MCP surface:
11+
An **Agent** is a **virtual MCP server** that aggregates multiple connections into a single MCP surface:
1212

1313
- tools (`tools/list`, `tools/call`)
1414
- resources (`resources/list`, `resources/read`)
@@ -20,7 +20,7 @@ This is how you create a curated endpoint for clients without exposing every too
2020

2121
- `POST /mcp/gateway/:gatewayId`
2222

23-
You can also omit `:gatewayId` and rely on the organization's default Hub by providing one of these headers:
23+
You can also omit `:gatewayId` and rely on the organization's default Agent by providing one of these headers:
2424

2525
- `x-org-id`, or
2626
- `x-org-slug`
@@ -32,12 +32,12 @@ You can also omit `:gatewayId` and rely on the organization's default Hub by pro
3232

3333
## Tool exposure strategies
3434

35-
Hubs also control **how tools are exposed** to clients (useful when tool surfaces get large).
35+
Agents also control **how tools are exposed** to clients (useful when tool surfaces get large).
3636
These strategies ship by default:
3737

3838
### Passthrough (baseline)
3939

40-
- Exposes all gateway tools directly via `tools/list`.
40+
- Exposes all agent tools directly via `tools/list`.
4141
- Best for small tool surfaces and deterministic behavior.
4242

4343
### Smart tool selection
@@ -56,20 +56,20 @@ These strategies ship by default:
5656
- `GATEWAY_RUN_CODE` (run JS in a sandbox that can call tools)
5757
- Goal: reduce tool exposure overhead on large surfaces by shifting work into a constrained runtime.
5858

59-
## The default Hub (auto-created per org)
59+
## The default Agent (auto-created per org)
6060

61-
Every new organization gets a **Default Hub**:
61+
Every new organization gets a **Default Agent**:
6262

6363
- **Strategy**: `passthrough`
6464
- **Mode**: `exclusion`
6565
- **Default exclusions**: the built-in **Mesh MCP** connection (management tools) and the **Store/Registry** connection are excluded by default
66-
- **Default behavior**: everything else in the org is included — so as you connect Integrations, this endpoint becomes the "all tools in the org" Hub
66+
- **Default behavior**: everything else in the org is included — so as you connect Integrations, this endpoint becomes the "all tools in the org" Agent
6767

6868
This is the endpoint most teams use as the single aggregated MCP surface for an org.
6969

7070
## Benchmark: strategy tradeoffs
7171

72-
We ran a gateway strategy benchmark here: [MCP Gateway Benchmark (GitHub Actions run)](https://github.com/decocms/mesh/actions/runs/20584203227).
72+
We ran an agent strategy benchmark here: [MCP Agent Benchmark (GitHub Actions run)](https://github.com/decocms/mesh/actions/runs/20584203227).
7373

7474
**Summary (high level):**
7575

apps/docs/client/src/content/en/mcp-mesh/mcp-servers.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ The Mesh will:
3333
5. log a monitoring event
3434

3535
<Callout type="info">
36-
If you need a single aggregated endpoint for multiple connections, use [Hubs](/en/mcp-mesh/mcp-gateways) instead.
36+
If you need a single aggregated endpoint for multiple connections, use [Agents](/en/mcp-mesh/mcp-gateways) instead.
3737
</Callout>
3838

3939

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Monitoring
3-
description: Inspect tool calls, errors, and latency across connections and gateways
3+
description: Inspect tool calls, errors, and latency across connections and agents
44
icon: Activity
55
---
66

@@ -9,7 +9,7 @@ icon: Activity
99
The Mesh records monitoring logs for proxied tool calls, including:
1010

1111
- tool name
12-
- connection / gateway attribution
12+
- connection / agent attribution
1313
- user identity (user ID or API key user)
1414
- duration and error status
1515
- inputs and output (normalized)
@@ -19,7 +19,7 @@ The Mesh records monitoring logs for proxied tool calls, including:
1919
Go to **Monitoring** to:
2020

2121
- view tool call volume, errors, and latency
22-
- filter by tool/connection/gateway/status
22+
- filter by tool/connection/agent/status
2323
- tail logs via **Streaming**
2424
- drill into individual calls
2525

@@ -28,7 +28,7 @@ Go to **Monitoring** to:
2828
Monitoring is the backbone for:
2929

3030
- debugging broken tool calls
31-
- verifying permissions and gateway selection
31+
- verifying permissions and agent selection
3232
- tracking latency regressions and error spikes
3333

3434

apps/docs/client/src/content/en/mcp-mesh/overview.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,17 @@ The Mesh centralizes these concerns once, so you can operate MCP traffic like an
2828
│ MCP Clients │ │ MCP Mesh (Proxy) │ │ Downstream MCPs │
2929
│ - Cursor │──▶│ - AuthN/AuthZ │──▶│ - Slack / Gmail │
3030
│ - Claude Desktop │ │ - Vault │ │ - Notion / Stripe │
31-
│ - Custom agents │ │ - Gateways │ │ - Your MCP servers │
31+
│ - Custom agents │ │ - Agents │ │ - Your MCP servers │
3232
└───────────────────┘ │ - Monitoring │ └────────────────────┘
3333
└──────────────────┘
3434
```
3535

3636
## What the Mesh centralizes
3737

3838
- **Routing + execution**: which MCP to call and how to authenticate it
39-
- **Policy enforcement**: who can access which tools (and through which gateways)
39+
- **Policy enforcement**: who can access which tools (and through which agents)
4040
- **Observability**: logs, latency, errors, and request context across tool calls
41-
- **Runtime strategies (gateways)**: different exposure strategies as tool surfaces grow
41+
- **Runtime strategies (agents)**: different exposure strategies as tool surfaces grow
4242

4343
## Product surfaces (what you can do today)
4444

0 commit comments

Comments
 (0)