export type Request = {
jsonrpc: '2.0'
method: string
params?: any
id: number
}
export type Response = SuccessResponse | ErrorResponse
export type SuccessResponse = {
jsonrpc: '2.0'
result: any
id: number
}
export type ErrorResponse = {
jsonrpc: '2.0'
error: {
code: number
message: string
data: any
}
id: number
}
export function isErrorResponse(response: Response): response is ErrorResponse {
return (response as ErrorResponse).error !== undefined
}
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/prisma/prisma'
If you have feedback or need assistance with the MCP directory API, please join our Discord server