Skip to content

feat(mcp): advertise output schemas on hosted tools - #673

Merged
Zach Dunn (zachdunn) merged 1 commit into
mainfrom
feat/671-mcp-output-schemas
Aug 14, 2026
Merged

feat(mcp): advertise output schemas on hosted tools#673
Zach Dunn (zachdunn) merged 1 commit into
mainfrom
feat/671-mcp-output-schemas

Conversation

@zachdunn

Copy link
Copy Markdown
Member

In plain terms

OpenAI's plugin scan expects every tool that returns structured data to advertise an outputSchema. We already return structuredContent on every hosted call; this PR names that shape so ChatGPT can validate results and reason about follow-up calls. Fixes #671.

What it does / what it is not

  • Registers an object-root outputSchema on every hosted MCP tool (put, comment, list, galleries, metadata, usage, …).
  • Aligns stdio tools that share a result shape (put, list, delete, metadata, galleries, …). Stdio-only tools (screenshot, attach, staged, doctor) stay schema-less.
  • comment documents posted / reason / action so honest declines (not_installed, not_authorized, forbidden) stay structured results, not thrown errors.
  • Roots are type: object on purpose: a oneOf root would make the 2025-era codec wrap results as { result: … }.
  • Does not wait for the first portal scan. The existing tool tests are the source of truth for the live result shapes.
  • Does not add new tools, CIMD, or a skill rewrite.

How to try it

After deploy, tools/list on https://agents.uploads.sh/mcp includes outputSchema on each tool. A comment decline is still { posted: false, reason: "not_installed" } (or similar), not a protocol error.

Test plan

  • pnpm --filter @uploads/mcp test (116)
  • pnpm --filter @buildinternet/uploads exec vitest run test/mcp.test.ts test/mcp-screenshot.test.ts (88)
  • pnpm --filter @uploads/mcp typecheck and pnpm --filter @buildinternet/uploads typecheck
  • Portal Scan Tools after Submit the uploads.sh plugin to the OpenAI directory #670 identity + secret

Every hosted tool now declares an object-root outputSchema so tools/list
matches the structuredContent we already return. Stdio tools that share
a result shape get the same schema. The SDK validates successful calls
against it; error results are unchanged.
@changeset-bot

changeset-bot Bot commented Aug 14, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: c5d86d1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@buildinternet/uploads Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@coderabbitai

coderabbitai Bot commented Aug 14, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are limited based on label configuration.

🏷️ Required labels (at least one) (2)
  • coderabbit:review
  • review
🚫 Excluded labels (none allowed) (1)
  • wip

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: d41ed30c-e20f-4cda-8d25-ea8bd700e400

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
uploads-auth c5d86d1 Commit Preview URL

Branch Preview URL
Aug 14 2026, 05:26 PM

@zachdunn
Zach Dunn (zachdunn) merged commit 5f91ea5 into main Aug 14, 2026
4 checks passed
@zachdunn
Zach Dunn (zachdunn) deleted the feat/671-mcp-output-schemas branch August 14, 2026 17:36
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.

Add output schemas on hosted MCP tools after the first OpenAI scan

1 participant