Skip to main content
Glama
blakeyoder

TypeScript Definitions MCP Server

by blakeyoder

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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) } ] }; }
  • The input schema definition for the get_project_info tool, specifying an empty object with no properties.
    inputSchema: { type: "object", properties: {}, additionalProperties: false }
  • 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 } },
  • 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();

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/blakeyoder/typescript-definitions-mcp'

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