velocity_mcp --config config.toml
[server]
mode = "http"
addr = "0.0.0.0:3000"
[security]
max_request_size = 1048576 # 1 MB
rate_limit_per_second = 20
rate_limit_burst = 100
execution_timeout_secs = 30
max_memory_bytes = 268435456 # 256 MB
[sandbox]
allow_network = false
allowed_interpreters = ["python", "node", "powershell", "bash"]
[tls]
enabled = false
cert_path = "/path/to/cert.pem"
key_path = "/path/to/key.pem"
[cors]
allowed_origins = ["https://myapp.example.com"]
[logging]
level = "info"
format = "json"
[resources]
database_path = "/path/to/resources.db"
| Flag |
Description |
Default |
--mode <stdio|http|ws|shmem> |
Transport mode |
stdio |
--addr <address> |
HTTP/WS listen address |
0.0.0.0:3000 |
--config <path> |
Config file path |
— |
--buffer-path <path> |
Shmem buffer file |
nmcp_buffer.bin |
--benchmark |
Run benchmarks |
— |
| Feature |
Description |
http |
HTTP/SSE/WebSocket transport |
oauth2 |
OAuth2 connector framework |
database |
Database resource adapters |
observability |
OpenTelemetry tracing/metrics |
cargo build --release --features http,oauth2,observability
| Variable |
Description |
Default |
VELOCITY_CSHARP_PATH |
C# engine path (optional) |
— |
RUST_LOG |
Log level |
info |
OTEL_EXPORTER_OTLP_ENDPOINT |
OpenTelemetry collector |
— |
See also: Getting-Started, Monitoring