Skip to main content
Glama
utils.ts922 B
import { ThoughtStage } from "./types.js"; // Helper to convert string to ThoughtStage export function thoughtStageFromString(stage: string): ThoughtStage { switch (stage.toLowerCase()) { case "problem definition": return ThoughtStage.PROBLEM_DEFINITION; case "analysis": return ThoughtStage.ANALYSIS; case "ideation": return ThoughtStage.IDEATION; case "evaluation": return ThoughtStage.EVALUATION; case "implementation": return ThoughtStage.IMPLEMENTATION; case "refinement": return ThoughtStage.REFINEMENT; case "plan": return ThoughtStage.PLAN; case "research": return ThoughtStage.RESEARCH; case "synthesis": return ThoughtStage.SYNTHESIS; case "conclusion": return ThoughtStage.CONCLUSION; default: // Default to problem definition if stage is unknown return ThoughtStage.PROBLEM_DEFINITION; } }

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/Promptly-Technologies-LLC/mcp-structured-thinking'

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