Problem/Motivation
create_node returns url/edit_url as relative paths (/node/12/edit). MCP
clients are external and can't resolve the site host, so the links aren't usable as-is.
Proposed resolution
Add setAbsolute() in CreateNodeTool::execute():
'url' => $node->toUrl()->setAbsolute()->toString(),
'edit_url' => $node->toUrl('edit-form')->setAbsolute()->toString(),
Issue fork ai_content_assistant-3591149
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
andrey.troeglazov commentedComment #6
andrey.troeglazov commented