llama-stack-mirror/llama_stack/apis
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
..
agents Update the "InterleavedTextMedia" type (#635) 2024-12-17 11:18:31 -08:00
batch_inference Update the "InterleavedTextMedia" type (#635) 2024-12-17 11:18:31 -08:00
common Update URL type to avoid string-ifying and creating complexity 2024-12-17 22:50:11 -08:00
datasetio [tests] add client-sdk pytests & delete client.py (#638) 2024-12-16 12:04:56 -08:00
datasets Update the "InterleavedTextMedia" type (#635) 2024-12-17 11:18:31 -08:00
eval Update the "InterleavedTextMedia" type (#635) 2024-12-17 11:18:31 -08:00
eval_tasks Add version to REST API url (#478) 2024-11-18 22:44:14 -08:00
inference Register Message and ResponseFormat 2024-12-18 10:32:25 -08:00
inspect [tests] add client-sdk pytests & delete client.py (#638) 2024-12-16 12:04:56 -08:00
memory Update the "InterleavedTextMedia" type (#635) 2024-12-17 11:18:31 -08:00
memory_banks [tests] add client-sdk pytests & delete client.py (#638) 2024-12-16 12:04:56 -08:00
models [tests] add client-sdk pytests & delete client.py (#638) 2024-12-16 12:04:56 -08:00
post_training [2/n][torchtune integration] implement job management and return training artifacts (#593) 2024-12-13 15:00:04 -08:00
safety Update the "InterleavedTextMedia" type (#635) 2024-12-17 11:18:31 -08:00
scoring [tests] add client-sdk pytests & delete client.py (#638) 2024-12-16 12:04:56 -08:00
scoring_functions [/scoring] add ability to define aggregation functions for scoring functions & refactors (#597) 2024-12-11 10:03:42 -08:00
shields [tests] add client-sdk pytests & delete client.py (#638) 2024-12-16 12:04:56 -08:00
synthetic_data_generation Update the "InterleavedTextMedia" type (#635) 2024-12-17 11:18:31 -08:00
telemetry Update Telemetry API so OpenAPI generation can work (#640) 2024-12-16 13:00:14 -08:00
tools add model context protocol provider (#665) 2024-12-19 16:14:23 -08:00
__init__.py API Updates (#73) 2024-09-17 19:51:35 -07:00
resource.py add tools api with a stub provider impl 2024-12-18 15:11:06 -08:00
version.py Fix the pyopenapi generator avoid potential circular imports 2024-11-18 23:37:52 -08:00