Skip to content

Commit 3981f3d

Browse files
committed
refactor
1 parent 632584d commit 3981f3d

File tree

8 files changed

+28
-31
lines changed

8 files changed

+28
-31
lines changed

README.md

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ git clone https://github.com/BandarLabs/coderunner.git
4242
cd coderunner
4343
```
4444

45+
### Step 4: Install required packages
46+
47+
```bash
48+
pip install -r examples/requirements.txt
49+
```
50+
4551
## 🔌 Integration Options
4652

4753
### Option 1: Claude Desktop Integration
@@ -50,13 +56,14 @@ Configure Claude Desktop to use CodeRunner as an MCP server:
5056

5157
1. **Copy the example configuration:**
5258
```bash
53-
cp claude_mcp_proxy/claude_desktop_config.example.json claude_mcp_proxy/claude_desktop_config.json
59+
cd examples
60+
cp claude_desktop/claude_desktop_config.example.json claude_desktop/claude_desktop_config.json
5461
```
5562

5663
2. **Edit the configuration file** and replace the placeholder paths:
5764
- Replace `/path/to/your/python` with your actual Python path (e.g., `/usr/bin/python3` or `/opt/homebrew/bin/python3`)
5865
- Replace `/path/to/coderunner` with the actual path to your cloned repository
59-
66+
6067
Example after editing:
6168
```json
6269
{
@@ -87,14 +94,9 @@ Use CodeRunner with OpenAI's Python agents library:
8794
export OPENAI_API_KEY="your-openai-api-key-here"
8895
```
8996

90-
2. **Install required dependencies:**
97+
2. **Run the client:**
9198
```bash
92-
pip install openai-agents
93-
```
94-
95-
3. **Run the client:**
96-
```bash
97-
python examples/openai_client.py
99+
python examples/openai_agents/openai_client.py
98100
```
99101

100102
4. **Start coding:**
@@ -105,7 +107,7 @@ Use CodeRunner with OpenAI's Python agents library:
105107
### Sandboxed Execution
106108
All code runs in an isolated container environment, ensuring your host system remains secure.
107109

108-
From [@apple/container](https://github.com/apple/container/blob/main/docs/technical-overview.md) documentation -
110+
From [@apple/container](https://github.com/apple/container/blob/main/docs/technical-overview.md) documentation -
109111
>Security: Each container has the isolation properties of a full VM, using a minimal set of core utilities and dynamic libraries to reduce resource utilization and attack surface.
110112
111113
## 🏗️ Architecture
@@ -118,8 +120,9 @@ CodeRunner consists of:
118120
## 📚 Examples
119121

120122
The `examples/` directory contains:
121-
- `openai_client.py` - Example OpenAI agents integration
122-
- `systemprompt.txt` - Sample system prompt for AI models
123+
- `openai-agents` - Example OpenAI agents integration
124+
- `claude-desktop` - Example Claude Desktop integration
125+
123126

124127
## 🤝 Contributing
125128

claude_mcp_proxy/requirements.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"mcpServers": {
3+
"coderunner": {
4+
"command": "/path/to/your/python",
5+
"args": [
6+
"/path/to/coderunner/claude_mcp_proxy/mcp.py"
7+
]
8+
}
9+
}
10+
}
File renamed without changes.

examples/openai_client.py renamed to examples/openai_agents/openai_client.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
import asyncio
2-
import os
3-
import shutil
4-
import subprocess
5-
import time
62
import socket
7-
from typing import Any
3+
84

95
from agents import Agent, Runner, gen_trace_id, trace
106
from agents.mcp import MCPServer, MCPServerSse

examples/requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
fastmcp
2+
openai-agents

examples/systemprompt.txt

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)