noob saibot
noob saibot3mo ago

I'm unable the use convex mcp in cursor: it can't find the deployment

I have installed the convex mcp in my (latest version) cursor IDE. Then I asked it to query the payments table and display the 10 last records. This is the response: === It looks like there is no Convex deployment currently configured in your project (the CONVEX_DEPLOYMENT environment variable is not set). To use Convex MCP tools and query the latest payment deposits, you'll need to start your Convex dev server and ensure your project is properly configured. Here's what you should do: Run npx convex dev in your project root to start the Convex dev server and set up the deployment. Once that's running, let me know, and I can fetch and show you the 10 latest payment deposits using Convex MCP. Would you like instructions on how to set up Convex, or do you want to proceed and let me know when it's ready? === But I have the .env.local in the repo with the proper variables set (since I've been using convex in my dev workflow for hover a year now). Even when I run "npx convex dev", still it is unable to run my query. Then I directly provided the env variable in the chat. And this is it response: === Even with the provided deployment values, the MCP tools are still unable to detect the Convex deployment in this environment. This suggests that the environment variables may not be loaded into the current shell or process where the tools are running. To resolve this: Make sure your .env.local file is in the correct directory and contains the provided values. Restart your terminal or development environment to ensure the environment variables are loaded. Alternatively, you can export the variables directly in your terminal before running any commands === Maybe I'm doing something wrong or I haven't figured out how to properly use a mcp tool?...Thanks for your assistance P.S. I have faced the same issue a couple of weeks ago, reported it here. Then it just went away and started working...Now it's back
1 Reply
Convex Bot
Convex Bot3mo ago
Thanks for posting in <#1088161997662724167>. Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.) - Use search.convex.dev to search Docs, Stack, and Discord all at once. - Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI. - Avoid tagging staff unless specifically instructed. Thank you!

Did you find this page helpful?