{ "openapi": "3.0.0", "info": { "title": "Effect Patterns API", "version": "1.0.0" }, "paths": { "/mcp/pattern_search": { "post": { "summary": "Search for patterns", "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "q": { "type": "string" }, "category": { "type": "string" }, "difficulty": { "type": "string" }, "limit": { "type": "number" } } } } } }, "responses": { "200": { "description": "A list of patterns" } } } }, "/mcp/pattern_explain": { "post": { "summary": "Explain a pattern", "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "patternId": { "type": "string" } }, "required": ["patternId"] } } } }, "responses": { "200": { "description": "A pattern explanation" } } } }, "/mcp/pattern_generate": { "post": { "summary": "Generate a pattern", "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "patternId": { "type": "string" }, "name": { "type": "string" }, "input": { "type": "string" }, "moduleType": { "type": "string", "enum": ["esm", "cjs"] }, "effectVersion": { "type": "string" } }, "required": ["patternId"] } } } }, "responses": { "200": { "description": "A generated pattern" } } } } } }