update-project
Modify a project's name in the n8n MCP Server by providing clientId, projectId, and new name as compact JSON. Requires n8n Enterprise license with project management features enabled.
Instructions
Update a project's name. NOTE: Requires n8n Enterprise license with project management features enabled. IMPORTANT: Arguments must be provided as compact, single-line JSON without whitespace or newlines.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clientId | Yes | ||
| name | Yes | ||
| projectId | Yes |
Implementation Reference
- src/index.ts:1227-1257 (handler)Handler for the 'update-project' tool. Retrieves the N8nClient by clientId, validates it exists, then calls client.updateProject(projectId, name) to update the project name via the n8n API.case "update-project": { const { clientId, projectId, name } = args as { clientId: string; projectId: string; name: string }; const client = clients.get(clientId); if (!client) { return { content: [{ type: "text", text: "Client not initialized. Please run init-n8n first.", }], isError: true }; } try { await client.updateProject(projectId, name); return { content: [{ type: "text", text: `Successfully updated project ${projectId} with new name: ${name}`, }] }; } catch (error) { return { content: [{ type: "text", text: error instanceof Error ? error.message : "Unknown error occurred", }], isError: true }; } }
- src/index.ts:543-554 (registration)Registration of the 'update-project' tool in the ListToolsRequestSchema handler, including its name, description, and input schema.name: "update-project", description: "Update a project's name. NOTE: Requires n8n Enterprise license with project management features enabled. IMPORTANT: Arguments must be provided as compact, single-line JSON without whitespace or newlines.", inputSchema: { type: "object", properties: { clientId: { type: "string" }, projectId: { type: "string" }, name: { type: "string" } }, required: ["clientId", "projectId", "name"] } },
- src/index.ts:546-553 (schema)Input schema definition for the 'update-project' tool, specifying parameters: clientId, projectId, name.type: "object", properties: { clientId: { type: "string" }, projectId: { type: "string" }, name: { type: "string" } }, required: ["clientId", "projectId", "name"] }
- src/index.ts:222-227 (helper)N8nClient helper method that makes the PUT request to /projects/{projectId} with the new name to update the project.async updateProject(projectId: string, name: string): Promise<void> { return this.makeRequest<void>(`/projects/${projectId}`, { method: 'PUT', body: JSON.stringify({ name }), }); }