Skip to main content
Glama
localDeMCPConnection.ts916 B
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { RPCType } from "../types/RPCType"; import { z } from "zod/v3"; import { formatErrorResponse, formatResponse } from "../utils/formatResponse"; export function registerLocalDeMCPConnectionTools( server: McpServer, rpc: RPCType ) { const localDeMCPConnectionToolRPCCall = async () => { return rpc.callTool("local_de_mcp_connection_tool", {}); }; server.registerTool( "get_designer_app_connection_info", { title: "Get Designer App Connection Info", description: "Get Webflow MCP App Connection Info. if user ask to get Webflow MCP app connection info, use this tool", inputSchema: z.object({}), }, async () => { try { return formatResponse(await localDeMCPConnectionToolRPCCall()); } catch (error) { return formatErrorResponse(error); } } ); }

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

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