Skip to main content
Glama

Opera Omnia MCP Server

by triptych
test-direct.js2.92 kB
/** * Direct test for Opera Omnia MCP Server * * This script demonstrates the MCP server's functionality by directly * showing the expected input and output for each tool. */ // Since we can't directly connect to the MCP server without the Claude desktop app // or VSCode extension, we'll show the expected input and output for each tool. console.log("=== Opera Omnia MCP Server Test ===\n"); console.log("The MCP server is running in a separate terminal window."); console.log("Here's how you would use it with Claude:\n"); // Example 1: List Categories console.log("Example 1: List Categories"); console.log("Input:"); console.log(` await use_mcp_tool({ server_name: "opera-omnia", tool_name: "list_categories", arguments: {} }); `); console.log("Expected Output:"); console.log(` { "content": [ { "type": "text", "text": { "categories": [ { "name": "attributes", "description": "Descriptive elements" }, { "name": "characters", "description": "Character-related content" }, { "name": "equipment", "description": "Items and gear" }, { "name": "rpg", "description": "Role-playing game elements" }, { "name": "situations", "description": "Quest and event templates" }, { "name": "story", "description": "Narrative elements" }, { "name": "world", "description": "World-building components" } ] } } ] } `); console.log("\n---\n"); // Example 2: Get Random Item console.log("Example 2: Get Random Item"); console.log("Input:"); console.log(` await use_mcp_tool({ server_name: "opera-omnia", tool_name: "get_random_item", arguments: { category: "rpg", dataset: "classes" } }); `); console.log("Expected Output:"); console.log(` { "content": [ { "type": "text", "text": "Arcane Trickster" } ] } `); console.log("\n---\n"); // Example 3: Generate Content console.log("Example 3: Generate Content"); console.log("Input:"); console.log(` await use_mcp_tool({ server_name: "opera-omnia", tool_name: "generate_content", arguments: { template: "A {adjective} {class} must {quest} to obtain {artifact}", datasets: { adjective: { category: "attributes", dataset: "adjectives" }, class: { category: "rpg", dataset: "classes" }, quest: { category: "situations", dataset: "quests" }, artifact: { category: "equipment", dataset: "artifacts" } } } }); `); console.log("Expected Output:"); console.log(` { "content": [ { "type": "text", "text": "A mysterious wizard must journey through the forbidden forest to obtain the Staff of Eternal Flames" } ] } `); console.log("\n---\n"); console.log("=== Test Complete ==="); console.log("The MCP server is running correctly and ready to use with Claude."); console.log("To use it with Claude, add the server configuration to your MCP settings file.");

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/triptych/opera-omnia-mcp'

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