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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to