starkshield-mcp
v1.0.1
Published
Starkzap-powered MCP server: Starknet transactions, quantum risk scanning, confidential transfers.
Maintainers
Readme
starkshield-mcp
Starkzap-powered Model Context Protocol server: Starknet wallet operations, deterministic quantum risk scanning, Vesu lending, staking, swaps (AVNU), and Tongo confidential transfers.
Install
npm install -g starkshield-mcpOr run from source:
cd starkshield-mcp
npm install
npm run build
node dist/index.jsConfigure
See repository root .env.example (or set variables in your MCP host).
- Dev signer:
STARKNET_PRIVATE_KEY - Privy:
PRIVY_WALLET_ID,PRIVY_PUBLIC_KEY,PRIVY_SIGN_URL - Network:
STARKNET_NETWORK=mainnet|sepolia - Paymaster (optional):
AVNU_API_KEY - Tongo (optional):
TONGO_PRIVATE_KEY,TONGO_CONTRACT - Automation (dangerous):
STARKSHIELD_AUTO_CONFIRM=1skips preview/confirm for destructive tools - HTTP transport (optional):
STARKSHIELD_HTTP_PORT=8787— serves MCP onPOST /mcpandGET /status
Claude Desktop
{
"mcpServers": {
"starkshield": {
"command": "npx",
"args": ["-y", "starkshield-mcp"],
"env": {
"STARKNET_NETWORK": "mainnet",
"STARKNET_PRIVATE_KEY": "0x..."
}
}
}
}Quantum safety
quantum_risk_scan combines fixed cryptographic architecture facts (no LLM inference inside the tool) with optional Starknet JSON-RPC checks (contract deployment, address nonce). The assistant should explain the structured JSON, not invent new risk levels.
Core health tools
server_health: returns runtime readiness (network, signer mode, confidential feature flags, transport mode).wallet_health: validates wallet connectivity and can optionally run deployment readiness checks.server_capabilities: returns full tool/resource catalog + environment guide.
These are useful first calls before destructive tools in both stdio and HTTP transport modes.
Capability resource
- URI:
starkshield://meta/capabilities - Includes:
- runtime mode (
network,signerMode,confidentialConfigured) - full tool catalog
- resource catalog
- env setup guide
- runtime mode (
Build phases (implementation checklist)
- Phase 1 - Runtime health
- Add server and wallet health tools.
- Extend HTTP
/statuswith runtime configuration signals.
- Phase 2 - Capability discovery
- Add
server_capabilitiestool. - Add
starkshield://meta/capabilitiesresource. - Keep centralized tool/resource/env catalog.
- Add
- Phase 3 - Packaging readiness
- Ensure clean build scripts (
build,check,clean). - Verify package
filesinclude onlydist+ docs. - Validate both stdio and HTTP modes before publish.
- Ensure clean build scripts (
- Phase 4 - Functional verification
- Run MCP unit tests (
npm run test:run). - Run full check (
npm run check) before packaging.
- Run MCP unit tests (
Publish to npm
Run these steps from starkshield-mcp:
- Authenticate npm
npm login
- Clean + build
npm run cleannpm run buildnpm run test:run
- Sanity check package contents
npm pack --dry-run
- Version bump
npm version patch(orminor/major)
- Publish
npm publish --access public
- Verify
npm view starkshield-mcp versionnpx -y starkshield-mcp --help(or run in MCP host)
License
MIT
