{"_id":"@apexxxxxxxxxx/aic-mcp","name":"@apexxxxxxxxxx/aic-mcp","dist-tags":{"latest":"1.0.9-beta.0"},"versions":{"1.0.9-beta.0":{"name":"@apexxxxxxxxxx/aic-mcp","version":"1.0.9-beta.0","description":"Deterministic Protocol Intelligence compiler for AI. Compiles smart contracts into Protocol Graphs via MCP.","main":"dist/sdk/client.js","module":"dist/sdk/client.mjs","types":"dist/sdk/client.d.ts","exports":{".":{"types":"./dist/sdk/client.d.ts","require":"./dist/sdk/client.js","import":"./dist/sdk/client.mjs"},"./mcp":{"types":"./dist/server/mcp.d.ts","require":"./dist/server/mcp.js","import":"./dist/server/mcp.mjs"}},"bin":{"aic-mcp":"dist/server/mcp.js"},"scripts":{"build:mcp":"tsup src/server/mcp.ts src/sdk/client.ts --format cjs,esm --target node20 --out-dir dist --dts --clean --sourcemap","build":"npm run build:mcp","prepublishOnly":"npm run build:mcp","test":"vitest","dashboard":"npx ts-node src/server/dashboard.ts","mcp":"npx tsx src/server/mcp.ts","seed":"npx tsx scripts/seed_cache.ts","demo:smoke":"npx tsx scripts/demo_smoke.ts","demo:attest":"npx tsx scripts/attest_demo.ts","demo:verify-registry":"npx tsx scripts/verify_registry.ts","typecheck":"tsc --noEmit","postinstall":"node scripts/postinstall.js"},"engines":{"node":">=18"},"keywords":["xlayer","blockchain","smart-contracts","mcp","model-context-protocol","ai","protocol-graph","deterministic"],"author":{"name":"Ver"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/Nifemi0/Ver.git"},"homepage":"https://xlayer-delta.vercel.app","bugs":{"url":"https://github.com/Nifemi0/Ver/issues"},"dependencies":{"@modelcontextprotocol/sdk":"^1.29.0","better-sqlite3":"^12.11.1","bottleneck":"^2.19.5","commander":"^15.0.0","cors":"^2.8.6","dotenv":"^17.4.2","express":"^5.2.1","semver":"^7.8.5","viem":"^2.54.6","zod":"^4.4.3"},"devDependencies":{"@types/better-sqlite3":"^7.6.13","@types/cors":"^2.8.19","@types/express":"^5.0.6","@types/node":"^26.1.0","@types/semver":"^7.7.1","ts-node":"^10.9.2","tsup":"^8.5.1","typescript":"^6.0.3","vitest":"^4.1.10"},"_id":"@apexxxxxxxxxx/aic-mcp@1.0.9-beta.0","gitHead":"1f31b896a1678e6c5fd91ca16e0834f6fa03b505","_nodeVersion":"22.22.2","_npmVersion":"10.9.7","dist":{"integrity":"sha512-sc6+ARmv5iYOe8DrUDOOXv9cWNVWM569cYKCsnKOzwZ5+9XU5iv08KWTcZu8RvxhwBMrwfwcCp6NDzKC6td39Q==","shasum":"248fb2d540fcca326dec0043cd258c2d9bd010ca","tarball":"https://registry.npmjs.org/@apexxxxxxxxxx/aic-mcp/-/aic-mcp-1.0.9-beta.0.tgz","fileCount":24,"unpackedSize":827759,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCK9r2WC53gtN/UR9TuN4bobn4gdEV3sFM9D4Y/g03hagIgeidp8SouF9FJIg/KihwbenwA2RUi1F4bNNL+bJv6nrk="}]},"_npmUser":{"name":"apexxxxxxxxxx","email":"aderogbaa94@gmail.com"},"directories":{},"maintainers":[{"name":"apexxxxxxxxxx","email":"aderogbaa94@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/aic-mcp_1.0.9-beta.0_1783946064190_0.9998298682631215"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-13T12:34:23.976Z","1.0.9-beta.0":"2026-07-13T12:34:24.339Z","modified":"2026-07-13T12:34:24.541Z"},"maintainers":[{"name":"apexxxxxxxxxx","email":"aderogbaa94@gmail.com"}],"description":"Deterministic Protocol Intelligence compiler for AI. Compiles smart contracts into Protocol Graphs via MCP.","homepage":"https://xlayer-delta.vercel.app","keywords":["xlayer","blockchain","smart-contracts","mcp","model-context-protocol","ai","protocol-graph","deterministic"],"repository":{"type":"git","url":"git+https://github.com/Nifemi0/Ver.git"},"author":{"name":"Ver"},"bugs":{"url":"https://github.com/Nifemi0/Ver/issues"},"license":"MIT","readme":"# Ver Protocol\n\n**Deterministic by design. Explainable by AI.**\n\nVer is a semantic layer and cryptographic attestation protocol built specifically for **X Layer**. It compiles deterministic blockchain artifacts (ABIs, Bytecode, state variables) into an AI-readable Protocol Graph that IDEs, wallets, AI agents, and developer tools can consume natively via MCP.\n\n---\n\n## Architecture\n\n```text\nInput Contract\n      ↓\nBlockscout Fetcher\n      ↓\nDeterministic Parser\n      ↓\nVer Protocol Schema\n      ↓\nVerRegistry (X Layer Anchor)\n      ↓\nMCP Server / API Endpoint\n      ↓\nCursor / Claude / Onchain OS Agents\n```\n\n## Core Features\n\n1. **Deterministic Protocol Graph**: Transforms raw unflattened bytecode and ABIs into standard semantic schemas.\n2. **Agentic Intent Compiler (AIC)**: Maps natural language user goals (e.g. \"Transfer 10 USDT\") into exact EVM calldata, verified by static `eth_call` simulations.\n3. **Registry Attestation**: Hashes the compiled graph (SHA-256) and stores the attestation permanently on X Layer's VerRegistry contract, preventing hallucinated contract integrations.\n4. **LLM Fallback Routing**: If the deterministic AIC cannot map a complex semantic intent, it securely prompts an LLM via Anthropic/Gemini APIs using the verified protocol graph as context.\n\n## Usage\n\n### 1. Compile a Protocol Graph\n\n```bash\ncurl -s \"https://xlayer-delta.vercel.app/api/compile?address=0x1E4a5963aBFD975d8c9021ce480b42188849D41d\"\n```\n\n### 2. Compile an Intent to Calldata\n\n```bash\ncurl -X POST https://xlayer-delta.vercel.app/api/compile-intent \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"contractAddress\": \"0x1E4a5963aBFD975d8c9021ce480b42188849D41d\",\n    \"intent\": \"Transfer 10 USDT to 0x1111111111111111111111111111111111111111\"\n  }'\n```\n\n### 3. Model Context Protocol (MCP)\n\nProvide AI tools with native understanding of X Layer smart contracts. Add Ver to your `claude_desktop_config.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"ver\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"ver-mcp\"],\n      \"env\": {\n        \"XLAYER_RPC_URL\": \"https://rpc.xlayer.tech\"\n      }\n    }\n  }\n}\n```\n\n## Links\n\n- **Website & Documentation**: [https://xlayer-delta.vercel.app](https://xlayer-delta.vercel.app)\n- **Founder / Twitter**: [https://x.com/Love_Light_11](https://x.com/Love_Light_11)\n\n---\n*© 2026 Ver Protocol. Built for X Layer.*\n","readmeFilename":"README.md","_rev":"1-79df03a101cd7a8ef634c9c2a7113b24"}