Skip to main content
Glama
mdz-axo

PT-MCP (Paul Test Man Context Protocol)

by mdz-axo

extract_api_surface

Extract and document the public API surface from codebases to generate structured documentation in markdown, JSON, or TypeScript formats.

Instructions

Extract and document public API surface of the codebase

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesRoot directory path
include_privateNoInclude private/internal APIs
output_formatNoOutput format for API documentationmarkdown

Implementation Reference

  • Main handler function that executes the extract_api_surface tool logic. Currently a stub implementation returning a pending message.
    export async function extractApiSurface( args: ExtractApiSurfaceArgs ): Promise<{ content: Array<{ type: string; text: string }> }> { return { content: [ { type: "text", text: JSON.stringify( { message: "API surface extraction - implementation pending", path: args.path, }, null, 2 ), }, ], }; }
  • TypeScript interface defining the input arguments for the extract_api_surface tool.
    interface ExtractApiSurfaceArgs { path: string; include_private?: boolean; output_format?: "markdown" | "json" | "typescript"; }
  • JSON schema definition for the extract_api_surface tool, used in ListTools response.
    name: "extract_api_surface", description: "Extract and document public API surface of the codebase", inputSchema: { type: "object", properties: { path: { type: "string", description: "Root directory path", }, include_private: { type: "boolean", description: "Include private/internal APIs", default: false, }, output_format: { type: "string", enum: ["markdown", "json", "typescript"], description: "Output format for API documentation", default: "markdown", }, }, required: ["path"], }, },
  • Registration of the extract_api_surface handler in the tool dispatch switch statement.
    case "extract_api_surface": return await extractApiSurface(args as any);
  • src/index.ts:47-47 (registration)
    Call to registerTools which sets up the CallToolRequestSchema handler dispatching to individual tools including extract_api_surface.
    registerTools(server);

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/mdz-axo/pt-mcp'

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