import { Temporal } from 'temporal-polyfill'
/**
* Resource limits defined for the user.
*/
export type ResourceLimits = {
/**
* Maximum duration for a query to run before it is canceled.
*/
queryTimeout: Temporal.Duration
/**
* Maximum allowed transaction duration. If a client specifies a longer
* duration when starting an interactive transaction, the Query Plan Executor
* will respond with an error.
*/
maxTransactionTimeout: Temporal.Duration
/**
* Maximum allowed size of a response in bytes.
*/
maxResponseSize: number
}
/**
* Exception thrown when a resource limit is exceeded.
*/
export class ResourceLimitError extends Error {
constructor(message: string) {
super(message)
this.name = 'ResourceLimitException'
}
}
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