Skip to main content
Glama

generate_claude_config

Create a CLAUDE.md configuration file to define project structure, languages, and specifications for Claude AI development tasks.

Instructions

Generates a CLAUDE.md file for Claude Projects/Tasks.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectNameYesName of the project
languagesYesProgramming languages used
descriptionNoProject description

Implementation Reference

  • The core handler function that generates CLAUDE.md file content using the provided project name, languages, and optional description. It constructs a markdown template with tech stack, guidelines, and code review checklist.
    export function generateClaudeConfigHandler(args: any) {
        const { projectName, languages, description = "" } = args;
    
        const content = `# ${projectName}
    
    ${description}
    
    ## Tech Stack
    ${languages.map((l: string) => `- ${l}`).join("\n")}
    
    ## Guidelines
    1. Follow ${languages[0]} idioms and best practices
    2. Write clean, readable code
    3. Include proper error handling
    4. Document complex logic
    5. Write tests for critical paths
    
    ## Code Review Checklist
    - [ ] Code follows style guide
    - [ ] Tests are included
    - [ ] No security vulnerabilities
    - [ ] Performance considered
    - [ ] Documentation updated
    `;
    
        return {
            content: [{ type: "text", text: content }]
        };
    }
  • Zod schema defining the tool's input parameters: projectName (string), languages (array of strings), description (optional string).
    export const generateClaudeConfigSchema = {
        name: "generate_claude_config",
        description: "Generates a CLAUDE.md file for Claude Projects/Tasks.",
        inputSchema: z.object({
            projectName: z.string().describe("Name of the project"),
            languages: z.array(z.string()).describe("Programming languages used"),
            description: z.string().optional().describe("Project description")
        })
    };
  • src/index.ts:97-97 (registration)
    Registration of the tool in the main stdio server toolRegistry Map.
    ["generate_claude_config", { schema: generateClaudeConfigSchema, handler: generateClaudeConfigHandler }],
  • src/server.ts:108-108 (registration)
    Registration of the tool in the HTTP server toolRegistry Map.
    ["generate_claude_config", { schema: generateClaudeConfigSchema, handler: generateClaudeConfigHandler }],

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