mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-18 03:29:49 +00:00
# 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/" } }' ``` |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| agents.py | ||
| datasetio.py | ||
| eval.py | ||
| inference.py | ||
| memory.py | ||
| post_training.py | ||
| safety.py | ||
| scoring.py | ||
| telemetry.py | ||
| tool_runtime.py | ||