Skip to content

refactor(mcp): migrate to high-level server API - #66

Merged
lonewolfyx merged 1 commit into
mainfrom
prs/refactor-mcp-server-api
Aug 28, 2026
Merged

lonewolfyx merged 1 commit into
mainfrom
prs/refactor-mcp-server-api

Conversation

@lonewolfyx

Copy link
Copy Markdown
Member

Summary

  • replace the deprecated low-level Server API with McpServer
  • register MCP tools through registerTool instead of manual request handlers
  • pass Zod schemas directly to McpServer for schema generation and input validation
  • preserve the existing MCP tool names, descriptions, annotations, and stdio transport

Testing

  • eslint --fix (via the pre-commit lint-staged hook)
  • git diff --check
  • Not run: pnpm build and pnpm test (project validation commands are restricted in the current environment)

@pkg-pr-new

pkg-pr-new Bot commented Aug 28, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@antdv-next/cli@66

commit: 5523cd6

@github-actions

Copy link
Copy Markdown
Contributor

Build Size Report

Baseline Artifact · 基准产物

File Size Gzip Brotli
index.mjs 395.07 KiB 117.73 KiB 101.06 KiB

Candidate Artifact · 候选产物

File Size Gzip Brotli
index.mjs 489.71 KiB 139.97 KiB 119.07 KiB

@lonewolfyx
lonewolfyx merged commit f08aec3 into main Aug 28, 2026
8 checks passed
@lonewolfyx
lonewolfyx deleted the prs/refactor-mcp-server-api branch August 28, 2026 03:18
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