Skip to content

feat(mcp-readability): add MCP tool man-page formatter#463

Open
akangsha7 wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
akangsha7:feat/mcp-readability
Open

feat(mcp-readability): add MCP tool man-page formatter#463
akangsha7 wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
akangsha7:feat/mcp-readability

Conversation

@akangsha7

Copy link
Copy Markdown

Render MCP tools (tools/list) into a human-readable "man page" for the readability scorer's LLM judge. Resolves $ref/$defs, flattens nested params into dotted paths, marks REQUIRED/OPTIONAL, renders enum/default, and guards against recursive schemas.

Includes unit tests covering empty/no-param tools, required/optional, enum+default, nested objects, $ref/$defs, arrays of objects, and the recursion guard.

Render MCP tools (tools/list) into a human-readable "man page" for the
readability scorer's LLM judge. Resolves $ref/$defs, flattens nested
params into dotted paths, marks REQUIRED/OPTIONAL, renders enum/default,
and guards against recursive schemas.

Scope per design review:
- No auth/header code (start simple; add back only if needed).
- No metrics here -- tool count / token / budget metrics will live in a
  scorer, keeping the generator focused on producing the artifact.

Includes unit tests covering empty/no-param tools, required/optional,
enum+default, nested objects, $ref/$defs, arrays of objects, and the
recursion guard.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@akangsha7 akangsha7 requested a review from IsmailMehdi as a code owner June 28, 2026 05:42
@google-cla

google-cla Bot commented Jun 28, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

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.

1 participant