You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "darkSheep404 (via GitHub)" <gi...@apache.org> on 2025/04/14 06:44:42 UTC
[I] feat: support mcp server base on apisix ,provide some current api as mcp tools [apisix]
darkSheep404 opened a new issue, #12140:
URL: https://github.com/apache/apisix/issues/12140
### Description
I read that apisix currently supports sse
Is it possible to implement the mcp server based on sse protocol on apisix and take the traditional route as the service provided by mcp
The implementation of the tool that wraps the current interface of the system into MCP tools does not implant the original business system
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] feat: support mcp server base on apisix ,provide some current api as mcp tools [apisix]
Posted by "darkSheep404 (via GitHub)" <gi...@apache.org>.
darkSheep404 commented on issue #12140:
URL: https://github.com/apache/apisix/issues/12140#issuecomment-2820185900
> > [@moonming](https://github.com/moonming) we would be very grateful if you could consider this idea
>
> > but i think we still need the feature which take some current http route as the service/tools provided by mcp server
>
> Of course, contributions are welcome. Can you give an example? Ensure that our understanding is the same
In my initial idea
`Option One` , config in routes which want to expose like mcp tools
```yml
routes:
- uri: /user/userinfo
plugins:
ai-mcp-wrapper:
name: "getUserInfo"
description: "Get user information by username"
parameters:
properties:
username:
type: "string"
required: ["username"]
```
`Option two`, use as gobal plugins to expose all the url want to expose as mcp tools
```yml
plugins:
- name: ai-mcp-tools
enable: true
tools:
- name: "getUserInfo"
description: "Get user information by username"
target_uri: "/user/userinfo"
parameters:
properties:
username:
type: "string"
description: "The username to query"
required: ["username"]
- name: "createOrder"
description: "Create a new order"
target_uri: "/product/query"
parameters:
properties:
productId:
type: "string"
productName:
type: "string"
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] feat: support mcp server base on apisix ,provide some current api as mcp tools [apisix]
Posted by "Baoyuantop (via GitHub)" <gi...@apache.org>.
Baoyuantop closed issue #12140: feat: support mcp server base on apisix ,provide some current api as mcp tools
URL: https://github.com/apache/apisix/issues/12140
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] feat: support mcp server base on apisix ,provide some current api as mcp tools [apisix]
Posted by "jujiale (via GitHub)" <gi...@apache.org>.
jujiale commented on issue #12140:
URL: https://github.com/apache/apisix/issues/12140#issuecomment-2805315063
I also look forward to see this feature.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] feat: support mcp server base on apisix ,provide some current api as mcp tools [apisix]
Posted by "Baoyuantop (via GitHub)" <gi...@apache.org>.
Baoyuantop commented on issue #12140:
URL: https://github.com/apache/apisix/issues/12140#issuecomment-6148041572
APISIX 3.19.0 supports the original request to expose existing HTTP APIs as MCP tools through the [openapi-to-mcp plugin](https://github.com/apache/apisix/blob/473043623c161966f3f6ef4e8f12d2d8667a12d2/docs/en/latest/plugins/openapi-to-mcp.md). The MCP server runs inside APISIX and supports both HTTP+SSE and Streamable HTTP, without changing the existing business API or deploying an additional MCP process.
Configure `openapi_url` and `base_url` on a Route serving the MCP endpoint. The plugin generates tool names, descriptions, and input schemas from the OpenAPI operations, then calls the corresponding HTTP API for tools/call. You can provide an OpenAPI document describing only the APIs you want to expose. This is configured through OpenAPI rather than automatic discovery of existing APISIX Routes.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] feat: support mcp server base on apisix ,provide some current api as mcp tools [apisix]
Posted by "darkSheep404 (via GitHub)" <gi...@apache.org>.
darkSheep404 commented on issue #12140:
URL: https://github.com/apache/apisix/issues/12140#issuecomment-2820185220
In my initial idea
`Option One` , config in routes which want to expose like mcp tools
```yml
routes:
- uri: /user/userinfo
plugins:
ai-mcp-wrapper:
name: "getUserInfo"
description: "Get user information by username"
parameters:
properties:
username:
type: "string"
required: ["username"]
```
`Option two`, use as gobal plugins to expose all the url want to expose as mcp tools
```yml
plugins:
- name: ai-mcp-tools
enable: true
tools:
- name: "getUserInfo"
description: "Get user information by username"
target_uri: "/user/userinfo"
parameters:
properties:
username:
type: "string"
description: "The username to query"
required: ["username"]
- name: "createOrder"
description: "Create a new order"
target_uri: "/product/query"
parameters:
properties:
productId:
type: "string"
productName:
type: "string"
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] feat: support mcp server base on apisix ,provide some current api as mcp tools [apisix]
Posted by "darkSheep404 (via GitHub)" <gi...@apache.org>.
darkSheep404 commented on issue #12140:
URL: https://github.com/apache/apisix/issues/12140#issuecomment-2818033921
@moonming
we would be very grateful if you could consider this idea
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] feat: support mcp server base on apisix ,provide some current api as mcp tools [apisix]
Posted by "mbzhao (via GitHub)" <gi...@apache.org>.
mbzhao commented on issue #12140:
URL: https://github.com/apache/apisix/issues/12140#issuecomment-2814993806
I also look forward to see this feature.
将现有微服务的REST API 转换 MCP Server 中的Tool。
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] feat: support mcp server base on apisix ,provide some current api as mcp tools [apisix]
Posted by "bzp2010 (via GitHub)" <gi...@apache.org>.
bzp2010 commented on issue #12140:
URL: https://github.com/apache/apisix/issues/12140#issuecomment-2820806839
@darkSheep404
I'm working on paving the way for this, ref (#12168), to add a generic MCP server implementation, which I anticipate will be able to support the requirements you mentioned. While that's not all, it's completed in embryonic form, and there's client-side capability negotiation that needs to be implemented in another PR.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] feat: support mcp server base on apisix ,provide some current api as mcp tools [apisix]
Posted by "helloworld1612 (via GitHub)" <gi...@apache.org>.
helloworld1612 commented on issue #12140:
URL: https://github.com/apache/apisix/issues/12140#issuecomment-2812145266
I also look forward to see this feature.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] feat: support mcp server base on apisix ,provide some current api as mcp tools [apisix]
Posted by "darkSheep404 (via GitHub)" <gi...@apache.org>.
darkSheep404 commented on issue #12140:
URL: https://github.com/apache/apisix/issues/12140#issuecomment-2818017289
hi all, seems apisix team rollout a new features which provide stdio services as sse services
https://apisix.apache.org/blog/2025/04/21/host-mcp-server-with-api-gateway/
you gays can have a try
but i think we still need the feature which take some current http route as the service/tools provided by mcp server
and i belive this will benifit more apisix user
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] feat: support mcp server base on apisix ,provide some current api as mcp tools [apisix]
Posted by "moonming (via GitHub)" <gi...@apache.org>.
moonming commented on issue #12140:
URL: https://github.com/apache/apisix/issues/12140#issuecomment-2818081810
> [@moonming](https://github.com/moonming) we would be very grateful if you could consider this idea
> but i think we still need the feature which take some current http route as the service/tools provided by mcp server
Of course, contributions are welcome. Can you give an example? Ensure that our understanding is the same
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] feat: support mcp server base on apisix ,provide some current api as mcp tools [apisix]
Posted by "HaoTien (via GitHub)" <gi...@apache.org>.
HaoTien commented on issue #12140:
URL: https://github.com/apache/apisix/issues/12140#issuecomment-3775811807
Looking forward to linking the mcp-service through the mcp-bridge plugin and supporting the streamable http protocol
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org