We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/sanity-io/sanity-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
middleware.ts•355 B
import {contextStore} from './store.js'
export function enforceInitialContextMiddleware(toolName: string) {
if (toolName === 'get_initial_context') return
if (!contextStore.hasInitialContext()) {
throw new Error(
'Initial context has not been retrieved. Please call get_initial_context tool first to get the initial context.',
)
}
}