Skip to main content
Glama
SuReaper

NullShot Typescript MCP Template

by SuReaper
index.ts570 B
import { CortensorMCP } from './server'; export { CortensorMCP }; interface Env { CORTENSOR_MCP: DurableObjectNamespace; } export default { async fetch(request: Request, env: Env): Promise<Response> { const url = new URL(request.url); const sessionIdStr = url.searchParams.get('sessionId'); const id = sessionIdStr ? env.CORTENSOR_MCP.idFromString(sessionIdStr) : env.CORTENSOR_MCP.newUniqueId(); url.searchParams.set('sessionId', id.toString()); return env.CORTENSOR_MCP.get(id).fetch(new Request(url.toString(), request)); } };

Latest Blog Posts

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/SuReaper/cortensor-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server