Skip to main content
Glama

track_project

Analyze and track project structure to maintain inventory of files, folders, and their purposes for software development projects.

Instructions

Analyzes and tracks project structure, keeping inventory of all files, folders, and their purposes. Use at project start and after major changes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectPathYesRoot path of the project
projectNameYesName of the project
techStackNoTechnologies used

Implementation Reference

  • Implements the track_project tool handler, generating comprehensive project tracking markdown with structure recommendations, checklists, and best practices.
    export function trackProjectHandler(args: any) {
        const { projectPath, projectName, techStack = [] } = args;
    
        const tracking = `# Project Tracking: ${projectName}
    
    ## Project Root
    \`${projectPath}\`
    
    ## Tech Stack
    ${techStack.length > 0 ? techStack.map((t: string) => `- ${t}`).join("\n") : "Not specified"}
    
    ---
    
    ## Recommended Structure
    
    ### For Web Projects
    \`\`\`
    ${projectName}/
    ├── src/                    # Source code
    │   ├── components/         # UI components
    │   ├── pages/             # Page components
    │   ├── hooks/             # Custom hooks
    │   ├── utils/             # Utility functions
    │   ├── services/          # API services
    │   ├── types/             # TypeScript types
    │   └── styles/            # Global styles
    ├── public/                # Static assets
    ├── tests/                 # Test files
    ├── docs/                  # Documentation
    ├── .github/               # GitHub config
    │   └── workflows/         # GitHub Actions
    ├── package.json
    ├── tsconfig.json
    ├── README.md
    └── .gitignore
    \`\`\`
    
    ### For API Projects
    \`\`\`
    ${projectName}/
    ├── src/
    │   ├── controllers/       # Route handlers
    │   ├── services/          # Business logic
    │   ├── models/            # Data models
    │   ├── middleware/        # Custom middleware
    │   ├── routes/            # Route definitions
    │   ├── utils/             # Helpers
    │   └── config/            # Configuration
    ├── tests/
    ├── migrations/            # Database migrations
    ├── docs/
    └── docker-compose.yml
    \`\`\`
    
    ## File Tracking Checklist
    - [ ] README.md - Project documentation
    - [ ] package.json - Dependencies & scripts
    - [ ] .gitignore - Git ignore patterns
    - [ ] .env.example - Environment template
    - [ ] tsconfig.json - TypeScript config
    - [ ] Dockerfile - Container definition
    - [ ] docker-compose.yml - Container orchestration
    
    ## Best Practices
    1. Keep related files together (feature-based)
    2. Separate concerns (logic, UI, data)
    3. Use consistent naming conventions
    4. Document as you go
    5. Track all new files added
    `;
    
        return { content: [{ type: "text", text: tracking }] };
    }
  • Defines the input schema for the track_project tool using Zod, including projectPath, projectName, and optional techStack.
    export const trackProjectSchema = {
        name: "track_project",
        description: "Analyzes and tracks project structure, keeping inventory of all files, folders, and their purposes. Use at project start and after major changes.",
        inputSchema: z.object({
            projectPath: z.string().describe("Root path of the project"),
            projectName: z.string().describe("Name of the project"),
            techStack: z.array(z.string()).optional().describe("Technologies used")
        })
    };
  • src/index.ts:77-118 (registration)
    Registers the track_project tool in the toolRegistry map used by the MCP stdio server, associating it with its schema and handler.
    const toolRegistry: Map<string, RegisteredTool> = new Map([
        ["sequential_thinking", { schema: sequentialThinkingSchema, handler: sequentialThinkingHandler }],
        ["plan_task", { schema: planTaskSchema, handler: planTaskHandler }],
        ["reflect_on_code", { schema: reflectOnCodeSchema, handler: reflectOnCodeHandler }],
        ["analyze_architecture", { schema: analyzeArchitectureSchema, handler: analyzeArchitectureHandler }],
        ["debug_problem", { schema: debugProblemSchema, handler: debugProblemHandler }],
        ["brainstorm_solutions", { schema: brainstormSolutionsSchema, handler: brainstormSolutionsHandler }],
        ["compare_approaches", { schema: compareApproachesSchema, handler: compareApproachesHandler }],
        ["estimate_complexity", { schema: estimateComplexitySchema, handler: estimateComplexityHandler }],
        ["generate_tests", { schema: generateTestsSchema, handler: generateTestsHandler }],
        ["explain_code", { schema: explainCodeSchema, handler: explainCodeHandler }],
    
        ["save_memory", { schema: saveMemorySchema, handler: saveMemoryHandler }],
        ["read_memory", { schema: readMemorySchema, handler: readMemoryHandler }],
        ["list_memories", { schema: listMemoriesSchema, handler: listMemoriesHandler }],
        ["clear_memory", { schema: clearMemorySchema, handler: clearMemoryHandler }],
    
        ["validate_code", { schema: validateCodeSchema, handler: validateCodeHandler }],
        ["generate_cursor_rules", { schema: generateCursorRulesSchema, handler: generateCursorRulesHandler }],
        ["generate_gemini_config", { schema: generateGeminiConfigSchema, handler: generateGeminiConfigHandler }],
        ["generate_claude_config", { schema: generateClaudeConfigSchema, handler: generateClaudeConfigHandler }],
        ["generate_windsurf_config", { schema: generateWindsurfConfigSchema, handler: generateWindsurfConfigHandler }],
        ["generate_aider_config", { schema: generateAiderConfigSchema, handler: generateAiderConfigHandler }],
        ["generate_cline_config", { schema: generateClineConfigSchema, handler: generateClineConfigHandler }],
        ["generate_copilot_config", { schema: generateCopilotConfigSchema, handler: generateCopilotConfigHandler }],
        // Linting tools
        ["check_imports", { schema: checkImportsSchema, handler: checkImportsHandler }],
        ["lint_code", { schema: lintCodeSchema, handler: lintCodeHandler }],
        ["format_code", { schema: formatCodeSchema, handler: formatCodeHandler }],
        // IDE config tools
        ["generate_continue_config", { schema: generateContinueConfigSchema, handler: generateContinueConfigHandler }],
        ["generate_tabnine_config", { schema: generateTabnineConfigSchema, handler: generateTabnineConfigHandler }],
        ["generate_vscode_tasks", { schema: generateVSCodeTasksSchema, handler: generateVSCodeTasksHandler }],
        ["generate_vscode_launch", { schema: generateVSCodeLaunchSchema, handler: generateVSCodeLaunchHandler }],
        ["generate_jetbrains_config", { schema: generateJetBrainsConfigSchema, handler: generateJetBrainsConfigHandler }],
        // Fullstack automation tools
        ["track_project", { schema: trackProjectSchema, handler: trackProjectHandler }],
        ["check_dependencies", { schema: checkDependenciesSchema, handler: checkDependenciesHandler }],
        ["generate_github_actions", { schema: generateGitHubActionsSchema, handler: generateGitHubActionsHandler }],
        ["full_stack_scaffold", { schema: fullStackScaffoldSchema, handler: fullStackScaffoldHandler }],
        ["developer_rules", { schema: developerRulesSchema, handler: developerRulesHandler }],
    ]);
  • src/server.ts:87-123 (registration)
    Registers the track_project tool in the toolRegistry map used by the HTTP MCP server, associating it with its schema and handler.
    const toolRegistry = new Map<string, { schema: any; handler: any }>([
        ["sequential_thinking", { schema: sequentialThinkingSchema, handler: sequentialThinkingHandler }],
        ["plan_task", { schema: planTaskSchema, handler: planTaskHandler }],
        ["reflect_on_code", { schema: reflectOnCodeSchema, handler: reflectOnCodeHandler }],
        ["analyze_architecture", { schema: analyzeArchitectureSchema, handler: analyzeArchitectureHandler }],
        ["debug_problem", { schema: debugProblemSchema, handler: debugProblemHandler }],
        ["brainstorm_solutions", { schema: brainstormSolutionsSchema, handler: brainstormSolutionsHandler }],
        ["compare_approaches", { schema: compareApproachesSchema, handler: compareApproachesHandler }],
        ["estimate_complexity", { schema: estimateComplexitySchema, handler: estimateComplexityHandler }],
        ["generate_tests", { schema: generateTestsSchema, handler: generateTestsHandler }],
        ["explain_code", { schema: explainCodeSchema, handler: explainCodeHandler }],
        ["save_memory", { schema: saveMemorySchema, handler: saveMemoryHandler }],
        ["read_memory", { schema: readMemorySchema, handler: readMemoryHandler }],
        ["list_memories", { schema: listMemoriesSchema, handler: listMemoriesHandler }],
        ["clear_memory", { schema: clearMemorySchema, handler: clearMemoryHandler }],
        ["validate_code", { schema: validateCodeSchema, handler: validateCodeHandler }],
        ["check_imports", { schema: checkImportsSchema, handler: checkImportsHandler }],
        ["lint_code", { schema: lintCodeSchema, handler: lintCodeHandler }],
        ["format_code", { schema: formatCodeSchema, handler: formatCodeHandler }],
        ["generate_cursor_rules", { schema: generateCursorRulesSchema, handler: generateCursorRulesHandler }],
        ["generate_gemini_config", { schema: generateGeminiConfigSchema, handler: generateGeminiConfigHandler }],
        ["generate_claude_config", { schema: generateClaudeConfigSchema, handler: generateClaudeConfigHandler }],
        ["generate_windsurf_config", { schema: generateWindsurfConfigSchema, handler: generateWindsurfConfigHandler }],
        ["generate_aider_config", { schema: generateAiderConfigSchema, handler: generateAiderConfigHandler }],
        ["generate_cline_config", { schema: generateClineConfigSchema, handler: generateClineConfigHandler }],
        ["generate_copilot_config", { schema: generateCopilotConfigSchema, handler: generateCopilotConfigHandler }],
        ["generate_continue_config", { schema: generateContinueConfigSchema, handler: generateContinueConfigHandler }],
        ["generate_tabnine_config", { schema: generateTabnineConfigSchema, handler: generateTabnineConfigHandler }],
        ["generate_vscode_tasks", { schema: generateVSCodeTasksSchema, handler: generateVSCodeTasksHandler }],
        ["generate_vscode_launch", { schema: generateVSCodeLaunchSchema, handler: generateVSCodeLaunchHandler }],
        ["generate_jetbrains_config", { schema: generateJetBrainsConfigSchema, handler: generateJetBrainsConfigHandler }],
        ["track_project", { schema: trackProjectSchema, handler: trackProjectHandler }],
        ["check_dependencies", { schema: checkDependenciesSchema, handler: checkDependenciesHandler }],
        ["generate_github_actions", { schema: generateGitHubActionsSchema, handler: generateGitHubActionsHandler }],
        ["full_stack_scaffold", { schema: fullStackScaffoldSchema, handler: fullStackScaffoldHandler }],
        ["developer_rules", { schema: developerRulesSchema, handler: developerRulesHandler }],
    ]);
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. It mentions 'analyzes and tracks' and 'keeping inventory', which implies a read operation, but doesn't specify if it's read-only, what permissions are needed, how it handles errors, or the format of the output. For a tool with no annotations, this leaves significant gaps in understanding its behavior and safety profile.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise and well-structured: two sentences that efficiently state the purpose and usage guidelines. Every sentence earns its place without redundancy, making it easy to scan and understand quickly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (3 parameters, no output schema, no annotations), the description is moderately complete. It covers purpose and usage but lacks details on behavioral traits, output format, and error handling. For a tool that likely returns structured data about project inventory, more context would be helpful, but it meets a minimum viable level.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema description coverage is 100%, meaning all parameters are documented in the schema itself. The description doesn't add any extra meaning or context about the parameters beyond what the schema provides (e.g., it doesn't explain how 'techStack' relates to the analysis). With high schema coverage, the baseline score of 3 is appropriate, as the description doesn't compensate but also doesn't detract.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: 'Analyzes and tracks project structure, keeping inventory of all files, folders, and their purposes.' This specifies the verb ('analyzes and tracks') and resource ('project structure'), making it understandable. However, it doesn't explicitly differentiate from siblings like 'analyze_architecture' or 'check_dependencies', which might have overlapping scopes, so it misses the top score.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides explicit usage timing: 'Use at project start and after major changes.' This gives clear context for when to invoke the tool. However, it doesn't mention when not to use it or name alternatives among the many siblings, such as 'analyze_architecture' for structural insights or 'check_dependencies' for dependency tracking, so it falls short of a perfect score.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/millsydotdev/Code-MCP'

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