solshield-mcp
v0.2.0
Published
Offline EVM signing permission previews and a read-only client for SolShield security tools.
Maintainers
Readme
solshield-mcp
SolShield MCP previews unsigned EVM wallet permissions on your computer. It also includes a client for SolShield's six hosted security tools. Requires Node.js 20 or newer.
What am I signing?
Run the two fictional examples to compare giving an operator access to an NFT collection with revoking the same permission.
npx solshield-mcp demo
npx solshield-mcp explain request.jsonTo read JSON from standard input, run npx solshield-mcp explain -. For a local MCP connection in Claude Code:
claude mcp add --transport stdio solshield-local -- npx -y [email protected] serveFor other MCP clients, configure the command npx and arguments ["-y", "[email protected]", "serve"]. Ask for solshield_signing_demo, or give solshield_explain_signing_request the unsigned request in its request argument. The local process requires no API key or wallet connection. Once installed, it works offline. Your chat client may send what you paste to its model provider.
Paste a transaction object, an EIP-1193 envelope or a complete EIP-712 typed-data document. Supported formats include collection-wide grants/revokes, approve, increaseAllowance, EIP-2612 Permit and Permit2 PermitSingle/PermitBatch. For wallet batches every call must be supported. A hash or address by itself does not contain the requested permissions. Unsupported inputs return status: "unknown".
Results include the permission recipient, contract, raw integer quantities and any relevant signature or allowance deadlines (Unix seconds). NFT token IDs and token amounts can share the same approve selector. The preview explains both interpretations. It reads the request as written, without querying contract code, looking up balances, simulating or signing.
From the command line
npx solshield-mcp tools
npx solshield-mcp domain jup.agThe domain command returns the hostname, domain status and supporting reasons. A recognized hostname tells you only about that domain. Review the transaction separately before signing.
From JavaScript
npm install solshield-mcpimport { callTool, listTools, verifyDomain } from "solshield-mcp";
const tools = await listTools();
console.log(tools.map(tool => tool.name));
console.log(await verifyDomain("jup.ag"));
console.log(await callTool("solshield_check_token_security", {
address: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
chain: "base"
}));The domain command and hosted tool calls send their arguments to https://sol-shield.xyz/api/mcp. The tools command contacts the hosted service and lists both hosted and local tools. The demo, explain, and serve commands run locally. The JavaScript API also exports explainSigningRequest(input) for offline use. Supply only public data to hosted tools.
Using Claude Code
Claude Code can connect directly to the hosted server.
claude mcp add --transport http solshield https://sol-shield.xyz/api/mcpBuilt in Venice · @Veniceai
