MCP server de Pit Officer
Commit 10 nov 2026Aplica límites de riesgo previos a la negociación para agentes de trading con IA, verificando cada orden antes de que llegue a un broker.
También conocido como openpitkit/officer, officer
- Stars
- 3
- Herramientas
- —
- Descargas, 30 días
- —
- Última versión
- 0.1.0
- Último commit
- 10 nov 2026
- Licencia
- Apache-2.0
¿Qué es Pit Officer MCP?
Aplica límites de riesgo previos a la negociación para agentes de trading con IA, verificando cada orden antes de que llegue a un broker.
Resumen generado a partir del README del proyecto
Acerca del MCP server de Pit Officer
Pit Officer actúa como una capa de gestión de riesgos para el trading automatizado. Funciona interceptando las órdenes a través del motor de riesgo OpenPit para asegurar que cumplan con los límites establecidos antes de llegar a un broker. Este sistema está diseñado para desarrolladores que utilizan software de trading o agentes de IA y necesitan gestionar múltiples cuentas de trading y aplicar parámetros de seguridad estrictos en cada transacción.
Los usuarios pueden desplegar el servidor usando Docker o ejecutarlo como un binario único con subcomandos específicos como serve, mcp o dashboard. Es compatible tanto con conexiones HTTP MCP como con MCP servers locales mediante stdio. La configuración incluye un panel web para gestionar cuentas y establecer límites de riesgo, mientras que el backend gestiona las conexiones reales con los brokers. Los desarrolladores pueden elegir entre una versión estable o una build de desarrollo edge para fines de prueba.
Qué puedes hacer con él
- 1Gestionar múltiples cuentas de tradingUn desarrollador puede usar la interfaz web para organizar y supervisar diversas cuentas de corretaje.
- 2Ejecutar un MCP server localPuedes integrar el servidor en tu entorno de desarrollo local utilizando el protocolo stdio.
Escrito a partir del README del proyecto. Cada caso de uso se verifica con una cita del mismo.
Configuración
CGO_ENABLED
| Nombre | Descripción | Tipo |
|---|---|---|
| CGO_ENABLED | — |
Verificaciones automáticas
Ejecutado 14 nov 2026Informe completo →Aún no verificado. Un servidor necesita una puntuación de 80, ningún hallazgo grave y suficientes datos para que podamos revisarlo. Cómo funcionan las verificaciones · Qué corregir para obtener más puntos
- Repositorio de origen vinculado y accesibleopenpitkit/officer is public and reachablegithub.com/openpitkit/officer ↗Aprobado
- El paquete indica este repositorio como su origenNo verificado
- Procedencia de la compilación (atestación de Sigstore)No verificado
- Licencia de código abierto (OSI)Apache-2.0spdx.org/licenses/Apache-2.0.html ↗Aprobado
- Commit o lanzamiento en el último añoLast commit or release 2026-11-10github.com/openpitkit/officer ↗Aprobado
- OpenSSF ScorecardNo verificado
- El nombre del paquete no es similar a un paquete popularNo verificado
- No hay avisos críticos en el paquete ni en sus dependenciasNo verificado
- Sin instrucciones ocultas para el modelo0 tool descriptions and the README read; no override phrases, credential paths or hidden charactersAprobado
- Las herramientas destructivas están etiquetadasNo verificado
- El endpoint remoto responde al handshake de MCPNo verificado
README
Ver en GitHubPit Officer
Website: officer.openpit.dev
Contact: info@openpit.dev.
Pit Officer lets you manage trading accounts, set risk limits, connect to brokers, and send orders from a web panel. The OpenPit risk engine checks each order before Officer sends it through a trading connection. You can also use Officer from trading software or AI agents.
Run
Watch the video guide or follow the steps below. The quickstart covers stopping, ports and troubleshooting.
Install Docker, then run:
docker run -d --name pit-officer --restart unless-stopped -p 127.0.0.1:8787:8787 -v pit-officer-data:/data ghcr.io/openpitkit/officer:latest
Open http://127.0.0.1:8787. latest is the newest release; your data stays
in the pit-officer-data volume. Back up before every upgrade, and regularly,
from Service > Database > Database backup > Export in the panel.
To upgrade an installed Officer, see Upgrade Officer.
edge is the current development build, for quick tests only. Its data is
disposable. Stop the release container first, then use the same volume:
docker stop pit-officer
docker run -d --name pit-officer-edge --restart unless-stopped -p 127.0.0.1:8787:8787 -v pit-officer-data:/data ghcr.io/openpitkit/officer:edge
On its first start, the panel asks whether to copy the release data or start empty. It never changes the release database. See Trying the development build.
Build
Prerequisites: a C toolchain, which the OpenPit Go binding requires through
cgo; Go; and Node and npm for the dashboard bundle. Tool versions are pinned in
.github/ci-versions.env; just ensure-node installs the pinned Node into
.tmp/node.
From the repository root, build the dashboard before the binary so Go embeds the compiled assets:
npm --prefix web ci
npm --prefix web run build
CGO_ENABLED=1 go build -ldflags "-X go.openpit.dev/officer/framework/backend.buildCommit=$(git rev-parse HEAD)" -o pit-officer ./cmd/pit-officer
On Windows with PowerShell, set CGO_ENABLED=1 in your shell, build with
go build -ldflags "-X go.openpit.dev/officer/framework/backend.buildCommit=$(git rev-parse HEAD)" -o pit-officer.exe ./cmd/pit-officer, and run ./pit-officer.exe.
Run from source
A locally built binary behaves like edge: its first serve asks which
database to use, and it never changes the release database. Make that
choice before running mcp.
Pit Officer is a single binary with four subcommands: serve, mcp,
dashboard, healthcheck. After building it, run from the repository root:
./pit-officer serve # serve the dashboard, REST API, and HTTP MCP
./pit-officer dashboard # in another terminal, open the running instance
./pit-officer mcp # alternatively, run a local stdio MCP server
The subcommands, environment variables, flags, and authorization model are in the configuration reference. See the API notes for REST and MCP integration.
Local container build
To build and run a local container image with the settings in
docker-compose.yml:
. ./.github/ci-versions.env
docker build --build-arg GO_VERSION="$CI_GO" --build-arg OFFICER_COMMIT="$(git rev-parse HEAD)" -t pit-officer:local .
docker compose up
Optional Just shortcuts
Just provides a quicker alternative to the manual steps above. The recipes also require Python 3; the full check additionally uses golangci-lint and Semgrep, as described in the development notes.
just frontend-ci-install # npm ci in web/ from the committed lockfile
just build # build the SPA, then the pit-officer binary
just run-serve # build and serve
just dashboard # open the running instance in the browser
just run-mcp # build and run a local stdio MCP server
just docker-build # build the pit-officer:local container image
just check # format checks, linters, Semgrep, tests, frontend bundles
Composing your own Officer from the importable packages, building against a local Pit checkout, and the debug variants are covered in the development notes.
License
Apache License 2.0. See LICENSE.
Preguntas sobre Pit Officer MCP
¿Cómo puedo ejecutar Pit Officer como un MCP server?
Puedes ejecutar un MCP server local mediante stdio usando el subcomando mcp: ./pit-officer mcp.
¿Cómo hago una copia de seguridad de mis datos de trading?
Puedes realizar copias de seguridad periódicas desde el panel web navegando a Service > Database > Database backup > Export.
¿Puedo usar Pit Officer con agentes de IA?
Sí, la plataforma está diseñada para ser utilizada por software de trading o agentes de IA.