Skip to content

refactor: mcp server framework implementation#12168

Merged
bzp2010 merged 13 commits into
apache:masterfrom
bzp2010:bzp/feat-mcp-server
Jun 7, 2025
Merged

refactor: mcp server framework implementation#12168
bzp2010 merged 13 commits into
apache:masterfrom
bzp2010:bzp/feat-mcp-server

Conversation

@bzp2010

@bzp2010 bzp2010 commented Apr 22, 2025

Copy link
Copy Markdown
Contributor

Description

Refactoring the mcp server as a separate module will allow it to support generic scenarios other than mcp-bridge. Next part of #12151

This PR is part of a set of patches that attempt to incrementally improve and enhance the mcp server implementation. Among other things, the mcp-bridge implementation has been replaced with a new framework, and its tests have not been modified, so this proves that nothing has been broken.

Indeed, documentation and tests are not included in this PR because the framework implementation is not complete, and by splitting the whole effort into multiple parts I hope to improve it in quick small steps.

Checklist

  • I have explained the need for this PR and the problem it solves
  • I have explained the changes or the new features added to this PR
  • I have added tests corresponding to this change
  • I have updated the documentation to reflect this change
  • I have verified that this change is backward compatible (If not, please discuss on the APISIX mailing list first)

@dosubot dosubot Bot added size:XL This PR changes 500-999 lines, ignoring generated files. enhancement New feature or request labels Apr 22, 2025
@bzp2010
bzp2010 marked this pull request as draft April 22, 2025 04:59
Comment thread apisix/plugins/mcp/server.lua
@bzp2010
bzp2010 requested a review from nic-6443 April 25, 2025 07:06
@bzp2010
bzp2010 marked this pull request as ready for review May 28, 2025 06:03
@bzp2010
bzp2010 requested a review from AlinsRan May 28, 2025 06:08
@bzp2010 bzp2010 changed the title feat: mcp server framework implementation refactor: mcp server framework implementation May 28, 2025
membphis
membphis previously approved these changes May 28, 2025

@membphis membphis left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

and pls don't forget to add the doc later, easy to enjoy it for APISIX users

Revolyssup
Revolyssup previously approved these changes May 29, 2025

@Revolyssup Revolyssup left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The CI is failing but I think its a flaky test. failing on master as well. can be dealt separately.

Comment thread apisix/plugins/mcp/server.lua Outdated
@bzp2010
bzp2010 dismissed stale reviews from Revolyssup and membphis via 15fae75 May 29, 2025 10:47
@bzp2010
bzp2010 requested a review from AlinsRan May 29, 2025 10:51
AlinsRan
AlinsRan previously approved these changes May 30, 2025
@bzp2010
bzp2010 requested review from Revolyssup and membphis May 30, 2025 03:16
@bzp2010

bzp2010 commented May 30, 2025

Copy link
Copy Markdown
Contributor Author

CLI test error fixed by #12272, ignore it for now.

PTAL, @nic-6443 @Revolyssup @AlinsRan cc @membphis

@bzp2010
bzp2010 requested a review from AlinsRan May 30, 2025 07:54

@juzhiyuan juzhiyuan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request size:XL This PR changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants