olivetin-mcp
This server bridges OliveTin to MCP clients for discovering actions, running them with approval, tracking execution, and inspecting results.
Discover OliveTin actions, their argument schemas, and whether they require approval.
Start actions asynchronously with validated arguments and receive execution tracking IDs.
Poll execution status, read execution logs/history, inspect queues, and kill running executions.
Restart prior executions after human approval.
List pending approvals and obtain approval URLs for destructive actions.
Validate argument values and inspect action bindings, entities, server info, identity, and readiness.
Reload the OliveTin action catalog on demand.
Render Mermaid diagrams and Chart.js charts to PNG, and optionally search the web via Brave Search.
Expose OliveTin resources for actions, help, logs, and pending approvals, plus an execution prompt.
Provides a [brave](/mcp/integrations/brave)_search tool that queries the Brave Search API and returns the top results with title, URL, and description; read-only and requiring no approval.
Provides a render_diagram tool that renders Mermaid diagram specifications as PNG images via the mermaid.ink rendering service, returning the path to a temporary file.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@olivetin-mcp restart the Nginx server"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
olivetin-mcp
Expose predefined OliveTin actions as MCP tools. Discover actions, validate arguments, request approval, run actions, and inspect execution history from an MCP client.
Community maintained; not affiliated with or endorsed by OliveTin. Version 0.2 requires Python 3.11+ and FastMCP 4. The integration suite targets OliveTin 3000.22.0; compatibility with other releases must be checked.
Quick start
With an existing OliveTin instance:
claude mcp add olivetin -e OLIVETIN_URL=http://localhost:1337 -- uvx --from git+https://github.com/vaddisrinivas/olivetin-mcp.git olivetin-mcpThis uses stdio. A client supporting MCP elicitation can ask for approval inline. A stdio process does not serve the HTTP approval page; use a custom approval backend or a network transport if elicitation is unavailable.
To run the bundled harmless demo:
git clone https://github.com/vaddisrinivas/olivetin-mcp.git
cd olivetin-mcp
docker compose up -d --buildOliveTin: http://localhost:1337. MCP: http://localhost:9003/mcp. Compose publishes both services on loopback only and mounts the example configuration explicitly. Replace that configuration with reviewed actions for your deployment. Runtime scratch space is a bounded tmpfs; the bridge requires no persistent volume.
claude mcp add olivetin --transport http http://localhost:9003/mcpUse a release tag or commit in the Git source URL when you need a reproducible client installation. The unqualified Git URL follows the repository's default branch.
Related MCP server: Agentrim MCP
Transports
uv sync --frozen --all-extras
uv run --frozen olivetin-mcp # stdio
uv run --frozen olivetin-mcp --http # Streamable HTTP, /mcp
uv run --frozen olivetin-mcp --sse # legacy SSE, /sseNetwork listeners default to 127.0.0.1:9003. HOST_BRIDGE_HOST controls binding; Docker sets it to 0.0.0.0 inside the container. The Docker default changed from SSE to Streamable HTTP in 0.2. To keep SSE, override the container command with ["python3", "main.py", "--sse"] and connect to /sse.
For a client supporting command-based MCP configuration:
{
"mcpServers": {
"olivetin": {
"command": "uvx",
"args": ["--from", "git+https://github.com/vaddisrinivas/olivetin-mcp.git", "olivetin-mcp"],
"env": {"OLIVETIN_URL": "http://localhost:1337"}
}
}
}Approval and security
Actions execute without approval only when their title starts with [read-only] or their ID starts with ro_ (case insensitive). These are operator assertions about command behavior. All other action tools, asynchronous starts, and restarts request approval:
MCP elicitation asks the client for a decision.
Legacy unsupported or timed-out elicitation falls back to a URL at
/pending/<token>.Denial, cancellation, expiry, or missing approval prevents execution.
An accepted elicitation executes immediately; URL approval is a fallback, not a second factor. The bridge trusts its MCP client and has no built-in inbound authentication. Anyone able to reach an approval endpoint with its token can decide it, including an agent with unrestricted HTTP access. For independent human approval, use separately authenticated human ingress and prevent agent access to approval POST routes. Protect remote deployments with authenticated TLS ingress. OliveTin credentials authenticate the bridge to OliveTin; they do not authenticate MCP callers. See SECURITY.md.
MCP 2026-07-28 clients use the current input-required approval flow; older connections use ctx.elicit. Modern approvals require a client that can answer elicitation requests. Their state is single use, expires after ELICITATION_TIMEOUT_SECS, and binds the exact tool and arguments. Changed, expired, replayed, or missing state denies execution. Pending approvals are process local: run one bridge process; restarting it invalidates approvals.
Unknown action arguments and invalid declared choices are rejected before execution. Defaults are validated and forwarded; booleans become lowercase strings. OliveTin remains authoritative for specialized types and authorization. Only known read RPCs retry network errors. A lost response to a start/restart can mean the action already ran: inspect logs before retrying manually.
The container runs as a non-root user, strips shell/package tools, and supports a read-only root filesystem and dropped capabilities. Container hardening does not prove an action is safe. Diagram/chart tools send content to external rendering services; avoid private content.
Tools, resources, and prompts
Each discovered action becomes a tool with an input schema. Built-in names are reserved and cannot be shadowed by actions.
Tool | Purpose |
| Discover action IDs, arguments, and approval classification |
| Start an action; retain |
| Poll an execution |
| Read execution history, optionally by action |
| Inspect active actions and concurrency queues |
| Stop an execution immediately; approval exempt |
| Re-run an execution after approval |
| Refresh the action catalog |
| Find approval requests |
| Diagnose upstream identity, version, and availability |
| Inspect action metadata and validation |
| Inspect configured entities |
| Optional search using a configured API key |
| Render through mermaid.ink or quickchart.io; temporary PNG paths |
Resources: olivetin://actions, olivetin://actions/{action_id}/help, olivetin://logs, olivetin://logs/{action_id}, and olivetin://pending.
The olivetin_run prompt composes execution instructions. Per-action promptTemplate metadata, if supplied by a compatible upstream extension, creates additional prompts. Current OliveTin's Action protobuf does not expose that extension.
Configuration
Configure through environment variables or mounted secrets. .env.example documents the original settings; the table below includes 0.2 additions. The Python CLI reads process environment, not a project .env automatically.
Variable | Default | Purpose |
|
| Upstream server URL; set explicitly outside Docker Desktop |
|
| Network bind address; Docker image uses |
|
| HTTP/SSE port |
|
| Browser-accessible bridge URL |
|
| URL approval timeout |
|
| Inline approval timeout |
|
| Catalog refresh interval |
|
| Secret file directory |
| unset | Optional key; alternatively mount |
Upstream authentication:
Trusted proxy headers:
OLIVETIN_REMOTE_USER,OLIVETIN_REMOTE_GROUPS; optionalOLIVETIN_USER_HEADER/OLIVETIN_GROUPS_HEADER(defaultsX-Remote-User/X-Remote-Groups). Configure OliveTin's trusted-header authentication explicitly.JWT:
OLIVETIN_JWT_TOKENor mountedolivetin_jwt_token.Basic:
OLIVETIN_BASIC_USERandOLIVETIN_BASIC_PASS, for a supporting reverse proxy. If both JWT and Basic are configured, Basic takes precedence.
Never commit credentials, production action catalogs, or unredacted execution logs.
Agent skills
Two reusable community skills are included:
olivetin-operator: discovery, approvals, execution tracking, and troubleshooting.
olivetin-action-author: safe YAML authoring, stable IDs, argument constraints, and isolated checks.
Copy the desired skill directory into your client's skill directory. For Codex, that is typically ~/.codex/skills; for Claude Code, ~/.claude/skills. These are agent instructions, not additional host execution permissions or automatically installed server tools.
Troubleshooting
No actions: inspect
actions_loaded/actions_load_failedin stderr or container logs. Unknown named dashboards can returndashboard: null; the bridge falls back to the default dashboard. Usereload_actionsafter configuration changes. A failed refresh retains the last working catalog.Connection errors: verify
OLIVETIN_URL, upstream authentication, and/healthz. Usereadyzto check OliveTin itself;/healthzonly reports bridge liveness.Approval links unavailable: stdio has no HTTP listener. For HTTP/SSE, configure
APPROVAL_BASE_URLto a human-accessible authenticated address. Timeout is denial.Lost execution response: read history/status before retrying; the server may have executed the request.
Logs for a bug report: include versions, transport, and a redacted error excerpt. Action output and arguments may contain secrets.
Development
make install # locked test and lint dependencies
make ci # lint, format, typing, >=95% coverage
make lock # deliberate dependency upgrade + hashed requirements export
uv build # wheel and source distributionCI covers Python 3.11–3.14 and includes a Docker job that executes the safe example through real stdio and HTTP MCP clients. To run those integration tests locally against an isolated instance using the bundled example:
OLIVETIN_TEST_URL=http://127.0.0.1:1337 \
MCP_TEST_URL=http://127.0.0.1:9003/mcp \
uv run --frozen pytest tests/test_integration.py -vWithout these variables, integration tests skip. Do not point them at a personal or production action catalog.
API changes should follow the official API overview and release-tagged protobuf. OliveTin provides llm.txt and llm-full.txt for documentation retrieval.
See CONTRIBUTING.md, ARCHITECTURE.md, and CHANGELOG.md. MIT license.
Available Tools
18 toolsbrave_searchARead-only
Search the web using the Brave Search API. Returns top results with title, URL, and description. No approval needed — read-only.
Inputs: query (required), count. Returns: result
get_action_bindingARead-only
Fetch a single OliveTin action binding by ID (GetActionBinding RPC). Returns full Action proto including arguments, icon, timeout, and ACL fields. No approval needed — read-only.
Inputs: binding_id (required). Returns: result
get_entitiesARead-only
List all OliveTin entities (GetEntities RPC). Entities represent monitored services/hosts. No approval needed — read-only.
Inputs: no named parameters. Returns: result
get_entityARead-only
Fetch a single OliveTin entity by unique key and type (GetEntity RPC). No approval needed — read-only.
Inputs: unique_key (required), type. Returns: result
get_execution_logsARead-only
Get recent OliveTin execution history (LogEntry records). Proto fields: datetime_started, action_title, output, exit_code, timed_out, user, execution_tracking_id, blocked. No approval needed.
Inputs: action_id, page_size. Returns: result
get_execution_statusARead-only
Check the status of a running OliveTin action by its execution_tracking_id (returned by StartAction). No approval needed.
Inputs: execution_tracking_id (required). Returns: result
get_server_infoARead-only
Return OliveTin server info and version (Init RPC). No approval needed — read-only.
Inputs: no named parameters. Returns: result
kill_actionARead-only
Kill a currently running OliveTin action by its execution_tracking_id. Only works when the LogEntry's can_kill field is true. Returns killed/already_completed/not_found status. No approval needed — this is a safety stop, not a destructive write.
Inputs: execution_tracking_id (required). Returns: result
list_olivetin_actionsARead-only
List all available OliveTin actions: IDs, titles, argument schemas, and whether each requires approval. No approval needed.
Inputs: no named parameters. Returns: result
list_pending_approvalsARead-only
List all OliveTin actions currently waiting for human approval, with the URL the human must visit to approve or deny. Call this after triggering a destructive action to get the approval link. No approval needed — read-only.
Inputs: no named parameters. Returns: result
readyzARead-only
OliveTin readiness probe (GetReadyz RPC). Returns 200/ready when OliveTin is healthy. No approval needed — read-only.
Inputs: no named parameters. Returns: result
reload_actionsARead-only
Force an immediate refresh of the OliveTin action catalog from GetDashboard. Use this after adding, removing, or editing actions in OliveTin config without waiting for the automatic refresh interval. No approval needed — read-only.
Inputs: no named parameters. Returns: result
render_chartARead-only
Render a Chart.js config as PNG via quickchart.io. Returns /tmp path. No approval needed.
Inputs: config (required), width, height, background_color. Returns: result
render_diagramARead-only
Render a Mermaid diagram spec as PNG via mermaid.ink. Returns /tmp path. No approval needed.
Inputs: spec (required). Returns: result
restart_actionADestructive
Restart a previously executed OliveTin action by its execution_tracking_id (RestartAction RPC). Re-runs with the same arguments as the original execution. Requires human approval — this re-triggers a real action on the host.
Inputs: execution_tracking_id (required). Returns: result
start_action_asyncADestructive
Start an OliveTin action asynchronously (StartAction RPC). Returns an execution_tracking_id immediately without waiting for completion. Use get_execution_status to poll progress, kill_action to cancel. Requires human approval — this triggers a real action on the host.
Inputs: action_id (required), arguments. Returns: result
validate_argumentARead-only
Validate an argument value against an OliveTin argument type (ValidateArgumentType RPC). type: unicode | ascii_identifier | url | int | float | bool. No approval needed — read-only.
Inputs: type (required), value (required), binding_id, argument_name. Returns: result
whoamiARead-only
Return information about the current authenticated OliveTin user (WhoAmI RPC). No approval needed — read-only.
Inputs: no named parameters. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 18 tools
The core OliveTin tools are mostly distinct, but the inclusion of unrelated tools (brave_search, render_diagram, render_chart) creates confusion about the server's purpose and could lead to misselection. There is also mild overlap between get_execution_logs and get_execution_status, though descriptions help clarify.
Most tools follow a clear verb_noun snake_case pattern (e.g., list_olivetin_actions, get_execution_status, kill_action). Minor exceptions like whoami, readyz, and brave_search deviate from the pattern but are still recognizable and don't cause significant inconsistency.
At 18 tools, the set is on the heavier side. The 15 OliveTin-specific tools are reasonably scoped for the domain, but the three unrelated utility tools pad the count and make the server feel less focused.
The OliveTin surface covers the core lifecycle: listing/getting actions, starting/killing/restarting, status/logs, approvals, entities, validation, user/server info, health, and reload. Minor gaps include lack of entity mutations and synchronous action start, but these are not critical for typical workflows.
Maintenance
Related MCP Connectors
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
One MCP server for all your MCP servers: code mode, per-tool permissions, approvals and audit.
Open-source MCP gateway with per-agent tool permissions, call approvals and tool-change review.
The MCP server that vets MCP servers: identity, risk grade and per-tool risk before you install.
Related MCP Servers
AlicenseAqualityBmaintenanceA hardened, self-hosted MCP server that lets AI agents query and govern an Infraveil control plane in-loop, reading state and filing deploy/remediation requests that require human approval.7AGPL 3.0- AlicenseNot gradedqualityDmaintenanceA least-privilege enforcement proxy for MCP servers. It sits between MCP clients and upstream servers, enforcing tool policies, hiding denied tools, requiring human approval for risky actions, and providing a structured audit trail.MIT
- FlicenseNot gradedqualityDmaintenanceMCP server that provides a security gateway for AI agents, enforcing allow/confirm/deny policies on tool calls and requiring human approval for risky operations, with full audit logging.-
- AlicenseNot gradedqualityCmaintenanceAn MCP server exposing scoped, read-only enterprise operations tools with fail-closed credential handling. It returns opaque approval IDs for mutations and requires a separate operator approval command to release one-time capabilities.MIT