v
v•2w ago

MCP Server

just made the worlds most complex McpServer
No description
22 Replies
ballingt
ballingt•2w ago
@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
v
vOP•2w ago
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
ballingt
ballingt•2w ago
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
v
vOP•2w ago
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
v
vOP•2w ago
No description
v
vOP•2w ago
No description
v
vOP•2w ago
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
ballingt
ballingt•2w ago
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)
v
vOP•2w ago
Okay bet I appreciate you cool so i got it to work with simple functions
v
vOP•2w ago
No description
v
vOP•2w ago
this code is so bad 😂
v
vOP•2w ago
No description
ballingt
ballingt•2w ago
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
ballingt
ballingt•2w ago
maybe not that helpful, what you've got looks good
v
vOP•2w ago
I'll keep playing with it every now and then and maybe I'll turn out with something cool
ballingt
ballingt•2w ago
@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?
v
vOP•2w ago
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.
v
vOP•2w ago
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
ballingt
ballingt•2w ago
I'm interested in the SSE protocl
v
vOP•2w ago
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
ballingt
ballingt•2w ago
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
v
vOP•7d ago
Yeah something like that Wonder if we can add a param description

Did you find this page helpful?