Skip to main content
Glama
PraneshASP

Foundry MCP Server

by PraneshASP
status.ts615 B
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { getAnvilInfo } from "../../utils/rpc.js"; export function registerAnvilStatusTool(server: McpServer): void { server.tool( "anvil_status", "Check if Anvil is running and get its status", {}, async () => { const anvilInfo = await getAnvilInfo(); return { content: [{ type: "text", text: anvilInfo.running ? `Anvil is running on port ${anvilInfo.port}. RPC URL: ${anvilInfo.url}` : "Anvil is not currently running." }] }; } ); }

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/PraneshASP/foundry-mcp-server'

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