Skip to main content
Glama

get_project_status

Check trace project status to view configuration, cache state, and validation results for static analysis of schema mismatches.

Instructions

Get the status of a trace project including config, cache state, and last validation result.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectDirYesRoot directory with .trace-mcp config

Implementation Reference

  • Zod input validation schema for the get_project_status tool.
    const GetProjectStatusInput = z.object({ projectDir: z.string().describe('Root directory with .trace-mcp config'), });
  • src/index.ts:264-274 (registration)
    Registration of the get_project_status tool in the ListToolsRequestSchema handler response.
    { name: 'get_project_status', description: 'Get the status of a trace project including config, cache state, and last validation result.', inputSchema: { type: 'object', properties: { projectDir: { type: 'string', description: 'Root directory with .trace-mcp config' }, }, required: ['projectDir'], }, },
  • Main execution handler for get_project_status within the CallToolRequestSchema switch statement. Loads project status using imported watch functions and returns formatted JSON response.
    case 'get_project_status': { const input = GetProjectStatusInput.parse(args); log(`Getting project status for: ${input.projectDir}`); const project = loadProject(input.projectDir); if (!project.exists()) { return { content: [{ type: 'text', text: JSON.stringify({ success: false, exists: false, error: `No trace project found at ${input.projectDir}`, }, null, 2), }], }; } const config = project.config; const activeWatchers = listActiveWatchers(); const isWatching = activeWatchers.includes(project.rootDir); let watcherStatus = null; if (isWatching) { const watcher = getWatcher(project); watcherStatus = watcher.getStatus(); } return { content: [{ type: 'text', text: JSON.stringify({ success: true, exists: true, projectDir: project.rootDir, traceDir: project.traceDir, config, isWatching, watcherStatus, paths: { producer: project.producerPath, consumer: project.consumerPath, }, }, null, 2), }], }; }

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/Mnehmos/trace-mcp'

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