zilto commented on issue #547:
URL: https://github.com/apache/burr/issues/547#issuecomment-3005062896

   Apparently, LLM API providers now accept MCP urls as part of their requests 
([example](https://gofastmcp.com/integrations/openai)).
   
   This would allow for a pattern like
   
   ```python
   @action(...)
   def search_issues_on_github(state, ...):
      github_mcp_url = ...
      prompt = ...
      response = openai_client.create(
         model="gpt",
         messages=[{"role": "user", "content": prompt}],
         tools=[        {
               "type": "mcp",
               "server_label": "github_mcp",
               "server_url": github_mcp_url,
               "require_approval": "never",
           } ]
      )
   
   @action(...)
   def fix_code(state, ...):
     ...
   ```


-- 
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