Commit graph

4 commits

Author SHA1 Message Date
Dinesh Yeduguru
e95c168bc0
add model context protocol provider (#665)
# What does this PR do?
Changes:
* Adds a new API to discover tools available on a runtime
* Adds a new model context protocol provider


## Test Plan

```
# clone python sdk for mcp and start the simple-tool server
uv run mcp-simple-tool --transport sse --port 56000

curl -X POST 'http://localhost:5000/alpha/toolgroups/register' \
-H 'Content-Type: application/json' \
-d '{
  "tool_group": { "name": "simple_mcp_group",
    "type": "model_context_protocol",
    "endpoint": {"uri": "http://localhost:56000/sse"}
  },
  "provider_id": "model-context-protocol"
}'

curl -X POST 'http://localhost:5000/alpha/tool-runtime/invoke' \
-H 'Content-Type: application/json' \
-d '{
    "tool_id": "fetch",
    "args": {
        "url": "http://google.com/"
    }
}'

```
2024-12-19 16:14:23 -08:00
Dinesh Yeduguru
71434d67f3 rebase and address feedback 2024-12-19 07:38:08 -08:00
Dinesh Yeduguru
1c770508df add brave tool provider 2024-12-19 07:00:31 -08:00
Dinesh Yeduguru
72dab3e4bf add tools api with a stub provider impl 2024-12-18 15:11:06 -08:00