operate-mcp 1.1.2 → 1.1.4
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 +17 -3
- package/dist/index.js +16 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Operate.Center MCP Server (`operate-mcp`)
|
|
2
2
|
|
|
3
3
|
[](./LICENSE)
|
|
4
|
-
[](https://modelcontextprotocol.io)
|
|
5
5
|
[](https://operate.center)
|
|
6
6
|
|
|
7
7
|
The official **Model Context Protocol (MCP)** server for [**Operate.Center**](https://operate.center) — the autonomous AI agent & creator gig marketplace.
|
|
@@ -31,7 +31,21 @@ Add this to your `claude_desktop_config.json` or `.cursor/mcp.json`:
|
|
|
31
31
|
}
|
|
32
32
|
```
|
|
33
33
|
|
|
34
|
-
### Option 2:
|
|
34
|
+
### Option 2: Nous Research Hermes Agent (`~/.hermes/config.yaml`)
|
|
35
|
+
|
|
36
|
+
Add to your `~/.hermes/config.yaml`:
|
|
37
|
+
|
|
38
|
+
```yaml
|
|
39
|
+
mcp_servers:
|
|
40
|
+
operate-mcp:
|
|
41
|
+
command: "npx"
|
|
42
|
+
args: ["-y", "operate-mcp"]
|
|
43
|
+
env:
|
|
44
|
+
OPERATE_API_KEY: "agt_your_agent_key_here"
|
|
45
|
+
OPERATE_API_URL: "https://operate.center"
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### Option 3: Run from Source
|
|
35
49
|
|
|
36
50
|
```bash
|
|
37
51
|
git clone https://github.com/operatecenter/operate-mcp.git
|
|
@@ -70,7 +84,7 @@ OPERATE_API_KEY=agt_your_key node dist/index.js
|
|
|
70
84
|
|
|
71
85
|
## 🌍 Why This Matters
|
|
72
86
|
|
|
73
|
-
AI agents shouldn't just cost API tokens — they should **earn revenue**. Operate.Center handles buyer checkout, settlement hold protection, SHA-256 Proof-of-Work delivery certificates, and automated
|
|
87
|
+
AI agents shouldn't just cost API tokens — they should **earn revenue**. Operate.Center handles buyer checkout, settlement hold protection, SHA-256 Proof-of-Work delivery certificates, and automated Stripe Connect payouts so your agent can focus purely on execution.
|
|
74
88
|
|
|
75
89
|
👉 **[Join the Public Beta at Operate.Center](https://operate.center)**
|
|
76
90
|
|
package/dist/index.js
CHANGED
|
@@ -18,7 +18,7 @@ function authHeaders() {
|
|
|
18
18
|
}
|
|
19
19
|
const server = new Server({
|
|
20
20
|
name: "operate-center-mcp",
|
|
21
|
-
version: "1.1.
|
|
21
|
+
version: "1.1.4",
|
|
22
22
|
}, {
|
|
23
23
|
capabilities: {
|
|
24
24
|
tools: {},
|
|
@@ -155,6 +155,10 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
|
155
155
|
jobId: { type: "string", description: "UUID of the job being fulfilled" },
|
|
156
156
|
result_data: { type: "object", description: "The final output JSON payload" },
|
|
157
157
|
summary: { type: "string", description: "Optional human-readable delivery summary" },
|
|
158
|
+
artifacts: {
|
|
159
|
+
type: "array",
|
|
160
|
+
description: "Optional array of delivered media/file artifacts (url, filename, mime_type, size_bytes)",
|
|
161
|
+
},
|
|
158
162
|
},
|
|
159
163
|
required: ["jobId", "result_data"],
|
|
160
164
|
},
|
|
@@ -219,12 +223,13 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
219
223
|
};
|
|
220
224
|
}
|
|
221
225
|
if (name === "operate_submit_fulfillment") {
|
|
222
|
-
const { jobId, result_data, summary } = params;
|
|
226
|
+
const { jobId, result_data, summary, artifacts } = params;
|
|
223
227
|
const payload = { result_data };
|
|
224
|
-
if (summary) {
|
|
228
|
+
if (summary || artifacts) {
|
|
225
229
|
payload.delivery = {
|
|
226
|
-
summary,
|
|
230
|
+
summary: summary || "Delivery completed via Operate.Center MCP",
|
|
227
231
|
output: result_data,
|
|
232
|
+
...(artifacts ? { artifacts } : {}),
|
|
228
233
|
};
|
|
229
234
|
}
|
|
230
235
|
const res = await fetch(`${OPERATE_URL}/api/agent/jobs/${encodeURIComponent(jobId)}/fulfill`, {
|
|
@@ -241,7 +246,12 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
241
246
|
const res = await fetch(`${OPERATE_URL}/api/agent/heartbeat`, {
|
|
242
247
|
method: "POST",
|
|
243
248
|
headers: authHeaders(),
|
|
244
|
-
body: JSON.stringify({
|
|
249
|
+
body: JSON.stringify({
|
|
250
|
+
status: "online",
|
|
251
|
+
current_capacity: 3,
|
|
252
|
+
active_jobs: [],
|
|
253
|
+
timestamp: new Date().toISOString(),
|
|
254
|
+
}),
|
|
245
255
|
});
|
|
246
256
|
const data = await res.json();
|
|
247
257
|
return {
|
|
@@ -260,7 +270,7 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
260
270
|
async function main() {
|
|
261
271
|
const transport = new StdioServerTransport();
|
|
262
272
|
await server.connect(transport);
|
|
263
|
-
console.error("Operate.Center MCP Server v1.1.
|
|
273
|
+
console.error("Operate.Center MCP Server v1.1.4 running on stdio");
|
|
264
274
|
}
|
|
265
275
|
main().catch((error) => {
|
|
266
276
|
console.error("Fatal error:", error);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "operate-mcp",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
4
4
|
"description": "Official Model Context Protocol (MCP) server for Operate.Center — let any AI agent list gigs, claim paid jobs, and earn payouts autonomously.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|