#Bug: create_note_target fails via MCP – Object cannot be created by workflow

1 messages · Page 1 of 1 (latest)

uneven osprey
#

Hey all — running into a bug with the MCP server on Twenty Cloud and wanted to see if anyone else has hit this.

When I call create_note_target or create_task_target via MCP to attach a note/task to a company or opportunity, I get:

Failed to create: Object cannot be created by workflow

The note/task itself creates fine — it's only the linking step that fails.

Setup: Twenty Cloud, Organization plan, connected via api.twenty.com/mcp as a custom MCP connector in Claude.

Use case: using Claude to log CRM updates via natural language ("log a call with Acme Corp") — the note creates but floats unattached to the record, which makes it pretty unusable in practice.

Anyone found a workaround, or is this a known limitation of the MCP server? Also filed a GitHub issue. Thanks!

#

Update on the create_note_target MCP bug — GitHub's Sonar analysis already identified the root cause and there's an existing fix in commit fff9bd21 ("fix: exclude system objects from AI tool create/update/delete descriptors"). The fix gates write tool descriptor generation with canObjectBeManagedByWorkflow() so the tools no longer appear in the MCP catalog if they can't be executed. Looks like it just needs to be picked up in a Cloud deployment. Any ETA on when this lands on Twenty Cloud? Thanks!

ivory tangle
#

+1 to what @uneven osprey said. Hit the same on self-hosted v2.6.1 . The Both MCP and AI sidebar can't attach notes to records (add a note on this opportunity...Object cannot be created by workflow), which was the single-most valuable feature of the MCP integration for us. Saves so much time relaying updates which mostly happen outside of email.

Read the close comment on https://github.com/twentyhq/twenty/pull/20435 and understand the direction. Just trying to gauge whether an interim fix is coming, or whether we should hack a patch locally for now.

GitHub

summary

Fixes AI/workflow create for standard relation objects (e.g. noteTarget) that were incorrectly blocked because isSystem: true.

Changes

Extend canObjectBeManagedByWorkflow to allow object...

stray needle
#

@uneven osprey @ivory tangle fix will be available in next version

ivory tangle
#

@stray needle awesome thanks, really need this