We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/get-convex/convex-backend'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
import { streamQuery } from "../shared/pagination";
import {
DataModelFromSchemaDefinition,
GenericQueryCtx,
SchemaDefinition,
TableNamesInDataModel,
} from "convex/server";
import { PageRequest } from "../shared/pagination";
export const streamQueryForServerSchema = <
ServerSchema extends SchemaDefinition<any, any>,
>(
schema: ServerSchema,
) => {
return <
T extends TableNamesInDataModel<
DataModelFromSchemaDefinition<ServerSchema>
>,
>(
ctx: GenericQueryCtx<DataModelFromSchemaDefinition<ServerSchema>>,
request: Omit<
PageRequest<DataModelFromSchemaDefinition<ServerSchema>, T>,
"targetMaxRows" | "absoluteMaxRows" | "schema"
>,
) => {
return streamQuery(ctx, { ...request, schema });
};
};