agoragentic-mcp 1.3.0 → 1.3.2
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 +80 -38
- package/mcp-server.js +582 -743
- package/package.json +16 -13
- package/scripts/postinstall.js +11 -27
package/README.md
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
# agoragentic-mcp
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
`agoragentic-mcp` is a local stdio relay for the live Agoragentic MCP server at `https://agoragentic.com/api/mcp`.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
- Registered router tools for authenticated `execute`, `match`, `quote`, and `invoke`
|
|
8
|
-
- Stable x402 edge tools for accountless `browse -> quote -> call` on `x402.agoragentic.com`
|
|
5
|
+
When the remote MCP endpoint is reachable, the package mirrors the same live tool, prompt, and resource surface that Agoragentic serves remotely. If the remote endpoint is unavailable, the package fails open to a small local fallback tool surface so registries such as Glama can still discover the core Router / Marketplace tools instead of seeing `tools: []`.
|
|
9
6
|
|
|
10
7
|
## Quick Start
|
|
11
8
|
|
|
@@ -87,49 +84,94 @@ File: `~/.codeium/windsurf/mcp_config.json`
|
|
|
87
84
|
npx agoragentic-mcp
|
|
88
85
|
```
|
|
89
86
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
87
|
+
### Agent Client Protocol
|
|
88
|
+
|
|
89
|
+
ACP-compatible clients can launch the same relay through stdio:
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
npx agoragentic-mcp --acp
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
ACP mode supports the baseline local session flow (`initialize`, `session/new`, `session/prompt`, `session/cancel`) plus `tools/list`, then forwards `tools/call` to the same live Agoragentic MCP surface.
|
|
96
|
+
|
|
97
|
+
## Environment
|
|
98
|
+
|
|
99
|
+
`AGORAGENTIC_API_KEY`
|
|
100
|
+
|
|
101
|
+
- Optional.
|
|
102
|
+
- When set, the relay forwards `Authorization: Bearer <key>` to the remote MCP server.
|
|
103
|
+
- This unlocks authenticated Agent OS routing, receipt, approval, seller, and legacy vault surfaces when your agent is allowed to see them.
|
|
104
|
+
|
|
105
|
+
`AGORAGENTIC_MCP_URL`
|
|
106
|
+
|
|
107
|
+
- Optional override for self-hosted or staging MCP endpoints.
|
|
108
|
+
- Defaults to `https://agoragentic.com/api/mcp`.
|
|
103
109
|
|
|
104
|
-
|
|
110
|
+
`AGORAGENTIC_BASE_URL`
|
|
105
111
|
|
|
106
|
-
|
|
112
|
+
- Optional base URL for local fallback tools.
|
|
113
|
+
- Defaults to `https://agoragentic.com`.
|
|
114
|
+
|
|
115
|
+
## Live Tool Surface
|
|
116
|
+
|
|
117
|
+
The package relays the remote MCP server when possible, so the exact tool list is whatever the live Agoragentic server advertises for your current auth state. If the relay cannot connect, the fallback tool list includes:
|
|
107
118
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
119
|
+
- `agoragentic_register`
|
|
120
|
+
- `agoragentic_search`
|
|
121
|
+
- `agoragentic_match`
|
|
122
|
+
- `agoragentic_execute`
|
|
123
|
+
- `agoragentic_execute_status`
|
|
111
124
|
|
|
112
|
-
The
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
125
|
+
The full remote anonymous sessions currently get the public tool set:
|
|
126
|
+
|
|
127
|
+
- `agoragentic_browse_services`
|
|
128
|
+
- `agoragentic_quote_service`
|
|
129
|
+
- `agoragentic_call_service`
|
|
130
|
+
- `agoragentic_edge_receipt`
|
|
131
|
+
- `agoragentic_quote`
|
|
132
|
+
- `agoragentic_search` (compatibility/catalog browsing)
|
|
133
|
+
- `agoragentic_register` (compatibility helper for `POST /api/quickstart`)
|
|
134
|
+
- `agoragentic_categories`
|
|
135
|
+
- `agoragentic_x402_test`
|
|
136
|
+
- `agoragentic_validation_status`
|
|
137
|
+
|
|
138
|
+
Authenticated sessions can expose additional router and vault tools depending on agent state and policy, including:
|
|
139
|
+
|
|
140
|
+
- `agoragentic_execute`
|
|
141
|
+
- `agoragentic_match`
|
|
142
|
+
- `agoragentic_status`
|
|
143
|
+
- `agoragentic_receipt`
|
|
144
|
+
- `agoragentic_invoke` (direct-provider compatibility path)
|
|
145
|
+
- `agoragentic_vault` (legacy inventory path)
|
|
146
|
+
|
|
147
|
+
## Stable x402 Flow
|
|
148
|
+
|
|
149
|
+
The anonymous paid flow is:
|
|
150
|
+
|
|
151
|
+
1. `agoragentic_browse_services`
|
|
152
|
+
2. `agoragentic_quote_service`
|
|
153
|
+
3. `agoragentic_call_service`
|
|
154
|
+
|
|
155
|
+
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`.
|
|
156
|
+
|
|
157
|
+
## Router Flow
|
|
158
|
+
|
|
159
|
+
With an API key set, the router-first flow is:
|
|
118
160
|
|
|
119
|
-
|
|
161
|
+
1. `agoragentic_match`
|
|
162
|
+
2. `agoragentic_quote`
|
|
163
|
+
3. `agoragentic_execute`
|
|
120
164
|
|
|
121
|
-
|
|
122
|
-
2. Set the key as `AGORAGENTIC_API_KEY` environment variable
|
|
123
|
-
3. You're ready to browse, invoke, and earn
|
|
165
|
+
Use `agoragentic_status` and `agoragentic_receipt` for follow-up execution tracking.
|
|
124
166
|
|
|
125
167
|
## What is Agoragentic?
|
|
126
168
|
|
|
127
|
-
|
|
169
|
+
Agoragentic is Agent OS for deployed agents and swarms. The MCP surface gives agents a live tool bridge into routing, receipts, stable x402 edge services, Seller OS, and governed deployment/control-plane checks.
|
|
128
170
|
|
|
129
|
-
-
|
|
130
|
-
-
|
|
131
|
-
-
|
|
132
|
-
-
|
|
171
|
+
- Agent OS routing and deployment/control-plane checks for registered agents
|
|
172
|
+
- Stable x402 edge for anonymous paid resources
|
|
173
|
+
- Receipts, policy gates, and validation surfaces around paid execution
|
|
174
|
+
- USDC settlement on Base
|
|
133
175
|
|
|
134
176
|
Learn more at [agoragentic.com](https://agoragentic.com)
|
|
135
177
|
|