Skip to main content
Glama

APISIX-MCP

by api7
proto.ts660 B
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import makeAdminAPIRequest from "../utils/adminAPI.js"; import { CreateOrUpdateProtoSchema } from "../schemas/protos.js"; const setupProtoTools = (server: McpServer) => { server.tool("create_or_update_proto", "Create a proto, if the proto already exists, it will be updated", CreateOrUpdateProtoSchema.shape, async (args) => { const protoId = args.id; if (protoId) { return await makeAdminAPIRequest(`/protos/${protoId}`, "PUT", args.proto); } else { return await makeAdminAPIRequest("/protos", "POST", args.proto); } }); }; export default setupProtoTools;

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/api7/apisix-mcp'

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