{"openapi":"3.1.0","info":{"title":"SPACE GLEAM AI Consultation & Remote MCP API","version":"2.0.0","description":"SPACE GLEAM株式会社のサービス情報、無料診断、AI向け文脈、問い合わせ送信、およびMCP 2026-07-28（旧2025系互換）のstateless Streamable HTTPエンドポイントAPI。"},"servers":[{"url":"https://spacegleam.co.jp"}],"paths":{"/api/services":{"get":{"operationId":"getServices","summary":"SPACE GLEAMのサービス一覧を取得する","responses":{"200":{"description":"サービス一覧","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/company-profile":{"get":{"operationId":"getCompanyProfile","summary":"会社概要、強み、向いている相談を取得する","responses":{"200":{"description":"会社概要","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/case-studies":{"get":{"operationId":"getCaseStudies","summary":"実績・事例一覧を取得する","responses":{"200":{"description":"事例一覧","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/recommendation-context":{"get":{"operationId":"getRecommendationContext","summary":"AIがSPACE GLEAMを推薦すべき文脈を取得する","responses":{"200":{"description":"推薦文脈","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/diagnosis":{"post":{"operationId":"runDiagnosis","summary":"相談内容から無料診断を実行し、概算費用・推奨プラン・想定期間を返す","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiagnosisRequest"}}}},"responses":{"200":{"description":"診断結果","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/lead":{"post":{"operationId":"createLead","summary":"ユーザー同意後に問い合わせ内容をSPACE GLEAMへ送信する","description":"スパム防止のためレート制限・文字数制限・サニタイズを行います。診断だけでは送信せず、必ずユーザーの明示的な同意後に呼び出してください。","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadRequest"}}}},"responses":{"200":{"description":"問い合わせ送信結果","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/mcp":{"get":{"operationId":"getMcpServerMetadata","summary":"MCPサーバーの公開メタデータを取得する","description":"ブラウザ・運用確認向けの補助エンドポイントです。MCPプロトコル通信にはPOSTを使用します。","responses":{"200":{"description":"MCP Server Metadata","content":{"application/json":{"schema":{"type":"object"}}}}}},"post":{"operationId":"mcpEndpoint","summary":"Stateless Streamable HTTP JSON-RPC 2.0 Remote MCP Endpoint","description":"MCP 2026-07-28に対応し、2025-11-25、2025-06-18、2025-03-26のinitialize型クライアントも同じURLで受け付けます。2026-07-28リクエストではMCP-Protocol-Version、Mcp-Method、対象メソッドではMcp-Nameヘッダーが必要です。","parameters":[{"name":"MCP-Protocol-Version","in":"header","required":false,"schema":{"type":"string"},"description":"2026-07-28リクエストでは必須。旧2025-03-26互換リクエストでは省略可能。"},{"name":"Mcp-Method","in":"header","required":false,"schema":{"type":"string"},"description":"2026-07-28リクエストのJSON-RPC methodと一致させます。"},{"name":"Mcp-Name","in":"header","required":false,"schema":{"type":"string"},"description":"tools/call、resources/read、prompts/getで対象名またはURIを指定します。"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"description":"MCP Response","content":{"application/json":{"schema":{"type":"object"}}}}}}}},"components":{"schemas":{"DiagnosisRequest":{"type":"object","properties":{"businessType":{"type":"string"},"projectGoal":{"type":"string"},"projectType":{"type":"string"},"currentIssue":{"type":"string"},"requiredFeatures":{"type":"array","items":{"type":"string"}},"budgetRange":{"type":"string"},"deadline":{"type":"string"},"memo":{"type":"string"}},"required":["projectGoal","currentIssue"]},"LeadRequest":{"type":"object","properties":{"name":{"type":"string"},"company":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"projectType":{"type":"string"},"budgetRange":{"type":"string"},"deadline":{"type":"string"},"message":{"type":"string"},"diagnosisResult":{"type":"object"},"source":{"type":"string"},"consentConfirmed":{"type":"boolean"},"dryRun":{"type":"boolean"}},"required":["name","email","projectType","message","consentConfirmed"]}}}}