{"_id":"@0xbeni/agentledger-mcp","name":"@0xbeni/agentledger-mcp","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.1":{"name":"@0xbeni/agentledger-mcp","version":"1.0.1","description":"MCP server that stores AI agent reasoning traces permanently on 0G Storage — immutable, verifiable, tamper-proof","author":{"name":"Benita2001"},"license":"MIT","bin":{"agentledger-mcp":"bin/agentledger-mcp.cjs"},"main":"dist/index.js","scripts":{"start":"tsx src/index.ts","build":"tsc && chmod +x dist/index.js","demo":"tsx demo/agent-demo.ts","prepublishOnly":"npm run build"},"keywords":[],"type":"module","dependencies":{"@0gfoundation/0g-storage-ts-sdk":"^1.2.10","@types/uuid":"^10.0.0","dotenv":"^17.4.2","ethers":"^6.13.1","fastmcp":"^4.3.2","uuid":"^14.0.1","zod":"^4.4.3"},"devDependencies":{"tsx":"^4.22.4","typescript":"^6.0.3"},"types":"./dist/index.d.ts","_id":"@0xbeni/agentledger-mcp@1.0.1","_nodeVersion":"24.13.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-N7kOUag55hAyiMtjQBx1lUnkjNjD7+0ATZRRWVoX6KKup/pztXoLVOkhwnbN+kMSCwqkK0AJlSFEXWDE8gXJDw==","shasum":"df8231b8fd51ed9e7c23a305b5f2c8b17bf8a186","tarball":"https://registry.npmjs.org/@0xbeni/agentledger-mcp/-/agentledger-mcp-1.0.1.tgz","fileCount":25,"unpackedSize":41967,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCOlzog/zxb4vzoNBmGXxqdVxW1gMH0cZm3yFc7EO/nXwIhAIDxtR4+L6pTl/zcWeyyTkfBEYgcMbJ3EueuXVippxKM"}]},"_npmUser":{"name":"0xbeni","email":"0xbeni123@gmail.com"},"directories":{},"maintainers":[{"name":"0xbeni","email":"0xbeni123@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/agentledger-mcp_1.0.1_1782311538842_0.8311635611346644"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-24T14:32:18.519Z","1.0.1":"2026-06-24T14:32:19.006Z","modified":"2026-06-24T14:32:19.367Z"},"maintainers":[{"name":"0xbeni","email":"0xbeni123@gmail.com"}],"description":"MCP server that stores AI agent reasoning traces permanently on 0G Storage — immutable, verifiable, tamper-proof","keywords":[],"author":{"name":"Benita2001"},"license":"MIT","readme":"# AgentLedger\n\nMCP server that stores AI agent reasoning traces permanently on 0G Storage — immutable, verifiable, tamper-proof.\n\nEvery decision an AI agent makes gets uploaded to 0G's decentralized storage network and linked into a cryptographic chain. Any attempt to delete or modify past decisions breaks the chain and is immediately detectable.\n\n## Installation\n\nSee [INSTALL.md](./INSTALL.md) for full instructions.\n\n**Quickest way — npx, no clone needed:**\n```json\n{\n  \"mcpServers\": {\n    \"agentledger\": {\n      \"command\": \"npx\",\n      \"args\": [\"agentledger-mcp\"],\n      \"env\": {\n        \"PRIVATE_KEY\": \"your_wallet_private_key\",\n        \"AGENT_ID\": \"my-agent\"\n      }\n    }\n  }\n}\n```\nAdd that to your Claude Desktop MCP config, restart, and you're live.\n\n## MCP Tools\n\n| Tool | Description |\n|------|-------------|\n| `log_reasoning` | Store a full agent reasoning trace on 0G. Returns root hash + StorageScan URL |\n| `get_reasoning` | Retrieve any reasoning trace by root hash |\n| `verify_reasoning` | Cryptographically verify a trace is unchanged on 0G |\n| `get_agent_history` | Full decision history for any agent |\n| `audit_agent` | Verify the complete decision chain is INTACT or BROKEN |\n\n## How it works\n\n1. Agent makes a decision → reasoning steps captured\n2. Trace encoded as JSON → uploaded to 0G Storage via `MemData`\n3. Root hash returned — this is the permanent, content-addressed proof\n4. Each trace's `prev_decision_hash` points to the previous → tamper-proof chain\n5. Agent index stored in 0G KV Store — the full ledger lives on-chain\n\n## Network\n\nBuilt on [0G Galileo Testnet](https://storagescan-galileo.0g.ai).\n","readmeFilename":"README.md","_rev":"1-63246a60902f8e26e656b70827f08835"}