Skip to main content
Glama

Scenario Word

by HyunJuHwan
SplitscenarioTool.ts858 B
// import { MCPTool } from "mcp-framework"; // import { z } from "zod"; // interface SplitscenarioInput { // scenario_text: string; // } // class SplitscenarioTool extends MCPTool<SplitscenarioInput> { // name = "splitScenario"; // description = "Splitscenario tool description"; // schema = { // scenario_text: { // type: z.string(), // description: "scenario_text to process", // }, // }; // async execute({scenario_text}: SplitscenarioInput) { // const sentences = scenario_text // .split(/[.!?]/) // .map(s => s.trim()) // .filter(Boolean); // const scenes = sentences.map((desc, i) => ({ // scene_id: `scene-${i + 1}`, // description: desc // })); // // saveScenes(scenes); // 캐시에 저장 // return { scenes }; // } // } // export default SplitscenarioTool;

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/HyunJuHwan/mcp-server'

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