Skip to main content
Glama
serve.ts1.2 kB
/** * IndexFoundry-MCP Serve Phase Tools * * Phase 5: API generation and serving. * All serve tools produce artifacts in runs/<run_id>/served/ */ import type { ServeOpenapiInput, ServeStartInput } from "../schemas/index.js"; export async function handleServeOpenapi( params: ServeOpenapiInput ): Promise<{ content: Array<{ type: "text"; text: string }>; structuredContent?: unknown }> { // TODO: Implement OpenAPI spec generation return { content: [{ type: "text", text: `[STUB] Would generate OpenAPI spec: ${params.api_info.title} v${params.api_info.version}` }], structuredContent: { success: false, error: { code: "NOT_IMPLEMENTED", message: "OpenAPI generation not yet implemented" } } }; } export async function handleServeStart( params: ServeStartInput ): Promise<{ content: Array<{ type: "text"; text: string }>; structuredContent?: unknown }> { // TODO: Implement API server start return { content: [{ type: "text", text: `[STUB] Would start server at ${params.host}:${params.port}` }], structuredContent: { success: false, error: { code: "NOT_IMPLEMENTED", message: "Server start not yet implemented" } } }; }

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/Mnehmos/mnehmos.index-foundry.mcp'

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