Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ Sample Claude Desktop Config for local dev with full settings
"env": {
"DIRECTUS_URL": "https://your-directus-instance.com",
"DIRECTUS_TOKEN": "your_directus_token",
"DISABLE_TOOLS": ["delete-item", "update-field"],
"DISABLE_TOOLS": "[\"delete-item\", \"update-field\"]",
"MCP_SYSTEM_PROMPT_ENABLED": "true",
"MCP_SYSTEM_PROMPT": "You are an assistant specialized in managing content for our marketing website.",
"DIRECTUS_PROMPTS_COLLECTION_ENABLED": "true",
Expand Down
6 changes: 4 additions & 2 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ const configSchema = z
'The password of the user to login with.',
),
DISABLE_TOOLS: z
.array(z.string())
.default(['delete-item'])
.string()
.default('["delete-item"]')
.transform((val) => JSON.parse(val))
.pipe(z.array(z.string()))
.describe("Disable specific tools by name. Defaults to ['delete-item']"),
MCP_SYSTEM_PROMPT_ENABLED: z
.string()
Expand Down