You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MCP offers additional compatibility for developing Agents and LLM tools (like database connectors)
Describe the solution you'd like
Allow Bee agents to integrate with external Tools via MCP.
Describe alternatives you've considered
Bee already has great ways to interact with external tools, I built a sample agent that can interact with Db2 for i: https://github.com/ajshedivy/bee-agent-ibmi
In Bee stack I can simulate MCP via REST API. My workaround at the moment is to create a simple webserver on IBM i that can talk to Db2 that accepts requests like:
curl -X POST http://HOST:PORT/api/execute-sql \
-H "Content-Type: application/json" \
-d '{"sql": "SELECT * FROM sample.employee"}'
This will return the result set from the given SQL.
I can then create a "proxy tool" for Bee that sends requests to this endpoint:
importrequestsdefsend_sql_query(sql_query) ->dict:
""" Sends a SQL statement to the Flask server and returns the result. Args: sql_query (str): The SQL statement to execute. Returns: dict: The server's response as a dictionary. """url="http://HOST:PORT/api/execute-sql"# Server endpointheaders= {"Content-Type": "application/json"}
payload= {"sql": sql_query}
try:
response=requests.post(url, json=payload, headers=headers)
response.raise_for_status()
returnresponse.json()
exceptrequests.exceptions.RequestExceptionase:
return {"error": str(e)}
This works decent:
Additional context
In summary, MCP gives developers the ability to maintain a single, standardized external tool that would allow for additional flexibility when it comes to creating Agents and LLM apps. This would be a great addition to the Bee framework 😁
The text was updated successfully, but these errors were encountered:
Original Issue: i-am-bee/bee-stack#59
MCP was recently open-sourced by Anthropic as a standard way for LLM applications to interact with external datasources.
MCP offers additional compatibility for developing Agents and LLM tools (like database connectors)
Describe the solution you'd like
Allow Bee agents to integrate with external Tools via MCP.
Describe alternatives you've considered
Bee already has great ways to interact with external tools, I built a sample agent that can interact with Db2 for i: https://github.com/ajshedivy/bee-agent-ibmi
In Bee stack I can simulate MCP via REST API. My workaround at the moment is to create a simple webserver on IBM i that can talk to Db2 that accepts requests like:
This will return the result set from the given SQL.
I can then create a "proxy tool" for Bee that sends requests to this endpoint:
This works decent:
Additional context
In summary, MCP gives developers the ability to maintain a single, standardized external tool that would allow for additional flexibility when it comes to creating Agents and LLM apps. This would be a great addition to the Bee framework 😁
The text was updated successfully, but these errors were encountered: