Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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", }, ], } },
  • 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({}),

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Xiawpohr/mcpilot'

If you have feedback or need assistance with the MCP directory API, please join our Discord server