We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/cameronsjo/mouse-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
query-counter.ts•515 B
/**
* Query Counter
*
* In-memory counter for MCP tool invocations.
* Resets on server restart (no persistence needed).
*
* WHY: Homepage widget needs a queries_total stat.
* In-memory is sufficient since the widget shows current-session activity.
*/
let queryCount = 0;
/** Increment the query counter. Called on each tool invocation. */
export function incrementQueryCount(): void {
queryCount++;
}
/** Get the current query count. */
export function getQueryCount(): number {
return queryCount;
}