MPC server provides code interpreter with kubernetes workload
Project description
autogen-kubernete-mcp
autogen-kubernetes-mcp is an MCP(Model Context Protocol) server that acts as a Python code interpreter fully compatible with the python built-in tool of the gpt-oss model.
It is designed as a custom extension for autogen-kubernetes, enabling Python code execution inside a Kubernetes Pod with configurable runtime parameters.
This MCP server can be used in environments where code execution needs to be isolated, reproducible, and integrated with Kubernetes workloads.
Installation & Usage
- Install via
pip
pip install autogen-kubernetes-mcp
- Install via
uv
uv pip install autogen-kubernetes-mcp
- Run via
uvx
uvx autogen-kubernetes-mcp -- --namespace my-namespace --image python:3.11-slim
Note: When using
uvx, arguments must be passed after--.
- Run via Python module
python -m autogen_kubernetes_mcp --namespace my-namespace --image python:3.11-slim
Command-line Arguments
Command-line arguments are used when creating PodCommandLineCodeExecutor and MCP server.
All the arguments are optional
| Argument | Description | Default |
|---|---|---|
--host |
MCP server host address | 0.0.0.0 |
--port |
MCP server port | 8000 |
--kubeconfig |
Path to the kubeconfig file | (auto-detected) |
--image |
Pod container image name | python:3-slim |
--pod-name |
Pod name | (auto-generated) |
--timeout |
Code execution timeout(seconds) | 60 |
--workspace-path |
Path inside the container where scripts are stored | /workspace |
--namespace, -n |
Kubernetes namespace for Pod creation | default |
--volume |
Kubernetes volume to mount into the Pod/container, accepts YAML format string, YAML file path | None |
--pod-spec |
Custom Pod spec definition(YAML format string, YAML file path) | None |
License
This project is licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
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 autogen_kubernetes_mcp-0.5.2.tar.gz.
File metadata
- Download URL: autogen_kubernetes_mcp-0.5.2.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ee57447bc978129cb654067305edb4ac52f789972873706d8824818d8f42cfb
|
|
| MD5 |
2bb4e229b9d7e02ff260f57c0e7c2eff
|
|
| BLAKE2b-256 |
97fde3c295e32e4bc2d38cd978de6b7d178761a3029e8e01d0f795142ee40f72
|
Provenance
The following attestation bundles were made for autogen_kubernetes_mcp-0.5.2.tar.gz:
Publisher:
package.yaml on questcollector/autogen-kubernetes
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
autogen_kubernetes_mcp-0.5.2.tar.gz -
Subject digest:
0ee57447bc978129cb654067305edb4ac52f789972873706d8824818d8f42cfb - Sigstore transparency entry: 366074348
- Sigstore integration time:
-
Permalink:
questcollector/autogen-kubernetes@37523444a5bd22ff3947bcd2f65275c0d33bc153 -
Branch / Tag:
refs/tags/v0.5.2 - Owner: https://github.com/questcollector
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
package.yaml@37523444a5bd22ff3947bcd2f65275c0d33bc153 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file autogen_kubernetes_mcp-0.5.2-py3-none-any.whl.
File metadata
- Download URL: autogen_kubernetes_mcp-0.5.2-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
230cf28f799341cbfb4c3938348a1c77fbc740d1dd36ac8a24c52a74b69fa889
|
|
| MD5 |
eadb069d7847790bce509f95d55cc512
|
|
| BLAKE2b-256 |
4c0b99aa00baca23d4abb818fc848eee883b6b01cab8923d022ab59892bb899e
|
Provenance
The following attestation bundles were made for autogen_kubernetes_mcp-0.5.2-py3-none-any.whl:
Publisher:
package.yaml on questcollector/autogen-kubernetes
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
autogen_kubernetes_mcp-0.5.2-py3-none-any.whl -
Subject digest:
230cf28f799341cbfb4c3938348a1c77fbc740d1dd36ac8a24c52a74b69fa889 - Sigstore transparency entry: 366074359
- Sigstore integration time:
-
Permalink:
questcollector/autogen-kubernetes@37523444a5bd22ff3947bcd2f65275c0d33bc153 -
Branch / Tag:
refs/tags/v0.5.2 - Owner: https://github.com/questcollector
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
package.yaml@37523444a5bd22ff3947bcd2f65275c0d33bc153 -
Trigger Event:
workflow_dispatch
-
Statement type: