Skip to content

refactor(git,gists): type repository tree and gist MCP tools - #3399

Draft
SamMorrowDrums wants to merge 1 commit into
sammorrowdrums-typed-actions-toolsfrom
sammorrowdrums-typed-git-gist-tools
Draft

SamMorrowDrums wants to merge 1 commit into
sammorrowdrums-typed-actions-toolsfrom
sammorrowdrums-typed-git-gist-tools

Conversation

@SamMorrowDrums

Copy link
Copy Markdown
Collaborator

Summary

Next slice of stack #3385: concrete typed outputs for get_repository_tree, list_gists, get_gist, create_gist, update_gist. Stacked on #3398.

Why

Part of #3385.

What changed

  • Typed outputs + explicit output schemas (gist schemas drop null from omitempty fields; tree size is optional integer).
  • Inputs stay map-based; per-tool normalizers run legacy validators in legacy order with identical messages and canonicalize page/perPage.
  • Legacy/unknown protocol clients still get no schema/structuredContent (shared gate).
  • New wire/schema tests across 2026-07-28, 2025-11-25, empty and unknown protocols; *_typed snapshots.

MCP impact

  • Tool schema or behavior changed — output schema/structuredContent on 2026-07-28 only; text payloads unchanged.

Prompts tested (tool changes only)

  • Wire tests: tree with recursive/path_filter, list gists with string pagination/since, get/create/update gist.

Security / limits

  • Auth / permissions considered — scopes and IFC labels unchanged.

Tool renaming

  • I am not renaming tools as part of this PR

Lint & tests

  • Linted locally with ./script/lint (0 issues)
  • Tested locally with ./script/test (pass)
  • UPDATE_TOOLSNAPS=true go test ./... && script/lint && script/test && script/generate-docs && git diff --check all exit 0.

Docs

  • Not needed (generate-docs produced no changes)

@SamMorrowDrums
SamMorrowDrums added this pull request to stack #3385 October 2, 2026 15:47
@SamMorrowDrums
SamMorrowDrums force-pushed the sammorrowdrums-typed-git-gist-tools branch from c6acd4d to d521102 Compare October 2, 2026 20:50
Expose concrete output schemas and structured content for get_repository_tree, list_gists, get_gist, create_gist and update_gist on supported protocol versions while preserving legacy arguments, error text, pagination, IFC labels and scopes.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@SamMorrowDrums
SamMorrowDrums force-pushed the sammorrowdrums-typed-git-gist-tools branch from d521102 to 86fbf09 Compare October 2, 2026 20:59
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