Skip to content

Conversation

@dan-lee
Copy link
Contributor

@dan-lee dan-lee commented Aug 1, 2025

Example here: https://zudoku-cosmo-cargo-git-feat-mcp-endpoint.zuplosite.com/catalog/api-ai-cargo/ai-operations#universal-mcp-endpoint

Adds basic MCP support to Zudoku. OpenAPI operations with x-mcp-server now show AI tool configuration instructions (Claude, Cursor, ChatGPT and VS Code).

  • New MCPEndpoint component for displaying connection configs
  • Auto-generates /mcp endpoint URLs
  • Copy-to-clipboard for easy setup

x-mcp-server is an object and contain the displayed name of the MCP server:

"x-mcp-server": {
  "name": "my-sweet-mcp"
}

@vercel
Copy link

vercel bot commented Aug 1, 2025

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

Project Deployment Preview Comments Updated (UTC)
zudoku-cosmo-cargo Ready Ready Preview Aug 19, 2025 1:03pm
zudoku-docs Ready Ready Preview Comment Aug 19, 2025 1:03pm

@nx-cloud
Copy link

nx-cloud bot commented Aug 1, 2025

View your CI Pipeline Execution ↗ for commit 3cec8a9

Command Status Duration Result
nx run cosmo-cargo:build ✅ Succeeded 41s View ↗
nx run zudoku:publish:local ✅ Succeeded 30s View ↗

☁️ Nx Cloud last updated this comment at 2025-08-04 13:20:22 UTC

@github-actions
Copy link

github-actions bot commented Aug 1, 2025

Preview build of published Zudoku package for commit 3838415.

See the deployment at: https://658496a2.cosmocargo-public-package.pages.dev

Note

This is a preview of the Cosmo Cargo example using the Zudoku package published to a local registry to ensure it'll be working when published to the public NPM registry.

Last updated: 2025-08-19T13:02:24.310Z

@dan-lee dan-lee requested a review from mosch August 4, 2025 13:12
@dan-lee dan-lee added the feature Feature label Aug 4, 2025
@dan-lee dan-lee marked this pull request as ready for review August 4, 2025 13:12
Copilot AI review requested due to automatic review settings August 4, 2025 13:12
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds Model Context Protocol (MCP) support to Zudoku, enabling OpenAPI operations with x-mcp: true to display AI tool configuration instructions. The feature automatically generates MCP endpoint URLs and provides copy-to-clipboard functionality for easy setup with AI tools like Claude, Cursor, ChatGPT, and VS Code.

  • Adds MCPEndpoint component that displays connection configurations for different AI tools
  • Integrates MCP detection into OperationListItem to conditionally render MCP-specific UI
  • Includes example AI Cargo API schema demonstrating MCP endpoint usage

Reviewed Changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
packages/zudoku/src/lib/plugins/openapi/MCPEndpoint.tsx New component providing MCP connection configs and setup instructions for AI tools
packages/zudoku/src/lib/plugins/openapi/OperationListItem.tsx Modified to detect and render MCP endpoints differently from regular operations
packages/zudoku/src/lib/ui/CodeBlock.tsx Refactored className prop handling to apply to wrapper instead of inner div
packages/zudoku/package.json Added tw-animate-css dependency
packages/zudoku/src/app/main.css Imported tw-animate-css for animations
examples/cosmo-cargo/zudoku.config.tsx Added AI Cargo API configuration
examples/cosmo-cargo/schema/ai-cargo.json Example OpenAPI schema with MCP endpoint demonstration
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported
Comments suppressed due to low confidence (2)

packages/zudoku/src/lib/plugins/openapi/MCPEndpoint.tsx:27

  • The property name 'serverName' is inconsistent with the extension naming convention. Consider using 'name' to match the documented format in the PR description where x-mcp can contain a 'name' property.
      : (data?.serverName ?? summary ?? "mcp-server");

packages/zudoku/package.json:284

  • The version 1.3.6 of tw-animate-css may not exist. The latest known version is around 1.0.x. Please verify this version exists or use a confirmed available version.
    "tw-animate-css": "1.3.6",

@dan-lee dan-lee merged commit 33f5d2f into main Aug 19, 2025
9 checks passed
@dan-lee dan-lee deleted the feat/mcp-endpoint branch August 19, 2025 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature Feature

Development

Successfully merging this pull request may close these issues.

3 participants