Skip to content

: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.

2.2 KB
Raw Blame
"""Query runners core dispatches on — the public wiring surface for HogQL queries.

mcp_analytics is tach-isolated to expose only `backend.facade.*`, so core's
`get_query_runner` dispatch imports the runner from here rather than reaching into
`backend.hogql_queries` directly.
"""

from products.mcp_analytics.backend.hogql_queries.dashboard_series import (
    MCPToolCallBreakdownQueryRunner,
    MCPToolCallsAndErrorsQueryRunner,
)
from products.mcp_analytics.backend.hogql_queries.harness_breakdown import MCPHarnessBreakdownQueryRunner
from products.mcp_analytics.backend.hogql_queries.missing_capabilities import MCPMissingCapabilitiesQueryRunner
from products.mcp_analytics.backend.hogql_queries.model_breakdown import MCPModelBreakdownQueryRunner
from products.mcp_analytics.backend.hogql_queries.protocol_version_breakdown import (
    MCPProtocolVersionBreakdownQueryRunner,
)
from products.mcp_analytics.backend.hogql_queries.tool_quality_tables import (
    MCPToolCategoriesQueryRunner,
    MCPToolCategoryCountsQueryRunner,
    MCPToolCategoryMapQueryRunner,
    MCPToolQualityDailyStatsQueryRunner,
    MCPToolQualityRowsQueryRunner,
)
from products.mcp_analytics.backend.hogql_queries.tool_tables import (
    MCPToolDailyStatsQueryRunner,
    MCPToolDescriptionsQueryRunner,
    MCPToolFailureOccurrencesQueryRunner,
    MCPToolFailuresQueryRunner,
    MCPToolNeighborsQueryRunner,
    MCPToolSampleIntentsQueryRunner,
    MCPToolStatsQueryRunner,
    MCPToolTopUsersQueryRunner,
)

__all__ = [
    "MCPHarnessBreakdownQueryRunner",
    "MCPModelBreakdownQueryRunner",
    "MCPProtocolVersionBreakdownQueryRunner",
    "MCPToolCallBreakdownQueryRunner",
    "MCPToolCallsAndErrorsQueryRunner",
    "MCPToolCategoriesQueryRunner",
    "MCPToolCategoryCountsQueryRunner",
    "MCPToolCategoryMapQueryRunner",
    "MCPToolDailyStatsQueryRunner",
    "MCPToolDescriptionsQueryRunner",
    "MCPToolFailureOccurrencesQueryRunner",
    "MCPToolFailuresQueryRunner",
    "MCPToolNeighborsQueryRunner",
    "MCPToolQualityDailyStatsQueryRunner",
    "MCPToolQualityRowsQueryRunner",
    "MCPToolSampleIntentsQueryRunner",
    "MCPToolStatsQueryRunner",
    "MCPToolTopUsersQueryRunner",
    "MCPMissingCapabilitiesQueryRunner",
]