You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/DESIGN_DOC.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -625,6 +625,20 @@ spec:
625
625
backoff: exponential
626
626
```
627
627
628
+
### MCP HTTP tool (streamable HTTP)
629
+
630
+
Remote MCP servers may expose a single JSON-RPC endpoint over HTTP(S). Set **`transport: http`**, **`url`** to that endpoint, and optional **`headers`** (including **`env:`** tokens). **`command`** / **`args`** must not be set together with **`url`** (see validator).
Copy file name to clipboardExpand all lines: docs/EXAMPLES.md
+26Lines changed: 26 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -116,6 +116,32 @@ agentctl run workflow/hello --project my-agent-system
116
116
117
117
---
118
118
119
+
## 3b. MCP tool over HTTP (streamable HTTP)
120
+
121
+
For MCP servers exposed over **HTTP** (streamable HTTP transport: one **POST** per JSON-RPC message), set **`spec.mcp.transport: http`** and **`spec.mcp.url`** to the MCP endpoint (must be **`http://`** or **`https://`**). Optional **`spec.mcp.headers`** use the same patterns as native HTTP tools (literal values or **`env:VAR_NAME`** for secrets).
122
+
123
+
```yaml
124
+
apiVersion: agentic.dev/v0
125
+
kind: Tool
126
+
metadata:
127
+
name: remote_mcp
128
+
spec:
129
+
type: mcp
130
+
mcp:
131
+
transport: http
132
+
url: https://mcp.example.com/v1/mcp
133
+
headers:
134
+
Authorization: env:MCP_BEARER_TOKEN
135
+
```
136
+
137
+
**Security**
138
+
139
+
- Prefer **HTTPS** in production. The default Go client performs **normal TLS certificate verification** against the system trust store; do not disable verification for MCP calls.
140
+
- **`stdio`** and **`http`** are mutually exclusive in **`spec.mcp`**: set **`command`** only for stdio, **`url`** only for HTTP (validated at `agentctl validate`).
141
+
- Workflow trace events for tool steps record **`uses`** and cost, not HTTP headers or resolved env values; keep custom logging of MCP traffic free of secrets.
142
+
143
+
---
144
+
119
145
## 4. Real OpenAI example (`gpt-4o-mini`)
120
146
121
147
This is a small but **end-to-end** project: a **native echo** step supplies fixed “policy” text, then **`gpt-4o-mini`** drafts a one-line customer reply. You need a valid **[OpenAI API key](https://platform.openai.com/api-keys)** and outbound **HTTPS** to `api.openai.com`.
0 commit comments