Skip to main content
Glama

disconnect

Disconnect your wallet from the MetaMask MCP server to end the session and secure your blockchain interactions.

Instructions

Disconnect the wallet.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The execute handler for the 'disconnect' tool, which calls wagmi's disconnect function and returns a success text response.
    execute: async () => { await disconnect(wagmiConfig); return { content: [ { type: "text", text: "Disconnect successfully", }, ], }; },
  • Direct registration of the 'disconnect' tool using FastMCP's addTool method, including name, description, empty schema, and handler.
    server.addTool({ name: "disconnect", description: "Disconnect the wallet.", parameters: z.object({}), execute: async () => { await disconnect(wagmiConfig); return { content: [ { type: "text", text: "Disconnect successfully", }, ], }; }, });
  • Invocation of registerDisconnectTools as part of the batched tools registration.
    registerDisconnectTools(server, wagmiConfig);
  • src/index.ts:15-15 (registration)
    Top-level call to register all tools, which indirectly registers the 'disconnect' tool.
    registerTools(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