Skip to main content

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_paths filtering
  • Tool name sanitisation for LLM compatibility
  • Interactive inspector CLI: python -m mcs.driver.rest.inspector <URL>

Links

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

mcs_driver_rest-0.2.2.tar.gz (21.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcs_driver_rest-0.2.2-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

Details for the file mcs_driver_rest-0.2.2.tar.gz.

File metadata

  • Download URL: mcs_driver_rest-0.2.2.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

Hashes for mcs_driver_rest-0.2.2.tar.gz
Algorithm Hash digest
SHA256 efaa2467008d7fc6235619a2b2489914b12c2c415e61e54138c4ece5eec49f0b
MD5 c7e189c565f6dce85270177e337581d4
BLAKE2b-256 7c83aaedb040f76f6f01d8707b12f46c36e5b5c731875b7f0d33662af6792617

See more details on using hashes here.

File details

Details for the file mcs_driver_rest-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for mcs_driver_rest-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 089fec3671e6ef1295d1efec2a00c808112f26d1a54c02e37f0e3aac704039f9
MD5 e075d1926b1800522637482a70bacb64
BLAKE2b-256 3b5603152fcc347f1eaa4d7f1e3d89e828de40cae9f9a8b426ddff6df1283c46

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page