Skip to main content
Glama
index.ts611 B
import { FastMCP } from "fastmcp"; import { registerPrompts } from "./prompts/index"; import { registerTools } from "./tools/register-tools"; import { createWagmiConfig } from "./wagmi-config"; async function main() { try { const server = new FastMCP({ name: "MetaMask", version: "1.0.0", }); const wagmiConfig = await createWagmiConfig(); registerPrompts(server); registerTools(server, wagmiConfig); await server.start({ transportType: "stdio", }); } catch (error) { console.error("Error starting server:", error); process.exit(1); } } main();

Implementation Reference

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