directus / directus/mcp

Import-file data.id should be nullable

Open
#7 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
84
Forks
19
PR merge metrics
No merged PRs in 30d

Description

`import-file` is not working for new file updates since it requires id to get through schema validation https://github.com/directus/mcp/blob/472ce5b8dd3ddda45dba2a494cc024467a601ff4/src/types/files.ts#L5

Maybe it's just gpt4.1 that bad at MCP, but somehow it really struggles with this.

```
Result
Error processing tool: Received tool input did not match expected schema
The CMS is still reporting an input schema error, even with only the mandatory fields.
This strongly suggests that the CMS import function likely requires a specific field that hasn't been provided just yet—commonly, this could be a required folder ID or another identifier.
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.