Skip to content

Surface MCP server catalog counts in status #386

Description

@matzew

Summary

Surface the number of tools, resources, and prompts a managed MCP server exposes
in status.serverInfo.catalogCounts, collected during post-handshake discovery.

Split out of #359, which blended catalog-size metadata with progressive-discovery
behavior
. This issue covers the catalog counts / size metadata half.

Motivation

From the MCP Roadmap: progressive discovery highlights the cost of large
tool catalogs. Exposing catalog counts gives operators at-a-glance visibility into
what a server offers and is a prerequisite for reasoning about catalog size.

Scope

  • Extract tool/resource/prompt counts after a successful handshake
  • Distinguish "capability not supported" (nil) from "supported, zero items"
  • Follow pagination cursors so multi-page catalogs are counted in full

Status

Implemented by PR #364 (in review).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions