22 Replies
@Jordan22 and I played with using the generated OpenAPI specs https://docs.convex.dev/client/open-api for convex deployments with OpenAI a few months ago, would love to have a similar auto MCP Server generator or at least something that helps with it, give an Convex API
OpenAPI & Other Languages | Convex Developer Hub
Convex doesn’t have explicit support for many languages including Go, Java, and
do we have better access to the apis that the dashboard uses yet? like the shapes route for example shapes2
nevermind
i got an idea
we can get some of those, would love to hear what you're thinking
I'm especially interested in making every public API of a given Convex deployment available; so every public query/mutation/action you write can be run
i basically just wanted to list table names/shapes
i did it tho
running all functions would be cool but would be interesting when it comes to auth


would be easy to query with sql lol but without it...
i guess i can just send it all of them and get instantly rate limited... haha nah but i could just do pagination to start...maybe search by field?
@Tom do you know of an api route that will return the functions
i could have sworn there was one but i cant remember really tbh. i didnt see anything in dev tools or src. only a quick look tho
its bed time tho for me
thinking about that the open-api spec could be useful
somereason it was failing to detect my dir as a convex project
i could figure that out butno time
There isn't, you have to call the "system query"
_system/cli/modules:apiSpec
and I don't think there's a http endpoint to hit that calls that, you have to use a client
(which is what npx convex function-spec
does)Okay bet
I appreciate you
cool so i got it to work with simple functions

this code is so bad 😂

feel free to use code from https://github.com/get-convex/convex-helpers/blob/main/packages/convex-helpers/cli/openApiSpec.ts
GitHub
convex-helpers/packages/convex-helpers/cli/openApiSpec.ts at main ·...
A collection of useful code to complement the official packages. - get-convex/convex-helpers
maybe not that helpful, what you've got looks good
I'll keep playing with it every now and then and maybe I'll turn out with something cool
@v how do I play with a MCP server if I want to build one, can I hook it up to cloud Claude? Do I need to run something locally?
https://github.com/modelcontextprotocol/servers/tree/main/src/postgres this is the example I learned from. As for cloud Claude I'm not sure at all.
GitHub
servers/src/postgres at main · modelcontextprotocol/servers
Model Context Protocol Servers. Contribute to modelcontextprotocol/servers development by creating an account on GitHub.
Well I mean I use the desktop app
Mine works via stdin/out but maybe it can work via http too. I'm not familiar with this at all..the only mcp server I've used is the one I wrote
I haven't even really read docs
My friend told me about it and told me to make it. He said it would work with librechat
I'm interested in the SSE protocl
Seems simple enough
The whole thing honestly is super simple
Super cool
I'm not really an ai guy either but this stuff is dope
I know if you put time into it you'll come up with something cool
here's one running on a backend https://github.com/thomasballinger/convex-sse-mcp, but now thinking more about doing this via CLIs
re sql, if you want arbitrary queries we gotta include a bit of a bundler, like the dashboard does with custom queries
Yeah something like that
Wonder if we can add a param description