create_project
Create a new project directory with a specified name and optional description to organize coding tasks within the Claude Code Bridge environment.
Instructions
Create a new project directory
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Project name | |
| description | No | Project description |
Implementation Reference
- server.js:214-230 (handler)The main implementation of createProject that creates a project directory and README.md file. It takes a project name and optional description, creates the directory in the working directory, writes a README with the project details, and returns a success message.async createProject(name, description = '') { const projectPath = path.join(this.workingDir, name); await fs.ensureDir(projectPath); // Create a basic README const readmeContent = `# ${name}\n\n${description}\n\nGenerated by Claude Code Bridge\n`; await fs.writeFile(path.join(projectPath, 'README.md'), readmeContent); return { content: [ { type: "text", text: `Project '${name}' created at ${projectPath}` } ] }; }
- server.js:61-78 (schema)Tool schema definition for create_project that specifies the input parameters (required 'name' string and optional 'description' string) and the tool description.{ name: "create_project", description: "Create a new project directory", inputSchema: { type: "object", properties: { name: { type: "string", description: "Project name" }, description: { type: "string", description: "Project description" } }, required: ["name"] } },
- server.js:138-139 (registration)The registration point that routes the 'create_project' tool call to the createProject method, passing the name and description arguments.case 'create_project': return await this.createProject(args.name, args.description);