We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/kales0202/mcp-server-yapi'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
ListMenu.ts•722 B
import { MCPTool, MCPInput } from "mcp-framework";
import { yapiGet } from "../utils/yapi-request.js";
import { INTERFACE_ENDPOINTS } from "../constants/yapi-endpoints.js";
import { InterfaceSchema } from "../schemas/interface-schemas.js";
const ListMenuSchema = InterfaceSchema.pick({ project_id: true });
class ListMenu extends MCPTool {
name = "list_menu";
description =
"Get interface menu list - Tree structure with categories as nodes and interfaces as leaves to display all interfaces in the project";
schema = ListMenuSchema;
async execute(input: MCPInput<this>) {
return await yapiGet(INTERFACE_ENDPOINTS.LIST_MENU, {
project_id: input.project_id,
});
}
}
export default ListMenu;