disconnect
Disconnect your MetaMask wallet from the MCPilot server to end blockchain interactions and secure your wallet connection.
Instructions
Disconnect the metamaks wallet
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- packages/metamask-mcp/src/tools/disconnect.ts:7-22 (registration)Registers the 'disconnect' tool on the FastMCP server. Includes name, description, empty input schema (z.object({})), and the execute handler that calls wagmi's disconnect.server.addTool({ name: "disconnect", description: "Disconnect the metamaks wallet", parameters: z.object({}), execute: async () => { await disconnect(wagmiConfig) return { content: [ { type: "text", text: "Disconnect successfully", }, ], } }, });
- The core handler logic for the disconnect tool, invoking the external wagmi disconnect function and returning a standardized MCP content response.execute: async () => { await disconnect(wagmiConfig) return { content: [ { type: "text", text: "Disconnect successfully", }, ], } },
- packages/metamask-mcp/src/index.ts:42-42 (registration)Top-level invocation of the registerDisconnectTools function during MetaMask MCP server setup to enable the tool.registerDisconnectTools(server);
- Zod schema defining empty parameters for the disconnect tool (no arguments required).parameters: z.object({}),