:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
/**
* Auto-generated from the Django backend OpenAPI schema.
* To modify these types, update the Django serializers or views, then run:
* hogli build:openapi
* Questions or issues? #team-devex on Slack
*
* PostHog API - generated
* OpenAPI spec version: 1.0.0
*/
export interface MCPRegistryServerListApi {
/** Registry server id. */
id: string
/** Reverse-DNS name in the official MCP registry; empty for measured-only servers. */
registry_name: string
/** Human-readable server name. */
display_name: string
/** Server description. */
description: string
/** Primary hosted remote URL; empty for package-only servers. */
canonical_url: string
/** Probed liveness state (alive_open, alive_auth, dead, ...). */
liveness: string
/** Detected auth method (none, oauth, api_key, unknown). */
auth_method: string
/** Whether the server appears in the official MCP registry. */
listed_in_registry: boolean
/** Whether real usage signal exists via MCP Analytics. */
is_measured: boolean
/**
* Static score under the requested ranking version; null when the version has no completed run.
* @nullable
*/
rank_score: number | null
}
export interface PaginatedMCPRegistryServerListListApi {
count: number
/** @nullable */
next?: string | null
/** @nullable */
previous?: string | null
results: MCPRegistryServerListApi[]
}
export type MCPRegistryServerDetailApiRemotesItem = {
type?: string
url?: string
}
export type MCPRegistryServerDetailApiPackagesItem = {
registry_type?: string
identifier?: string
}
export type MCPRegistryServerDetailApiToolsItem = { [key: string]: unknown }
export type MCPRegistryServerDetailApiMeasuredStatsItem = { [key: string]: unknown }
export type MCPRegistryServerDetailApiScoresItem = { [key: string]: unknown }
/**
* Connection instructions: methods ordered most-automated first, steps typed by actor (agent executes; human steps are narrated to the user).
*/
export type MCPRegistryServerDetailApiConnect = { [key: string]: unknown }
export interface MCPRegistryServerDetailApi {
/** Registry server id. */
id: string
/** Reverse-DNS name in the official MCP registry; empty for measured-only servers. */
registry_name: string
/** Human-readable server name. */
display_name: string
/** Server description. */
description: string
/** Primary hosted remote URL; empty for package-only servers. */
canonical_url: string
/** Probed liveness state (alive_open, alive_auth, dead, ...). */
liveness: string
/** Detected auth method (none, oauth, api_key, unknown). */
auth_method: string
/** Whether the server appears in the official MCP registry. */
listed_in_registry: boolean
/** Whether real usage signal exists via MCP Analytics. */
is_measured: boolean
/**
* Static score under the requested ranking version; null when the version has no completed run.
* @nullable
*/
rank_score: number | null
/** All hosted remotes: [{type, url}]. */
remotes: MCPRegistryServerDetailApiRemotesItem[]
/** Published packages: [{registry_type, identifier}]. */
packages: MCPRegistryServerDetailApiPackagesItem[]
/** Source repository URL, when published. */
repository_url: string
/** Vendor website URL, when published. */
website_url: string
/**
* When the shallow probe last ran.
* @nullable
*/
last_probed_at: string | null
/** Known tools, fused from probes and analytics. A tool known only from another project's traffic is limited to callers who may see that project's measurements. */
tools: MCPRegistryServerDetailApiToolsItem[]
/** Behavioral aggregates, one per measured MCP Analytics project. Limited to this project's own measurements unless the server is marked measured_public. */
measured_stats: MCPRegistryServerDetailApiMeasuredStatsItem[]
/** Latest score under every ranking version with a completed run. */
scores: MCPRegistryServerDetailApiScoresItem[]
/** Connection instructions: methods ordered most-automated first, steps typed by actor (agent executes; human steps are narrated to the user). */
connect: MCPRegistryServerDetailApiConnect
}
/**
* Score breakdown so an agent can explain its choice: fit, liveness, trust, and whether real usage signal contributed.
*/
export type MCPDiscoverCandidateApiWhy = { [key: string]: unknown }
/**
* Real MCP Analytics aggregates when the server is measured, otherwise null: calls, sessions, error_rate_pct, intent_coverage_pct, harness_count.
* @nullable
*/
export type MCPDiscoverCandidateApiMeasured = { [key: string]: unknown } | null
export type MCPDiscoverCandidateApiMatchedToolsItem = {
name?: string
description?: string
source?: string
}
/**
* Connection instructions, most-automated method first, steps typed by actor so the agent runs its own steps and narrates the human ones.
*/
export type MCPDiscoverCandidateApiConnect = { [key: string]: unknown }
/**
* One ranked candidate in a discover response, with everything an agent needs to act.
*/
export interface MCPDiscoverCandidateApi {
/** 1-based position under the ranking version used. */
rank: number
/** Registry server id, for the detail endpoint. */
id: string
/** Official registry name, empty for measured-only servers. */
registry_name: string
/** Human-readable server name. */
title: string
/** What the server does. */
description: string
/** The server's own standing in [0, 1] under the ranking version used: liveness x trust, independent of the query. */
score: number
/**
* How well the server's own text answered `intent`, in [0, 1]. Null when the intent held no words worth matching on.
* @nullable
*/
relevance: number | null
/**
* The value candidates are ordered by: relevance and score combined, weighted toward relevance. Null in two cases. When the intent held no words worth matching on, ordering falls back to `score`. When the ranking version has no completed run, `score` is 0 for every candidate and ordering falls back to `relevance`.
* @nullable
*/
combined_score: number | null
/** Score breakdown so an agent can explain its choice: fit, liveness, trust, and whether real usage signal contributed. */
why: MCPDiscoverCandidateApiWhy
/** Probed liveness state (alive_open, alive_auth, dead, ...). */
liveness: string
/** Detected auth method (none, oauth, api_key, unknown). */
auth_method: string
/**
* Real MCP Analytics aggregates when the server is measured, otherwise null: calls, sessions, error_rate_pct, intent_coverage_pct, harness_count.
* @nullable
*/
measured: MCPDiscoverCandidateApiMeasured
/** Tools that matched the intent: [{name, description, source}]. Empty when only the server description matched. */
matched_tools: MCPDiscoverCandidateApiMatchedToolsItem[]
/** Connection instructions, most-automated method first, steps typed by actor so the agent runs its own steps and narrates the human ones. */
connect: MCPDiscoverCandidateApiConnect
}
/**
* Everything an agent gets back from one discover call.
*/
export interface MCPDiscoverResponseApi {
/** The intent the candidates were ranked against, echoed back. */
intent: string
/** Ranking version the candidates were ordered by. */
ranking_version: string
/** Servers most likely to do the thing, best first. */
candidates: MCPDiscoverCandidateApi[]
}
/**
* One project's contribution to the measured layer, for the staff fleet view.
*/
export interface MCPMeasuredProjectApi {
/** Project supplying the MCP Analytics signal. */
team_id: number
/** Distinct servers this project has measured. */
servers: number
/** Tool calls this project contributes across those servers. */
calls: number
}
/**
* A completed ranking run.
*/
export interface MCPRankingRunApi {
/** Run id. */
id: string
/** Servers scored in the run. */
server_count: number
/**
* When the run completed.
* @nullable
*/
computed_at: string | null
}
/**
* A registered ranking version and its latest completed run.
*/
export interface MCPRankingVersionApi {
/** Ranking version key, passed as ?version= to the list endpoint. */
version: string
/** What this version scores on. */
description: string
/** Whether this is the version used when ?version= is omitted. */
is_default: boolean
/** Latest completed run; null when the version never ran. */
latest_run: MCPRankingRunApi | null
}
export type McpRegistryServersListParams = {
/**
* Number of results to return per page.
* @maximum 200
*/
limit?: number
/**
* Only servers with real MCP Analytics signal.
*/
measured_only?: boolean
/**
* The initial index from which to return the results.
*/
offset?: number
/**
* Free-text query matched against server names, descriptions, and tool names.
*/
search?: string
/**
* Ranking version ordering the results; defaults to the current default version.
*/
version?: string
}
export type McpRegistryServersCompareRetrieveParams = {
/**
* Rows per arm (default 20, max 100).
*/
limit?: number
/**
* Optional text filter applied to every arm.
*/
search?: string
/**
* Comma-separated ranking versions to compare (2+).
*/
versions: string
}
export type McpRegistryServersCompareRetrieve200 = { [key: string]: unknown }
export type McpRegistryServersDiscoverRetrieveParams = {
/**
* What the agent is trying to do, in natural language.
*/
intent: string
/**
* Candidates to return (default 5, max 20).
*/
limit?: number
/**
* Ranking version to rank candidates by.
*/
version?: string
}