I did everything in the video but the mcp server did not start in claude desktop?
Are there any extra instructions missing? Example, setting up the mcp repo provided on github locally, I’ve done my best to follow the instructions but still. I just want to be able to create new reusable blocks in directus and my svelte site, why is this so difficult to do.
I ported this to a Directus endpoint extension using HTTP Streaming to allow hosting the MCP server directly with your Directus instance and connect to it with a URL: GitHub - JoshTheDerf/directus-extension-mcp
@bryantgillespie At least since the last vs-code update i could convince copilot to pickup the MCP server as tool. You may want to add vs-code to the docs. It’s basically same as cursor anyways.
In case you stumble upon the authentication error “Could not attach to MCP server directus”, this is how i fixed it. I had to create a small sh wrapper file “directus-mcp-wrapper.sh” with the following content:
The MCP server for Claude Desktop is fantastic considering it’s such an early version.
However, I don’t really understand the messages field in the ai_prompts. When I select a prompt, the system prompt is shown as a .txt attachment (which is fine).
But how is the messages field supposed to work. It’s explained in the help documents, but I can’t get anything from messages into the prompt field in Claude Desktop (and I also can’t see how it would even know about the dynamic values).
The messages functionality in the AI Prompts functionality is there to help you shape the results you want even further. For example, use the role function and provide examples of questions or tasks that you might give it. And then provide an example of a “good” response.
Here’s a silly example.
{
"name": "dad-joke",
"status": "draft",
"description": "Get great dad jokes from LLMs.",
"system_prompt": "You are a dad joke telling machine, but you don't tell just the average dad jokes. You tell the best dad jokes in a narrative format.",
"messages": [
{
"role": "user",
"text": "Tell me an amazing dad joke"
},
{
"role": "assistant",
"text": "My neighbor had a big plan to steal the **propane** tank for my grill, but it didn't work. I guess you could say it **blew up** in his face."
}
]
}
Oof yeah that’s an odd one. Do you have the link to the appropriate spot in their documentation? We can certainly add it our docs for other JetBrains users.
Hey all. I’ve just enabled the MCP server in our directus instance and connected it to Claude desktop, and it’s kinda working but paaaaaiiinfully slow.
I haven’t even tried doing anything complicated yet, just asking it to read some basic things from various collections, and prompts are often hanging for several minutes at a time or failing with errors like “No result received from client-side tool execution.” or “Invalid payload. Validation error: Invalid input: expected array” or “Invalid payload. Cannot provide a core collection.”.
I’ve given claude’s directus user read-only access to all collections (including all system collections). Has anyone else managed to get it working a bit better?
One thing I’ve noticed personally over the last 3-4 weeks is it seems like Anthropic’s Claude chat client - both Claude Desktop and Claude AI in the browser - seem a bit slower compared to what I was previously experiencing 2-3 months ago. I don’t have any benchmarks on this and it’s just my own observation. I’ve not really observed the speed issues when using Sonnet through other clients like Cursor.
It is important to note that the MCP server is a little context-heavy at the moment because of the way that we load all the tool descriptions on startup. There’s a lot of nuance that goes into properly creating collections, fields, relations and flows – and the LLM needs to know about that to work effectively.
But we’re working to make it a little friendlier on the context window in the future.
One thing I would encourage you to do is if you’re not using certain tools, just turn them off at the connector level so that you don’t have to load those into the context window every time you start a conversation.
If you have a lot of other services or (MCP servers) custom connecters active at the same time as well, that could also potentially cause performance issues.
And lastly, if you’re willing, I would love to see some of the specific errors. Please don’t share here publicly in the community, but if you’re able to share some of those conversations where the errors have occurred through the sharing mechanism within Claude, I would love to review those. You can send me a private DM here in the community or you can submit to marketing@directus.io.
The more data points or examples we have, the easier it becomes to try and solve any issues.