REST/OpenAPI driver for the Model Context Standard.
Project description
mcs-driver-rest
REST / OpenAPI driver for the Model Context Standard (MCS).
Parses any OpenAPI 3.x specification and exposes every endpoint as a structured tool that an LLM can call. Supports tag-based and path-based filtering for large APIs (e.g. GitHub, Stripe).
Installation
pip install mcs-driver-rest
Quick start
from mcs.driver.rest import RestDriver
driver = RestDriver(
url="https://api.example.com/openapi.json",
include_tags=["search"],
)
system_prompt = driver.get_driver_system_message()
Features
- Automatic tool discovery from OpenAPI specs
include_tags/include_pathsfiltering- Tool name sanitisation for LLM compatibility
- Interactive inspector CLI:
python -m mcs.driver.rest.inspector <URL>
Links
- Homepage: https://www.modelcontextstandard.io
- Source: https://github.com/modelcontextstandard/python-sdk
License
Apache-2.0
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcs_driver_rest-0.3.0.tar.gz.
File metadata
- Download URL: mcs_driver_rest-0.3.0.tar.gz
- Upload date:
- Size: 21.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64c5d999d53159d61c6c7053d1f1594a997b38249bf4d2b221cf88eba24a68b0
|
|
| MD5 |
b5fe0939cc5c783b3b938cb55996cc82
|
|
| BLAKE2b-256 |
f9949c9bdaf6b07c0e778d57efa393c4f7d4f47ee0e06cdd693df55cc58cadff
|
File details
Details for the file mcs_driver_rest-0.3.0-py3-none-any.whl.
File metadata
- Download URL: mcs_driver_rest-0.3.0-py3-none-any.whl
- Upload date:
- Size: 14.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99b621d1fef44cb6eeb3384217fa0cbd9c2c5751d1e6a2b5b189de4e86dddec8
|
|
| MD5 |
cddad37f432951d98243f1f2ee45a111
|
|
| BLAKE2b-256 |
15b909f7afad2cc80bc01663f0a6432fab96e72506b685ea20125656f13821b8
|