n8n_update_project
Modify an existing n8n project by updating its name, type, or other properties using the project ID.
Instructions
Update a project
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Project ID | |
| name | No | New project name | |
| type | No | Project type |
Implementation Reference
- src/index.ts:348-355 (handler)The MCP tool handler for 'n8n_update_project' which delegates the logic to n8nClient.updateProject.
case 'n8n_update_project': { if (!args?.id) throw new Error('id is required'); const { id, ...data } = args; const result = await n8nClient.updateProject(id as string, data); return { content: [{ type: 'text', text: formatResponse(result) }], }; } - src/index.ts:839-850 (schema)The tool schema registration for 'n8n_update_project' defining the input requirements.
{ name: 'n8n_update_project', description: 'Update a project', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Project ID' }, name: { type: 'string', description: 'New project name' }, type: { type: 'string', description: 'Project type' }, }, required: ['id'], }, - src/n8n-client.ts:247-250 (handler)The actual API client method that performs the HTTP PUT request to update an n8n project.
async updateProject(id: string, data: { name?: string; type?: string }): Promise<any> { const response = await this.client.put(`/projects/${id}`, data); return response.data; }