@executioncontrolprotocol/mcp 0.10.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +47 -0
- package/package.json +7 -7
package/README.md
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# `@executioncontrolprotocol/mcp`
|
|
2
|
+
|
|
3
|
+
MCP (Model Context Protocol) adapter that exposes an initialized ECP environment to agents.
|
|
4
|
+
|
|
5
|
+
## Status
|
|
6
|
+
|
|
7
|
+
MCP tools cover discovery, validation, workflow run, and encode/decode. **Capability invoke is not yet an MCP tool.** To call a single capability outside a workflow, use:
|
|
8
|
+
|
|
9
|
+
- Fluent API: `ecp.invoke(capabilityId).with(input).process()`
|
|
10
|
+
- CLI: `ecp invoke <capability-id> --env environment.ts --input input.json`
|
|
11
|
+
- HTTP: `ecp serve --env environment.ts` then `POST /v1/invoke` (or `ecp up` for the Ollama demo bridge)
|
|
12
|
+
|
|
13
|
+
## Tools (current)
|
|
14
|
+
|
|
15
|
+
| Tool | Maps to |
|
|
16
|
+
| ---- | ------- |
|
|
17
|
+
| `ecp.describe_environment` | `ecp.describe` |
|
|
18
|
+
| `ecp.search` | `ecp.search` |
|
|
19
|
+
| `ecp.validate_workflow` | `ecp.validate` |
|
|
20
|
+
| `ecp.run_workflow` | `ecp.run` |
|
|
21
|
+
| `ecp.encode` | `ecp.encode` |
|
|
22
|
+
| `ecp.decode` | `ecp.decode` |
|
|
23
|
+
| `ecp.get_run_status` | in-process run store |
|
|
24
|
+
|
|
25
|
+
## Resources
|
|
26
|
+
|
|
27
|
+
| Resource | URI |
|
|
28
|
+
| -------- | --- |
|
|
29
|
+
| Environment descriptor | `ecp://environment/describe` |
|
|
30
|
+
| Capabilities | `ecp://capabilities` |
|
|
31
|
+
| Capability detail | `ecp://capabilities/{id}` |
|
|
32
|
+
| Policies | `ecp://policies` |
|
|
33
|
+
| Run detail | `ecp://runs/{runId}` |
|
|
34
|
+
|
|
35
|
+
## Usage
|
|
36
|
+
|
|
37
|
+
```ts
|
|
38
|
+
import { createEcpMcpServer, serveStdio } from "@executioncontrolprotocol/mcp"
|
|
39
|
+
import { environment } from "@executioncontrolprotocol/node"
|
|
40
|
+
|
|
41
|
+
const env = await environment("demo")
|
|
42
|
+
const ecp = await env.init()
|
|
43
|
+
const server = createEcpMcpServer({ ecp })
|
|
44
|
+
await serveStdio({ ecp })
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
See [`AGENTS.md`](../../AGENTS.md) and [`ecp-overhaul.md`](../../ecp-overhaul.md) §13 for architecture.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@executioncontrolprotocol/mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "MCP server adapter for ECP environments",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -16,18 +16,18 @@
|
|
|
16
16
|
"build": "tsc -b"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
|
-
"@executioncontrolprotocol/core": "^0.
|
|
20
|
-
"@executioncontrolprotocol/types": "^0.
|
|
19
|
+
"@executioncontrolprotocol/core": "^0.11.0",
|
|
20
|
+
"@executioncontrolprotocol/types": "^0.11.0",
|
|
21
21
|
"zod": "^3.24.0"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@executioncontrolprotocol/node": "0.
|
|
24
|
+
"@executioncontrolprotocol/node": "0.11.0",
|
|
25
25
|
"@modelcontextprotocol/sdk": "^1.12.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@executioncontrolprotocol/core": "0.
|
|
29
|
-
"@executioncontrolprotocol/format-toon": "0.
|
|
30
|
-
"@executioncontrolprotocol/types": "0.
|
|
28
|
+
"@executioncontrolprotocol/core": "0.11.0",
|
|
29
|
+
"@executioncontrolprotocol/format-toon": "0.11.0",
|
|
30
|
+
"@executioncontrolprotocol/types": "0.11.0",
|
|
31
31
|
"typescript": "^5.7.0",
|
|
32
32
|
"zod": "^3.24.0"
|
|
33
33
|
}
|