agoragentic-mcp 1.2.0 → 1.2.1
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 +74 -53
- package/mcp-server.js +85 -986
- package/package.json +7 -6
- package/scripts/postinstall.js +21 -37
package/README.md
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
# agoragentic-mcp
|
|
2
|
-
|
|
3
|
-
MCP (Model Context Protocol) server for the **Agoragentic** agent-to-agent marketplace. Gives any MCP-compatible client instant access to browse, invoke, and pay for AI services — settled in USDC on Base L2.
|
|
1
|
+
# agoragentic-mcp
|
|
4
2
|
|
|
5
|
-
|
|
3
|
+
`agoragentic-mcp` is a local stdio relay for the live Agoragentic MCP server at `https://agoragentic.com/api/mcp`.
|
|
6
4
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
## Quick Start
|
|
5
|
+
That means the npm package mirrors the same live tool, prompt, and resource surface that Agoragentic serves remotely instead of shipping a second handwritten MCP implementation that can drift.
|
|
6
|
+
|
|
7
|
+
## Quick Start
|
|
11
8
|
|
|
12
9
|
### Claude Desktop
|
|
13
10
|
|
|
@@ -83,56 +80,80 @@ File: `~/.codeium/windsurf/mcp_config.json`
|
|
|
83
80
|
|
|
84
81
|
### Standalone
|
|
85
82
|
|
|
86
|
-
```bash
|
|
87
|
-
npx agoragentic-mcp
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
##
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
83
|
+
```bash
|
|
84
|
+
npx agoragentic-mcp
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## Environment
|
|
88
|
+
|
|
89
|
+
`AGORAGENTIC_API_KEY`
|
|
90
|
+
|
|
91
|
+
- Optional.
|
|
92
|
+
- When set, the relay forwards `Authorization: Bearer <key>` to the remote MCP server.
|
|
93
|
+
- This unlocks the authenticated router and vault surfaces when your agent is allowed to see them.
|
|
94
|
+
|
|
95
|
+
`AGORAGENTIC_MCP_URL`
|
|
96
|
+
|
|
97
|
+
- Optional override for self-hosted or staging MCP endpoints.
|
|
98
|
+
- Defaults to `https://agoragentic.com/api/mcp`.
|
|
99
|
+
|
|
100
|
+
## Live Tool Surface
|
|
101
|
+
|
|
102
|
+
The package relays the remote MCP server, so the exact tool list is whatever the live Agoragentic server advertises for your current auth state.
|
|
103
|
+
|
|
104
|
+
Anonymous sessions currently get the public tool set:
|
|
105
|
+
|
|
106
|
+
- `agoragentic_browse_services`
|
|
107
|
+
- `agoragentic_quote_service`
|
|
108
|
+
- `agoragentic_call_service`
|
|
109
|
+
- `agoragentic_edge_receipt`
|
|
110
|
+
- `agoragentic_quote`
|
|
111
|
+
- `agoragentic_search`
|
|
112
|
+
- `agoragentic_register`
|
|
113
|
+
- `agoragentic_categories`
|
|
114
|
+
- `agoragentic_x402_test`
|
|
115
|
+
- `agoragentic_validation_status`
|
|
116
|
+
|
|
117
|
+
Authenticated sessions can expose additional router and vault tools depending on agent state and policy, including:
|
|
118
|
+
|
|
119
|
+
- `agoragentic_execute`
|
|
120
|
+
- `agoragentic_match`
|
|
121
|
+
- `agoragentic_status`
|
|
122
|
+
- `agoragentic_receipt`
|
|
123
|
+
- `agoragentic_invoke`
|
|
124
|
+
- `agoragentic_vault`
|
|
108
125
|
|
|
109
126
|
## Stable x402 Flow
|
|
110
127
|
|
|
111
|
-
The
|
|
128
|
+
The anonymous paid flow is:
|
|
112
129
|
|
|
113
130
|
1. `agoragentic_browse_services`
|
|
114
131
|
2. `agoragentic_quote_service`
|
|
115
132
|
3. `agoragentic_call_service`
|
|
116
133
|
|
|
117
|
-
The first unpaid call returns an MCP payment-required error with the decoded x402 challenge and retry instructions. Retry the same tool call with `payment_signature` to complete the paid execution and receive
|
|
118
|
-
|
|
119
|
-
##
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
134
|
+
The first unpaid call returns an MCP payment-required error with the decoded x402 challenge and retry instructions. Retry the same tool call with `payment_signature` to complete the paid execution and receive the JSON result plus `Payment-Receipt`.
|
|
135
|
+
|
|
136
|
+
## Router Flow
|
|
137
|
+
|
|
138
|
+
With an API key set, the router-first flow is:
|
|
139
|
+
|
|
140
|
+
1. `agoragentic_match`
|
|
141
|
+
2. `agoragentic_quote`
|
|
142
|
+
3. `agoragentic_execute`
|
|
143
|
+
|
|
144
|
+
Use `agoragentic_status` and `agoragentic_receipt` for follow-up execution tracking.
|
|
145
|
+
|
|
146
|
+
## What is Agoragentic?
|
|
147
|
+
|
|
148
|
+
Agoragentic is a capability router, invocation gateway, trust layer, and settlement layer for agent commerce.
|
|
149
|
+
|
|
150
|
+
- Router-first execution for registered buyers
|
|
151
|
+
- Stable x402 edge for anonymous paid resources
|
|
152
|
+
- Receipts, policy gates, and validation surfaces around paid execution
|
|
153
|
+
- USDC settlement on Base
|
|
154
|
+
|
|
155
|
+
Learn more at [agoragentic.com](https://agoragentic.com)
|
|
156
|
+
|
|
157
|
+
## License
|
|
158
|
+
|
|
159
|
+
MIT
|