get_project_info
Retrieve details about the current TypeScript project to access type definitions and interface structures from dependencies for generating type-safe mocks and test data.
Instructions
Get information about the current TypeScript project
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/mcp-server.ts:377-393 (handler)The handler function that implements the core logic of the get_project_info tool. It retrieves installed packages using WorkspaceDetector and returns project configuration along with package statistics.private async handleGetProjectInfo() { const packages = WorkspaceDetector.getInstalledPackages(this.config.rootPath); return { content: [ { type: "text", text: JSON.stringify({ config: this.config, installedPackages: packages.length, packagesWithTypes: packages.filter(p => p.hasTypes).length, packages: packages.slice(0, 20) // Limit to first 20 for readability }, null, 2) } ] }; }
- src/mcp-server.ts:183-187 (schema)The input schema definition for the get_project_info tool, specifying an empty object with no properties.inputSchema: { type: "object", properties: {}, additionalProperties: false }
- src/mcp-server.ts:180-188 (registration)The tool registration entry in the ListToolsRequestSchema response, defining the name, description, and input schema for get_project_info.{ name: "get_project_info", description: "Get information about the current TypeScript project", inputSchema: { type: "object", properties: {}, additionalProperties: false } },
- src/mcp-server.ts:249-250 (registration)The dispatch case in the CallToolRequestSchema switch statement that routes calls to get_project_info to its handler.case "get_project_info": return await this.handleGetProjectInfo();