fix: prepare MCP tools for marketplace submission#227
Merged
Conversation
Require marketplace impact hints for every shared MCP tool and classify hidden indexing and crawl writes accurately. Add regression coverage and reviewer-facing annotation rationales, then bump @githits/mcp to 0.6.3.
Advertise text-v1 as the explicit default and first output-format option for every format-selectable MCP tool while retaining JSON compatibility. Document why outputSchema is deferred until GitHits has a compact structured result contract that does not duplicate large tool payloads.
Add concise text-over-JSON guidance to the canonical MCP skill, Claude skill, server instructions, and installed agent guidance. Rewrite marketplace annotation rationales in terms of observable public behavior without exposing implementation-specific service details.
Bump the githits CLI, plugin manifests, Gemini extension, and MCP registry package entry to 0.6.4. Keep @githits/mcp at its next unpublished patch version, 0.6.3, for the coordinated release.
skvark
marked this pull request as ready for review
July 17, 2026 08:31
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
readOnlyHint,openWorldHint, anddestructiveHinton every shared MCP tool descriptortext-v1as the explicit default and first enum value for every format-selectable MCP toolstructuredContentRelease
githits:0.6.3→0.6.4@githits/mcp:0.6.2→0.6.30.6.4Why
OpenAI marketplace validation rejects the remote MCP because several tools omit required impact annotations. The remote server consumes tool semantics from
@githits/mcp, so the fix belongs in the shared package.Some tools may create bounded service-side state or begin background preparation when requested public content is not immediately available. The annotations reflect that maximum observable impact without exposing implementation details or implying public, external, or destructive writes.
A published user trace also showed an agent explicitly selecting JSON in 86 of 91 calls despite GitHits' compact text default. The input schemas previously listed
jsonfirst and did not encode a JSON Schema default. They now exposedefault: "text-v1"with enum ordertext-v1,text,json.Output schema decision
outputSchemais intentionally deferred. The current tools return MCPTextContent, notstructuredContent; MCP makesoutputSchemaoptional and requires successful structured results to conform when one is declared. Mirroring the existing JSON envelopes intostructuredContentwould make default calls carry both compact text and the full structured payload, increasing context use for code, search results, documentation, changelogs, and dependency graphs.A future structured contract should contain only compact control-plane fields such as status, IDs, cursors, counts, truncation, and next actions—not duplicate large result bodies.
Impact
The MCP schema now always exposes explicit boolean values for all three marketplace impact hints. Tool response behavior and explicit JSON compatibility are unchanged; model-facing schemas and guidance now make the token-efficient format default unambiguous.
Validation
bun test— 2,483 passedbun run typecheckbun run buildbun run validate:packagesbun run validate:packages:mcp-publishmcp-publisherv1.7.9 validation against the official registryformat, no tool or instruction issuesThe optional authenticated CLI live smoke reached its final example request and received a backend
429; the secret-free CLI modes passed.