directus / directus/mcp

DISABLE_TOOLS options erroring due to Claude env array vs string and mcp handling

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

Description

The MCP server itself expects an array, but Claude Desktop's config parser expects a string. This is a mismatch between how Claude Desktop handles environment variables and how the MCP server parses them.

Config according to docs:
`"DISABLE_TOOLS": ["delete-item", "update-field", "create-field"]`

Error Message on Claude startup:
Could not load app settings
There was an error reading or parsing claude_desktop_config.json: [
{
"code": "invalid_type",
"expected": "string",
"received": "array",
"path": [
"mcpServers",
"directus",
"env",
"DISABLE_TOOLS"
],
"message": "Expected string, received array"
}
]

Tried a couple of variations suggested by Claude, but no luck.

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.