Skip to main content
Glama

disconnect

Terminate the active wallet connection within the MetaMask MCP server, ensuring secure disengagement from blockchain interactions while retaining private key security in your crypto wallet.

Instructions

Disconnect the wallet.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The execute function that performs the wallet disconnection using wagmi/core's disconnect and returns a structured success response.
    execute: async () => { await disconnect(wagmiConfig); return { content: [ { type: "text", text: "Disconnect successfully", }, ], }; },
  • Zod schema defining no input parameters for the disconnect tool.
    parameters: z.object({}),
  • Function that registers the disconnect tool with the FastMCP server.
    export function registerDisconnectTools(server: FastMCP, wagmiConfig: Config): void { server.addTool({ name: "disconnect", description: "Disconnect the wallet.", parameters: z.object({}), execute: async () => { await disconnect(wagmiConfig); return { content: [ { type: "text", text: "Disconnect successfully", }, ], }; }, }); };
  • Calls the disconnect tool registration function as part of registering all tools.
    registerDisconnectTools(server, wagmiConfig);

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/metamask-mcp'

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