get_project_info
Retrieve current TypeScript project details including dependencies and structure to enable type-safe development and testing workflows.
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 main handler function that executes the get_project_info tool logic by fetching installed packages and project config using WorkspaceDetector and returning a JSON summary.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:180-188 (registration)Tool registration in the MCP server tools array, including name, description, and input schema.{ name: "get_project_info", description: "Get information about the current TypeScript project", inputSchema: { type: "object", properties: {}, additionalProperties: false } },
- src/mcp-server.ts:183-187 (schema)Input schema definition for the get_project_info tool, specifying no required properties.inputSchema: { type: "object", properties: {}, additionalProperties: false }