list_components
Retrieve a complete list of API schema components (components.schemas) from ACOMO MCP Server for easy API exploration and schema inspection.
Instructions
acomoのAPIスキーマ(components.schemas)の一覧を返す
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/server.ts:247-259 (registration)Registers the 'list_components' MCP tool, including schema and inline handler.server.registerTool( "list_components", { title: "List components", description: "acomoのAPIスキーマ(components.schemas)の一覧を返す", inputSchema: {}, }, async () => ({ content: [ { type: "text", text: JSON.stringify(await listComponents()) }, ], }) );
- src/server.ts:254-258 (handler)The tool handler function that calls the listComponents helper and returns the result as JSON-formatted text content.async () => ({ content: [ { type: "text", text: JSON.stringify(await listComponents()) }, ], })
- src/server.ts:249-253 (schema)Tool metadata and input schema definition (empty input as it takes no parameters).{ title: "List components", description: "acomoのAPIスキーマ(components.schemas)の一覧を返す", inputSchema: {}, },
- src/openapi.ts:73-76 (helper)Helper function that loads the OpenAPI specification and extracts the list of component schema names.export async function listComponents(): Promise<string[]> { const spec = await loadOpenApi(); return Object.keys(spec.components?.schemas ?? {}); }