Skip to content

docs: align MCP category lists with the hosted server - #5657

Merged
andrelandgraf merged 5 commits into
mainfrom
docs/mcp-scope-categories
Aug 27, 2026
Merged

docs: align MCP category lists with the hosted server#5657
andrelandgraf merged 5 commits into
mainfrom
docs/mcp-scope-categories

Conversation

@andrelandgraf

@andrelandgraf andrelandgraf commented Aug 27, 2026

Copy link
Copy Markdown
Collaborator

Problem

The setup configurator, Available tools table, and CLI reference listed eight tool categories. The hosted MCP server advertises twelve.

Selecting a subset adds a category allowlist to the generated URL. Since endpoints, snapshots, functions, and storage had no configurator option, narrowing access also hid those tools with no way to include them.

Diagnosis

The hosted server advertises this list:

[
  "projects",
  "branches",
  "endpoints",
  "snapshots",
  "schema",
  "querying",
  "neon_auth",
  "data_api",
  "observability",
  "docs",
  "functions",
  "storage"
]

The configurator, Available tools table, and CLI reference each keep a copy of that list. The existing sync check covered the first two copies but not the CLI reference.

The configurator omits the category query parameter for both an empty selection and a full selection. A partial selection adds the chosen categories.

User-facing interface

The configurator now offers all twelve categories and explains the default:

All tools are available by default; select categories to narrow the agent's access through the category query param.

An empty or full selection generates:

https://mcp.neon.tech/mcp

A subset generates an allowlist:

https://mcp.neon.tech/mcp?category=endpoints

The CLI --category list is the same twelve. CLI behavior is unchanged:

neon mcp --category querying --category schema

Auth setup copy now names the live tools:

provision_neon_auth
add_auth_oauth_provider, add_auth_trusted_domain, update_auth_config
get_neon_auth_config

Links point at #available-tools.

Also in here

  • Expands the Available tools table with current descriptions for all twelve categories.
  • Adds the CLI reference to the pull request and scheduled category sync checks.
  • Updates related MCP links that pointed at #supported-actions-tools.
  • Refreshes the generated LLM markdown snapshot.

Verification

  • npx vitest run scripts/check-mcp-categories-sync.test.js
  • npx vitest run src/scripts/process-md-for-llms.test.js
  • npm run check:mcp-categories
  • npm run check:mcp-categories:live
  • Preview: all twelve toggles; helper copy as above; Clear all leaves https://mcp.neon.tech/mcp with every checkbox off; selecting Endpoints only emits ?category=endpoints.

For your attention

  • Clearing every checkbox still exposes all tools, because an empty selection omits category. The helper copy now states the default.
  • scripts/data/mcp-tool-definitions.json still describes the previous MCP catalog. Regenerating it is a separate change.
  • content/docs/introduction/roadmap.md still names configure_neon_auth as a shipped-feature bullet. Left as history.

The setup configurator and Available tools table still listed the old eight categories, so unchecking one dropped endpoints, snapshots, functions, and storage with no toggle.
@vercel

vercel Bot commented Aug 27, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
neon-next Ready Ready Preview Aug 27, 2026 9:37pm

Request Review

prepare_database_migration and complete_database_migration are querying tools; the schema row was advertising them. Also run the category check when only the CLI list changes.
projects has list_organizations only, not create/delete org. observability includes get_ai_gateway alongside log query.
get_ai_gateway returns the branch endpoint and whether the gateway is available.

@philip philip left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved.

But while not specific to this PR, selecting none (clear all) showing all as selected is slightly confusing.

Consider changing the "Tool Categories" description to clarify that all are available by default. Something like "All tools are available by default; select categories to narrow the agent's access through the category query param."

Clear-all and select-all both omit category, so the helper now matches that default.
@andrelandgraf
andrelandgraf merged commit ea804b8 into main Aug 27, 2026
3 of 4 checks passed
@andrelandgraf
andrelandgraf deleted the docs/mcp-scope-categories branch August 27, 2026 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants