-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconfig.example.yaml
More file actions
80 lines (68 loc) · 2.31 KB
/
config.example.yaml
File metadata and controls
80 lines (68 loc) · 2.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# Code Execution MCP Configuration Template
# Copy this file to config.yaml and customize for your needs
execution:
workspace_dir: ./workspace
servers_dir: ./servers
skills_dir: ./skills
sandbox_type: opensandbox # Supported sandboxed backend
sandbox_image: python
allow_network_access: false
# OpenSandbox settings (when sandbox_type: opensandbox)
# Requires: pip install opensandbox opensandbox-server && opensandbox-server start
# opensandbox_domain: localhost:8080 # or set OPENSANDBOX_DOMAIN env var
# opensandbox_image: python:3.11
state:
enabled: true # Enable state persistence
workspace_dir: ./workspace # Where to store state
state_file: state.json # Default state file name
auto_save: true # Automatically save state after execution
state_format: json # Format: json, yaml, pickle
# LLM Configuration (optional - for code generation)
llm:
enabled: false # Set to true to enable LLM-based code generation
provider: azure_openai # Options: openai, azure_openai, anthropic
model: gpt-4o-mini
# Azure OpenAI settings (if using Azure)
azure_endpoint: https://your-resource.openai.azure.com
azure_deployment_name: gpt-4o-mini
azure_api_version: 2024-08-01-preview
# OpenAI settings (if using OpenAI)
# api_key: your_openai_api_key # Or set OPENAI_API_KEY env var
temperature: 0.3
max_tokens: 2000
# Performance Optimizations
optimizations:
enabled: true
sandbox_pooling: false # Set to true for 100-700x performance boost (recommended)
sandbox_pool_size: 3
tool_cache: true
tool_cache_file: .tool_cache.json
gpu_embeddings: true
parallel_discovery: true
file_content_cache: true
# Guardrails and Security
guardrails:
enabled: true
strict_mode: false
content_filtering: true
security_checks: true
privacy_protection: true
pii_detection: true
tokenization: true
rate_limiting: true
max_execution_time: 300 # seconds
max_memory_mb: 512
allowed_networks: []
blocked_patterns: []
# Logging
logging:
level: INFO # Options: DEBUG, INFO, WARNING, ERROR
file: logs/code-execution-mcp.log
# MCP Servers (optional - for direct MCP server connections)
mcp_servers: []
# Example:
# - name: my_server
# url: http://localhost:8000
# connection_type: sse # Options: sse, stdio, http
# enabled: true
# timeout: 30