{"openapi":"3.1.0","info":{"title":"AstroMCP API","version":"0.1.0","description":"Astrology tools for AI agents: live planetary positions, natal charts, horoscopes and tarot readings, calculated with the Swiss Ephemeris."},"servers":[{"url":"https://astrocompo-distributor-production.fly.dev"}],"paths":{"/health":{"get":{"operationId":"get-health","summary":"Public liveness probe for the distributor itself","description":"Public liveness probe for the distributor itself. It does not check the supplier and reveals nothing about the stack.\n\nResponse: { status: \"ok\", service: \"distributor\", timestamp }: always HTTP 200.","tags":["Health"],"security":[],"x-astromcp-scope":"public","externalDocs":{"url":"https://astrocompo.com/developers#get-health"},"responses":{"200":{"description":"{ status: \"ok\", service: \"distributor\", timestamp }: always HTTP 200."},"default":{"description":"Error envelope shared by every endpoint.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/diagnostics":{"get":{"operationId":"get-v1-diagnostics","summary":"Detailed status for operators: supplier reachability, versions, and ephemeris and AI key checks","description":"Detailed status for operators: supplier reachability, versions, and ephemeris and AI key checks. Rate limited per key.\n\nResponse: { status: \"ok\"|\"degraded\", service: \"distributor\", version, timestamp, upstream: { supplier: \"ok\"|\"unreachable\", supplierDiagnostics } }: HTTP 200; read `status` for degraded state.","tags":["Health"],"security":[{"bearerAuth":[]}],"x-astromcp-scope":"enterprise","externalDocs":{"url":"https://astrocompo.com/developers#get-v1-diagnostics"},"responses":{"200":{"description":"{ status: \"ok\"|\"degraded\", service: \"distributor\", version, timestamp, upstream: { supplier: \"ok\"|\"unreachable\", supplierDiagnostics } }: HTTP 200; read `status` for degraded state."},"default":{"description":"Error envelope shared by every endpoint.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/keys":{"post":{"operationId":"post-v1-keys","summary":"Create an API key (operator surface)","description":"Create an API key (operator surface). Anonymous creation is disabled on production: send an enterprise-tier key as the Bearer token, or the operator bootstrap secret. Keys at a tier above free need that authority; without it the tier is clamped to free. Self-serve keys come from the Developer tab in your account settings.\n\nResponse: 201 { key, prefix, name, tier, createdAt }: `key` is the raw secret, shown exactly once and never retrievable again.","tags":["API Keys"],"security":[{"bearerAuth":[]}],"x-astromcp-scope":"enterprise","externalDocs":{"url":"https://astrocompo.com/developers#post-v1-keys"},"requestBody":{"required":true,"description":"{ name: string, tier?: \"free\"|\"starter\"|\"growth\"|\"scale\"|\"enterprise\", tenantId?: uuid }","content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"201":{"description":"201 { key, prefix, name, tier, createdAt }: `key` is the raw secret, shown exactly once and never retrievable again."},"default":{"description":"Error envelope shared by every endpoint.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"get":{"operationId":"get-v1-keys","summary":"List every API key (admin surface)","description":"List every API key (admin surface).\n\nResponse: 200 { keys: [{ id, name, keyPrefix, tier, isActive, createdAt, lastUsedAt }] }: the key secret itself is never returned.","tags":["API Keys"],"security":[{"bearerAuth":[]}],"x-astromcp-scope":"enterprise","externalDocs":{"url":"https://astrocompo.com/developers#get-v1-keys"},"responses":{"200":{"description":"200 { keys: [{ id, name, keyPrefix, tier, isActive, createdAt, lastUsedAt }] }: the key secret itself is never returned."},"default":{"description":"Error envelope shared by every endpoint.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/keys/me":{"get":{"operationId":"get-v1-keys-me","summary":"Look up your own key record","description":"Look up your own key record.\n\nResponse: 200: your ApiKeyRecord.","tags":["API Keys"],"security":[{"bearerAuth":[]}],"x-astromcp-scope":"apiKey","externalDocs":{"url":"https://astrocompo.com/developers#get-v1-keys-me"},"responses":{"200":{"description":"200: your ApiKeyRecord."},"default":{"description":"Error envelope shared by every endpoint.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/keys/{id}":{"delete":{"operationId":"delete-v1-keys-id","summary":"Revoke a key","description":"Revoke a key. Irreversible.\n\nResponse: 204 on success, 404 if no such key.","tags":["API Keys"],"security":[{"bearerAuth":[]}],"x-astromcp-scope":"enterprise","externalDocs":{"url":"https://astrocompo.com/developers#delete-v1-keys-id"},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"204 on success, 404 if no such key."},"default":{"description":"Error envelope shared by every endpoint.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/chart/natal":{"post":{"operationId":"post-v1-chart-natal","summary":"Compute a full natal chart for a birth date, time, and location","description":"Compute a full natal chart for a birth date, time, and location. Cached 7 days per input.\n\nResponse: { julian_day, planets[], houses[], ascendant, aspects[] }","tags":["Chart Data"],"security":[{"bearerAuth":[]}],"x-astromcp-scope":"apiKey","externalDocs":{"url":"https://astrocompo.com/developers#post-v1-chart-natal"},"requestBody":{"required":true,"description":"{ year, month, day, hour?, minute?, second?, latitude, longitude, houseSystem?, locale? }","content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"description":"{ julian_day, planets[], houses[], ascendant, aspects[] }"},"default":{"description":"Error envelope shared by every endpoint.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/planets/current":{"get":{"operationId":"get-v1-planets-current","summary":"Real-time current planetary positions","description":"Real-time current planetary positions. Cached 1 hour.\n\nResponse: { julian_day, planets[] }","tags":["Chart Data"],"security":[{"bearerAuth":[]}],"x-astromcp-scope":"apiKey","externalDocs":{"url":"https://astrocompo.com/developers#get-v1-planets-current"},"responses":{"200":{"description":"{ julian_day, planets[] }"},"default":{"description":"Error envelope shared by every endpoint.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/horoscope/{sign}/daily":{"get":{"operationId":"get-v1-horoscope-sign-daily","summary":"Daily horoscope for a zodiac sign","description":"Daily horoscope for a zodiac sign. Cached 24 hours.\n\nParameters: params: sign. query: date?, locale?\n\nResponse: { sign, period, content: { title, body, theme } }","tags":["Chart Data"],"security":[{"bearerAuth":[]}],"x-astromcp-scope":"apiKey","externalDocs":{"url":"https://astrocompo.com/developers#get-v1-horoscope-sign-daily"},"parameters":[{"name":"sign","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"{ sign, period, content: { title, body, theme } }"},"default":{"description":"Error envelope shared by every endpoint.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/horoscope/{sign}/weekly":{"get":{"operationId":"get-v1-horoscope-sign-weekly","summary":"A week-ahead overview plus each individual day's reading for that week","description":"A week-ahead overview plus each individual day's reading for that week.\n\nParameters: params: sign. query: date?, locale?\n\nResponse: { sign, period: \"weekly\", week_start, week_end, overview, days[] }","tags":["Chart Data"],"security":[{"bearerAuth":[]}],"x-astromcp-scope":"apiKey","externalDocs":{"url":"https://astrocompo.com/developers#get-v1-horoscope-sign-weekly"},"parameters":[{"name":"sign","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"{ sign, period: \"weekly\", week_start, week_end, overview, days[] }"},"default":{"description":"Error envelope shared by every endpoint.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/horoscope/{sign}/monthly":{"get":{"operationId":"get-v1-horoscope-sign-monthly","summary":"Monthly horoscope for a sign","description":"Monthly horoscope for a sign. Cached per calendar month.\n\nParameters: params: sign. query: date?, locale?\n\nResponse: { sign, period, content: { title, body, theme } }","tags":["Chart Data"],"security":[{"bearerAuth":[]}],"x-astromcp-scope":"apiKey","externalDocs":{"url":"https://astrocompo.com/developers#get-v1-horoscope-sign-monthly"},"parameters":[{"name":"sign","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"{ sign, period, content: { title, body, theme } }"},"default":{"description":"Error envelope shared by every endpoint.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tarot/daily":{"get":{"operationId":"get-v1-tarot-daily","summary":"The shared daily tarot advice card: one card for every caller that day","description":"The shared daily tarot advice card: one card for every caller that day. Cached 24 hours.\n\nParameters: query: date?, locale?\n\nResponse: { spread_type, generated_at, cards[], summary }","tags":["Chart Data"],"security":[{"bearerAuth":[]}],"x-astromcp-scope":"apiKey","externalDocs":{"url":"https://astrocompo.com/developers#get-v1-tarot-daily"},"responses":{"200":{"description":"{ spread_type, generated_at, cards[], summary }"},"default":{"description":"Error envelope shared by every endpoint.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tarot/weekly":{"get":{"operationId":"get-v1-tarot-weekly","summary":"The shared weekly tarot reading","description":"The shared weekly tarot reading. Cached 7 days.\n\nParameters: query: date?, locale?\n\nResponse: { spread_type, generated_at, cards[], summary }","tags":["Chart Data"],"security":[{"bearerAuth":[]}],"x-astromcp-scope":"apiKey","externalDocs":{"url":"https://astrocompo.com/developers#get-v1-tarot-weekly"},"responses":{"200":{"description":"{ spread_type, generated_at, cards[], summary }"},"default":{"description":"Error envelope shared by every endpoint.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tarot/monthly":{"get":{"operationId":"get-v1-tarot-monthly","summary":"Monthly tarot reading composed from that month's weekly readings","description":"Monthly tarot reading composed from that month's weekly readings. Cached 31 days.\n\nParameters: query: date?, locale?\n\nResponse: { spread_type: \"monthly\", generated_at, cards[], summary }","tags":["Chart Data"],"security":[{"bearerAuth":[]}],"x-astromcp-scope":"apiKey","externalDocs":{"url":"https://astrocompo.com/developers#get-v1-tarot-monthly"},"responses":{"200":{"description":"{ spread_type: \"monthly\", generated_at, cards[], summary }"},"default":{"description":"Error envelope shared by every endpoint.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tarot/reading":{"post":{"operationId":"post-v1-tarot-reading","summary":"An on-demand personal tarot draw","description":"An on-demand personal tarot draw. Never cached: every draw is unique.\n\nResponse: Opaque reading object (shape varies by spread type).","tags":["Chart Data"],"security":[{"bearerAuth":[]}],"x-astromcp-scope":"apiKey","externalDocs":{"url":"https://astrocompo.com/developers#post-v1-tarot-reading"},"requestBody":{"required":true,"description":"{ spreadType: \"single\"|\"three_card\"|\"celtic_cross\", allowReversals?, question?, locale? }","content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"description":"Opaque reading object (shape varies by spread type)."},"default":{"description":"Error envelope shared by every endpoint.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/analytics/summary":{"get":{"operationId":"get-v1-analytics-summary","summary":"Headline usage metrics for a time window","description":"Headline usage metrics for a time window.\n\nParameters: query: range? (24h|7d|30d, default 24h)\n\nResponse: { totalRequests, cacheHitRate, uniqueKeys, avgLatencyMs, requestsByTier[], requestsByStatus[] }","tags":["Analytics"],"security":[{"bearerAuth":[]}],"x-astromcp-scope":"enterprise","externalDocs":{"url":"https://astrocompo.com/developers#get-v1-analytics-summary"},"responses":{"200":{"description":"{ totalRequests, cacheHitRate, uniqueKeys, avgLatencyMs, requestsByTier[], requestsByStatus[] }"},"default":{"description":"Error envelope shared by every endpoint.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/analytics/timeseries":{"get":{"operationId":"get-v1-analytics-timeseries","summary":"Chartable request/cache-hit volume over time","description":"Chartable request/cache-hit volume over time.\n\nParameters: query: range?\n\nResponse: { buckets: [{ timestamp, requests, hits }] }","tags":["Analytics"],"security":[{"bearerAuth":[]}],"x-astromcp-scope":"enterprise","externalDocs":{"url":"https://astrocompo.com/developers#get-v1-analytics-timeseries"},"responses":{"200":{"description":"{ buckets: [{ timestamp, requests, hits }] }"},"default":{"description":"Error envelope shared by every endpoint.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/analytics/top-keys":{"get":{"operationId":"get-v1-analytics-top-keys","summary":"Busiest API keys by request count","description":"Busiest API keys by request count.\n\nParameters: query: range?, limit? (default 10, max 100)\n\nResponse: { keys: [{ keyId, keyName, prefix, tier, requests, cacheHits }] }","tags":["Analytics"],"security":[{"bearerAuth":[]}],"x-astromcp-scope":"enterprise","externalDocs":{"url":"https://astrocompo.com/developers#get-v1-analytics-top-keys"},"responses":{"200":{"description":"{ keys: [{ keyId, keyName, prefix, tier, requests, cacheHits }] }"},"default":{"description":"Error envelope shared by every endpoint.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tenants":{"get":{"operationId":"get-v1-tenants","summary":"Paginated, searchable, sortable white-label tenant list","description":"Paginated, searchable, sortable white-label tenant list.\n\nParameters: query: page?, limit? (max 100), q?, sort?, dir?\n\nResponse: { tenants[], total, page, limit }","tags":["Tenants"],"security":[{"bearerAuth":[]}],"x-astromcp-scope":"enterprise","externalDocs":{"url":"https://astrocompo.com/developers#get-v1-tenants"},"responses":{"200":{"description":"{ tenants[], total, page, limit }"},"default":{"description":"Error envelope shared by every endpoint.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tenants/{id}":{"get":{"operationId":"get-v1-tenants-id","summary":"Single tenant detail plus 30-day usage summary","description":"Single tenant detail plus 30-day usage summary.\n\nResponse: { tenant, usage: { totalApiKeys, totalRequests30d, cacheHitRate30d } }; 404 if not found.","tags":["Tenants"],"security":[{"bearerAuth":[]}],"x-astromcp-scope":"enterprise","externalDocs":{"url":"https://astrocompo.com/developers#get-v1-tenants-id"},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"{ tenant, usage: { totalApiKeys, totalRequests30d, cacheHitRate30d } }; 404 if not found."},"default":{"description":"Error envelope shared by every endpoint.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/b2c-users":{"get":{"operationId":"get-v1-b2c-users","summary":"Paginated, searchable, sortable B2C consumer account list","description":"Paginated, searchable, sortable B2C consumer account list.\n\nParameters: query: page?, limit? (max 100), q?, sort?, dir?\n\nResponse: { users[], total, page, limit }","tags":["B2C Users"],"security":[{"bearerAuth":[]}],"x-astromcp-scope":"enterprise","externalDocs":{"url":"https://astrocompo.com/developers#get-v1-b2c-users"},"responses":{"200":{"description":"{ users[], total, page, limit }"},"default":{"description":"Error envelope shared by every endpoint.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/b2c-users/{id}":{"patch":{"operationId":"patch-v1-b2c-users-id","summary":"Grant or revoke the super-admin bypass flag on a user","description":"Grant or revoke the super-admin bypass flag on a user.\n\nResponse: The updated user row. 404 if not found.","tags":["B2C Users"],"security":[{"bearerAuth":[]}],"x-astromcp-scope":"enterprise","externalDocs":{"url":"https://astrocompo.com/developers#patch-v1-b2c-users-id"},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"description":"{ isSuperAdmin: boolean }","content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"description":"The updated user row. 404 if not found."},"default":{"description":"Error envelope shared by every endpoint.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/branding/{platformKey}":{"get":{"operationId":"get-v1-branding-platformkey","summary":"Admin-managed branding asset overrides (favicon/app-icon/lockup) for a platform","description":"Admin-managed branding asset overrides (favicon/app-icon/lockup) for a platform.\n\nParameters: params: platformKey (\"web\"|\"portal-horoscope\"|\"portal-tarot\")\n\nResponse: { platformKey, assets: Record<assetType, url> }; cached 10 minutes.","tags":["Branding"],"security":[],"x-astromcp-scope":"public","externalDocs":{"url":"https://astrocompo.com/developers#get-v1-branding-platformkey"},"parameters":[{"name":"platformKey","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"{ platformKey, assets: Record<assetType, url> }; cached 10 minutes."},"default":{"description":"Error envelope shared by every endpoint.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/contact":{"get":{"operationId":"get-v1-contact","summary":"The platform's admin-managed public contact identity","description":"The platform's admin-managed public contact identity.\n\nResponse: { displayName, contactEmail }; cached 10 minutes.","tags":["Contact"],"security":[],"x-astromcp-scope":"public","externalDocs":{"url":"https://astrocompo.com/developers#get-v1-contact"},"responses":{"200":{"description":"{ displayName, contactEmail }; cached 10 minutes."},"default":{"description":"Error envelope shared by every endpoint.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/webhooks/stripe":{"post":{"operationId":"post-v1-webhooks-stripe","summary":"Receives and processes inbound Stripe billing events, verified via Stripe's signature scheme","description":"Receives and processes inbound Stripe billing events, verified via Stripe's signature scheme.\n\nResponse: 200 { received: true } on success; 400 if the signature is missing or invalid.","tags":["Webhooks"],"security":[{"stripeSignature":[]}],"x-astromcp-scope":"webhook","externalDocs":{"url":"https://astrocompo.com/developers#post-v1-webhooks-stripe"},"requestBody":{"required":true,"description":"Raw Stripe event payload; requires a Stripe-Signature header.","content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"description":"200 { received: true } on success; 400 if the signature is missing or invalid."},"default":{"description":"Error envelope shared by every endpoint.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/mcp":{"servers":[{"url":"https://astrocompo.com"}],"post":{"operationId":"post-mcp","summary":"Send an MCP JSON-RPC message","description":"Model Context Protocol endpoint (streamable HTTP transport) at https://astrocompo.com/mcp. Send your AstroMCP API key as a bearer token: Authorization: Bearer <your-api-key>. Create a key from the Developer tab in your AstroCompass account settings (Oracle plan). MCP calls share your key's rate limits and usage metering.\n\nTools:\n- get_current_planets(none): Returns the current positions of all ten classical planets plus Chiron, calculated for the current UTC time. Each planet includes its zodiac sign, degree, speed, and retrograde status.\n- get_natal_chart(year, month, day, latitude, longitude, hour? (default 12), minute? (default 0), house_system? (\"P\"|\"W\"|\"K\"|\"O\"|\"E\", default \"P\")): Calculates a complete natal (birth) chart for the given date, time, and geographic location. Returns planetary positions, twelve house cusps, Ascendant, Midheaven, and all major aspects.\n- generate_horoscope(sign (e.g. \"Aries\"), period (\"daily\"|\"weekly\"|\"monthly\"), date? (YYYY-MM-DD, default today UTC)): Generates a daily, weekly, or monthly horoscope for a given zodiac sign using real planetary transit data and the Claude API. Returns structured content including title, body text, theme, and intensity rating.\n- draw_tarot_reading(spread_type (\"single\"|\"three_card\"|\"celtic_cross\"|\"weekly\"|\"daily\"), allow_reversals? (default true), question? (up to 200 characters)): Draws a cryptographically random tarot spread and generates a Claude-backed interpretation for each card in its position, plus an overall reading summary.","tags":["MCP"],"security":[{"bearerAuth":[]}],"externalDocs":{"url":"https://astrocompo.com/developers#mcp"},"requestBody":{"required":true,"description":"A JSON-RPC 2.0 message or batch.","content":{"application/json":{"schema":{"type":["object","array"]}}}},"responses":{"200":{"description":"JSON-RPC response, as application/json or a text/event-stream of messages."},"202":{"description":"Accepted (notifications and responses carry no body)."},"default":{"description":"Error envelope shared by every endpoint.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"get":{"operationId":"get-mcp","summary":"Open an MCP server-to-client event stream","description":"Model Context Protocol endpoint (streamable HTTP transport) at https://astrocompo.com/mcp. Send your AstroMCP API key as a bearer token: Authorization: Bearer <your-api-key>. Create a key from the Developer tab in your AstroCompass account settings (Oracle plan). MCP calls share your key's rate limits and usage metering.\n\nTools:\n- get_current_planets(none): Returns the current positions of all ten classical planets plus Chiron, calculated for the current UTC time. Each planet includes its zodiac sign, degree, speed, and retrograde status.\n- get_natal_chart(year, month, day, latitude, longitude, hour? (default 12), minute? (default 0), house_system? (\"P\"|\"W\"|\"K\"|\"O\"|\"E\", default \"P\")): Calculates a complete natal (birth) chart for the given date, time, and geographic location. Returns planetary positions, twelve house cusps, Ascendant, Midheaven, and all major aspects.\n- generate_horoscope(sign (e.g. \"Aries\"), period (\"daily\"|\"weekly\"|\"monthly\"), date? (YYYY-MM-DD, default today UTC)): Generates a daily, weekly, or monthly horoscope for a given zodiac sign using real planetary transit data and the Claude API. Returns structured content including title, body text, theme, and intensity rating.\n- draw_tarot_reading(spread_type (\"single\"|\"three_card\"|\"celtic_cross\"|\"weekly\"|\"daily\"), allow_reversals? (default true), question? (up to 200 characters)): Draws a cryptographically random tarot spread and generates a Claude-backed interpretation for each card in its position, plus an overall reading summary.","tags":["MCP"],"security":[{"bearerAuth":[]}],"externalDocs":{"url":"https://astrocompo.com/developers#mcp"},"responses":{"200":{"description":"JSON-RPC response, as application/json or a text/event-stream of messages."},"202":{"description":"Accepted (notifications and responses carry no body)."},"default":{"description":"Error envelope shared by every endpoint.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"delete-mcp","summary":"End an MCP session","description":"Model Context Protocol endpoint (streamable HTTP transport) at https://astrocompo.com/mcp. Send your AstroMCP API key as a bearer token: Authorization: Bearer <your-api-key>. Create a key from the Developer tab in your AstroCompass account settings (Oracle plan). MCP calls share your key's rate limits and usage metering.\n\nTools:\n- get_current_planets(none): Returns the current positions of all ten classical planets plus Chiron, calculated for the current UTC time. Each planet includes its zodiac sign, degree, speed, and retrograde status.\n- get_natal_chart(year, month, day, latitude, longitude, hour? (default 12), minute? (default 0), house_system? (\"P\"|\"W\"|\"K\"|\"O\"|\"E\", default \"P\")): Calculates a complete natal (birth) chart for the given date, time, and geographic location. Returns planetary positions, twelve house cusps, Ascendant, Midheaven, and all major aspects.\n- generate_horoscope(sign (e.g. \"Aries\"), period (\"daily\"|\"weekly\"|\"monthly\"), date? (YYYY-MM-DD, default today UTC)): Generates a daily, weekly, or monthly horoscope for a given zodiac sign using real planetary transit data and the Claude API. Returns structured content including title, body text, theme, and intensity rating.\n- draw_tarot_reading(spread_type (\"single\"|\"three_card\"|\"celtic_cross\"|\"weekly\"|\"daily\"), allow_reversals? (default true), question? (up to 200 characters)): Draws a cryptographically random tarot spread and generates a Claude-backed interpretation for each card in its position, plus an overall reading summary.","tags":["MCP"],"security":[{"bearerAuth":[]}],"externalDocs":{"url":"https://astrocompo.com/developers#mcp"},"responses":{"200":{"description":"JSON-RPC response, as application/json or a text/event-stream of messages."},"202":{"description":"Accepted (notifications and responses carry no body)."},"default":{"description":"Error envelope shared by every endpoint.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Send your AstroMCP API key as a bearer token: Authorization: Bearer <your-api-key>. Create a key from the Developer tab in your AstroCompass account settings (Oracle plan). MCP calls share your key's rate limits and usage metering."},"stripeSignature":{"type":"apiKey","in":"header","name":"Stripe-Signature"}},"schemas":{"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}},"externalDocs":{"url":"https://astrocompo.com/developers"}}