Skip to main content
Glama

MCP Agent TypeScript Port

by waldzellai
index.js892 B
"use strict"; // Context module exports Object.defineProperty(exports, "__esModule", { value: true }); exports.ContextManager = void 0; class ContextManager { static instance; currentContext = null; constructor() { } static getInstance() { if (!ContextManager.instance) { ContextManager.instance = new ContextManager(); } return ContextManager.instance; } createContext(metadata = {}) { this.currentContext = { traceId: this.generateTraceId(), timestamp: Date.now(), metadata }; return this.currentContext; } getCurrentContext() { return this.currentContext; } generateTraceId() { return Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15); } } exports.ContextManager = ContextManager;

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/waldzellai/mcp-agent-ts'

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