# Steledger — MCP server [![Smithery](https://img.shields.io/badge/Smithery-Verified-green?style=flat-square&logo=github)](https://smithery.ai/servers/mechnotech/steledger) Thin MCP client over the **edge** gateway HTTP API. Lets an AI agent use the Emercoin chain as its identity + memory layer. (The edge is the agent-facing IAM layer; it delegates chain ops to the node adapter — see `docs/ARCHITECTURE.md`.) ## Tools | Tool | Auth | Maps to | |------|------|---------| | `node_status()` | no | `GET /status` | | `login()` | no | `POST /auth/github/device/start` (device flow; show code to user) | | `login_poll(session_id)` | no | `POST /auth/github/device/poll` (finish; caches JWT) | | `login_with_token(github_token)` | no | `POST /auth/login` (dev/CI fallback) | | `register_identity(address, metadata?)` | yes | `POST /nvs/identity` | | `store_memory(content_hash, metadata?)` | yes | `POST /nvs/mem` | | `store_memory_batch(records)` | yes | `POST /nvs/mem/batch` (atomic, one tx) | | `read_record(name)` | no | `GET /nvs/{name}` | ## Config (env) - `GATEWAY_URL` — edge gateway base URL (default `http://localhost:8000`) - `GATEWAY_JWT` — optional pre-issued token; otherwise use the `login` tool ## Run (stdio transport) ```bash pip install -r requirements.txt GATEWAY_URL=http://localhost:8000 python server.py ``` ### Claude Code MCP config example ```json { "mcpServers": { "steledger": { "command": "python", "args": ["/path/to/mcp_server/server.py"], "env": { "GATEWAY_URL": "http://localhost:8000" } } } } ```