Metadata-Version: 2.4
Name: mcp_python_exec_tools_etop
Version: 0.1.0
Summary: MCP server for executing Python code using AgentScope
Author: etop
License: Apache-2.0
Project-URL: Homepage, https://github.com/agentscope/agentscope
Project-URL: Repository, https://github.com/agentscope/agentscope
Keywords: agentscope,mcp,python,execution,mcp-server
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Description-Content-Type: text/markdown
Requires-Dist: fastmcp>=2.0
Requires-Dist: agentscope>=0.7.0
Provides-Extra: dev
Requires-Dist: build>=1.0; extra == "dev"
Requires-Dist: twine>=4.0; extra == "dev"

# AgentScope Python Execution MCP Server

MCP server for executing Python code using AgentScope's built-in tool.

## Tools

| Tool Name | Description |
|-----------|-------------|
| `run_python_code` | Execute Python code |

## Installation

```bash
pip install mcp_python_exec_tools_etop
```

## Usage

### Using uvx (recommended)

```bash
uvx mcp_python_exec_tools_etop
```

Specify host and port:
```bash
uvx mcp_python_exec_tools_etop --host 127.0.0.1 --port 8000
```

### Using command line

```bash
pip install mcp_python_exec_tools_etop
mcp_python_exec_tools_etop
```

Default starts at `http://0.0.0.0:8000/mcp`.

Specify host and port:
```bash
mcp_python_exec_tools_etop --host 127.0.0.1 --port 8000
```

### Using Python code

```python
from mcp_python_exec_tools_etop import run

run(host="127.0.0.1", port=8000)
```

### Running as module

```bash
python -m mcp_python_exec_tools_etop.server
```
