Pinata-style layout (same as ampersend-openclaw): the repo root has manifest.json + this README; the OpenClaw home is workspace/ (see PinataCloud/agent-template).
| Piece | Role |
|---|---|
manifest.json |
Pinata Agents config: scripts.build for lightweight deps; secrets for CDP/Graph keys; optional cron task. |
workspace/ |
OpenClaw agent files: AGENTS.md, SOUL.md, USER.md, memory/, skills/ampersend/SKILL.md. |
mcp-local-docker/ |
x402 proxy (mcp-front/server.js) + Rust MCP server source ref. Details: mcp-local-docker/README.md. |
scripts/ |
setup-mcp.sh (one-command build + start), build.sh / build-mcp.sh / start.sh (individual steps). |
manifest.json # Pinata Agents config (remove _docs before marketplace)
README.md
scripts/
setup-mcp.sh # One command: build + start everything
build.sh # Lightweight: ampersend CLI + mcp-front Node deps
build-mcp.sh # Heavy: Rust toolchain + subgraph-mcp binary
start.sh # Start both services
workspace/
AGENTS.md SOUL.md USER.md IDENTITY.md TOOLS.md HEARTBEAT.md BOOTSTRAP.md
memory/
skills/ampersend/SKILL.md
mcp-local-docker/
mcp-front/ # Node.js x402 proxy (server.js + package.json)
Point agents.defaults.workspace at …/workspace (this repo's workspace folder), not the repo root. See Agent workspace.
npm install -g @ampersend_ai/ampersend-sdk@0.0.16
ampersend --versionSetup (human approves in their browser):
ampersend setup start --name "my-openclaw-agent"
ampersend setup finish
ampersend config statusDetails: workspace/skills/ampersend/SKILL.md.
Self-hosted MCP server for The Graph subgraphs, gated by x402 micropayments (USDC on Base via Coinbase CDP). No Docker required.
bash scripts/setup-mcp.shThis handles everything: installs Rust via rustup (user-level, no root), compiles subgraph-mcp to ~/.local/bin/, installs Node.js proxy deps, and starts both services. First run takes ~10-20 min (Rust compile); re-runs are fast.
Secrets are expected as env vars (GATEWAY_API_KEY, PAY_TO_ADDRESS, CDP_APP_ID, CDP_SECRET). On Pinata Agents these are injected from the dashboard. For local dev, copy and fill mcp-local-docker/.env.example.
Full architecture, env vars, and client examples: mcp-local-docker/README.md.
When imported into Pinata Agents:
- Secrets — set
GATEWAY_API_KEY,PAY_TO_ADDRESS,CDP_APP_ID,CDP_SECRETin the Pinata dashboard. They're injected as env vars at runtime. - Build —
manifest.json→scripts.buildrunsscripts/build.shafter each push (installs ampersend CLI + Node deps). - MCP setup — after the agent boots, tell it to run
bash scripts/setup-mcp.sh(or it will followBOOTSTRAP.mdautomatically). - Remove the
_docskey frommanifest.jsonbefore marketplace submit.
ISC (see repository). Comply with ampersend terms for CLI/APIs.