| GitHub Repo | datalake-mcp-server-client |
| Python | 3.13 (auto-generated client) |
| Package Manager | uv |
The datalake-mcp-server-client is an auto-generated Python client library for interacting with the datalake-mcp-server APIs.
Unlike manually crafted SDKs, this library is generated directly from the OpenAPI specification of the datalake-mcp-server. This ensures that the client remains strictly in sync with the upstream API definitions and data models with zero manual maintenance overhead.
This client is used by other internal BERDL services (such as spark_notebook_base and Jupyter tools) to interact programmatically with the Datalake MCP backend services securely.
The client is generated using the openapi-python-client utility. A convenience script (run.sh) is provided in the repository to automate generation:
- The script extracts the OpenAPI JSON spec directly from the local
datalake-mcp-servercodebase using an intermediate Python generator (generate_spec_from_local.py). - The
openapi-python-clientconsumes this specification and outputs static Python type hints and API client methods. - The resulting code is placed cleanly into
src/datalake_mcp_server_client.
# In the datalake-mcp-server-client repo
./run.sh(Note: Requires uv and Python 3.13 for the build environment).
Other packages can depend on this client by installing it directly from its git repository or path:
pip install "git+https://github.com/KBaseDataLakehouse/datalake-mcp-server-client.git"