Skip to main content
Glama

APISIX-MCP

by api7
ssl.ts801 B
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { CreateSSLSchema, UpdateSSLSchema } from "../schemas/ssl.js"; import makeAdminAPIRequest from "../utils/adminAPI.js"; const setupSSLTools = (server: McpServer) => { server.tool("create_ssl", "Create an SSL certificate", CreateSSLSchema.shape, async (args) => { const sslId = args.id; if (!sslId) { return await makeAdminAPIRequest(`/ssls`, "POST", args.ssl); } else { return await makeAdminAPIRequest(`/ssls/${sslId}`, "PUT", args.ssl); } }); server.tool("update_ssl", "Update specific attributes of an existing SSL certificate", UpdateSSLSchema.shape, async (args) => { return await makeAdminAPIRequest(`/ssls/${args.id}`, "PATCH", args.ssl); }); }; export default setupSSLTools;

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