{"openapi":"3.1.1","info":{"title":"Nostos authenticated MCP API","version":"0.1.0","description":"Streamable HTTP MCP over JSON-RPC. Browser session APIs are internal and not included. Use a registered MCP client with OAuth authorization code and S256 PKCE. Site grants are checked on every tool call. Sitemap writes also require nostos:sitemaps:write, an explicit site write grant and approval of the exact proposal in the user’s browser. No public anonymous tool access."},"servers":[{"url":"https://nostos-seo.com"}],"externalDocs":{"url":"https://nostos-seo.com/docs"},"paths":{"/mcp":{"post":{"operationId":"mcpRequest","summary":"Send an authenticated MCP JSON-RPC message","parameters":[{"in":"header","name":"Accept","required":true,"schema":{"type":"string"},"example":"application/json, text/event-stream"},{"in":"header","name":"MCP-Protocol-Version","schema":{"type":"string"},"description":"Send the negotiated MCP version after initialization."}],"description":"Use the MCP SDK to negotiate protocol versions, list tools and call granted tools. Results include source and coverage. Tool-level authorisation errors can appear as JSON-RPC errors in HTTP200 responses. This description does not bypass MCP lifecycle or authorisation.","security":[{"nostosOAuth":["nostos:read"]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["jsonrpc","method"],"properties":{"jsonrpc":{"const":"2.0"},"id":{"type":["string","integer"]},"method":{"type":"string"},"params":{"type":"object"}}}}}},"responses":{"200":{"description":"MCP JSON-RPC result or negotiated server-sent events.","content":{"application/json":{"schema":{"type":"object"}},"text/event-stream":{"schema":{"type":"string"}}}},"401":{"description":"Missing, invalid, expired or resource-mismatched OAuth token. Follow the WWW-Authenticate resource metadata challenge."},"403":{"description":"Forbidden Origin, client or required execution scope."},"405":{"description":"Use POST for stateless Streamable HTTP."}}}}},"components":{"securitySchemes":{"nostosOAuth":{"type":"oauth2","description":"Dedicated Clerk OAuth issuer. S256 PKCE and the exact https://nostos-seo.com/mcp resource are required. Only pre-registered clients are admitted.","flows":{"authorizationCode":{"authorizationUrl":"https://nearby-roughy-8633.clerk.accounts.dev/oauth/authorize","tokenUrl":"https://nearby-roughy-8633.clerk.accounts.dev/oauth/token","scopes":{"nostos:read":"Read currently granted sites.","nostos:sitemaps:write":"Prepare and execute individually browser-approved Google sitemap proposals for explicitly granted sites.","nostos:actions:write":"Record and update journal actions for explicitly granted sites; no website modification.","nostos:collect":"Request bounded data collection within explicitly granted sites and existing confirmed crawl scopes."}}}}}}}