llama-stack-mirror/llama_stack/providers
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
..
inline add model context protocol provider (#665) 2024-12-19 16:14:23 -08:00
registry add model context protocol provider (#665) 2024-12-19 16:14:23 -08:00
remote add model context protocol provider (#665) 2024-12-19 16:14:23 -08:00
tests Update the "InterleavedTextMedia" type (#635) 2024-12-17 11:18:31 -08:00
utils store attributes values in builtin types to avoid otel warnings (#649) 2024-12-17 17:10:43 -08:00
__init__.py API Updates (#73) 2024-09-17 19:51:35 -07:00
datatypes.py add tools api with a stub provider impl 2024-12-18 15:11:06 -08:00