{"openapi":"3.1.0","info":{"title":"Resonami MCP API","version":"0.3.0","description":"Resonami exposes public movie, TV, and book discovery through the Model Context Protocol (MCP). This document describes the HTTP transport. MCP tools are JSON-RPC methods at /mcp, not separate REST endpoints. The get_resonami_profile tool requires an OAuth bearer token; discovery tools are anonymous."},"servers":[{"url":"https://resonami.com"}],"externalDocs":{"description":"Resonami MCP API documentation","url":"https://resonami.com/api-docs"},"paths":{"/mcp":{"post":{"operationId":"exchangeMcpMessage","summary":"Exchange an MCP JSON-RPC message","description":"Send MCP requests such as initialize, tools/list, and tools/call to this single endpoint. Set Content-Type: application/json and Accept: application/json, text/event-stream. Public tools are search_titles, find_similar_titles, find_books_for_screen_title, and find_screen_titles_for_book. get_resonami_profile needs the resonami.profile OAuth scope; an unauthenticated tool call returns an MCP authentication challenge. The server uses stateless POST exchanges; GET and DELETE session operations return HTTP 405. A browser Origin, when supplied, must match the Resonami host.","parameters":[{"name":"MCP-Protocol-Version","in":"header","required":false,"description":"Protocol revision negotiated by the MCP client. Older stateless requests may omit this header.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonRpcMessage"},"examples":{"listTools":{"summary":"List available tools","value":{"jsonrpc":"2.0","id":1,"method":"tools/list"}},"searchTitles":{"summary":"Search the public catalog","value":{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"search_titles","arguments":{"category":"movies","query":"Inception"}}}}}}}},"responses":{"200":{"description":"JSON-RPC result or error. Depending on the MCP protocol revision and request, the result may be delivered as JSON or a server-sent event stream. Tool-level errors can appear inside a successful JSON-RPC result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonRpcResponse"}},"text/event-stream":{"schema":{"type":"string","description":"Server-sent events containing JSON-RPC messages."}}}},"202":{"description":"A JSON-RPC notification was accepted; there is no response body."},"400":{"description":"Invalid JSON-RPC message or MCP protocol headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonRpcResponse"}}}},"403":{"description":"The Host or browser Origin is not allowed."},"406":{"description":"The Accept header does not allow both application/json and text/event-stream."},"413":{"description":"The request body exceeds the transport limit."},"415":{"description":"The request Content-Type is not application/json."},"500":{"description":"The MCP exchange could not be completed."}},"security":[{},{"resonamiOAuth":["resonami.profile"]}]}}},"components":{"securitySchemes":{"resonamiOAuth":{"type":"oauth2","description":"Only get_resonami_profile requires OAuth. The MCP protected-resource metadata is at /.well-known/oauth-protected-resource/mcp.","flows":{"authorizationCode":{"authorizationUrl":"https://resonami.com/oauth/authorize","tokenUrl":"https://resonami.com/oauth/token","scopes":{"resonami.profile":"Read the connected Resonami account identifier and display name."}}}}},"schemas":{"JsonRpcMessage":{"type":"object","required":["jsonrpc"],"properties":{"jsonrpc":{"type":"string","const":"2.0"},"id":{"oneOf":[{"type":"integer"},{"type":"string"}],"description":"Omit for notifications."},"method":{"type":"string","description":"MCP method, such as initialize, tools/list, or tools/call."},"params":{"type":"object","additionalProperties":true,"description":"For tools/call, include name and arguments."},"result":{"description":"Only for a client response to a server request."},"error":{"$ref":"#/components/schemas/JsonRpcError"}},"additionalProperties":true},"JsonRpcResponse":{"type":"object","required":["jsonrpc","id"],"properties":{"jsonrpc":{"type":"string","const":"2.0"},"id":{"oneOf":[{"type":"integer"},{"type":"string"},{"type":"null"}]},"result":{"description":"MCP result; tools/call results may include content and structuredContent."},"error":{"$ref":"#/components/schemas/JsonRpcError"}},"additionalProperties":true},"JsonRpcError":{"type":"object","required":["code","message"],"properties":{"code":{"type":"integer"},"message":{"type":"string"},"data":{}},"additionalProperties":true}}}}