@lssm-tech/app.managed-companyos-mcpapp.managed-companyos-mcp
Managed MCP server for CompanyOS operations and governed agent access.
@lssm-tech/app.managed-companyos-mcpSource, release and verification context
Source snapshot bcc79fcc · Declared package version 2.0.4. This page combines the checked-in package guide and manifest; commands and runtime behavior were not executed in this review.
See where this package fits.
Follow a declared connection, inspect an import, then open the source guide when you need the detail.
Arrows point from a package to its direct dependency. Each count is derived from the captured manifests.
@lssm-tech/app.managed-companyos-mcp
MCP server that exposes Managed CompanyOS operations and resources for tenant onboarding, integration discovery, workflow status, replay, evidence, health probes, and fail-closed Managed Builder evidence tools.
What It Does
- Hosts a ContractSpec MCP server over Managed CompanyOS contracts (
companyos/*). - Exposes V1 read/onboarding tools, Builder readiness/replay/evidence/release tools, and one reference resource for the operator copilot.
- Exposes tenant-safe, read-only fixture resources for Company Brain, temporal graph, experiment/outcome, and provider health projections. These resources require an authenticated tenant match plus an explicit authorization decision and never expose credential references.
- Resolves the actor from env vars (single-tenant per process) in V1; multi-tenant HTTP transport is deferred to V2.
- Fails closed until API keys are verified: a configured key yields a role-less
user, never an admin, and commands are denied unless reference mode is on outside production. Queries and read-only resources stay available.
V1 Tools
| Tool | Contract |
|---|---|
tenant.onboard |
companyos/commands/tenantOnboard.command.ts |
tenant.get |
companyos/queries/tenantGet.query.ts |
integration.list-providers |
companyos/queries/integrationListProviders.query.ts |
workflow.get-status |
companyos/queries/workflowGetStatus.query.ts |
approval.list-pending |
companyos/queries/approvalReasons.query.ts (stub source until control-plane reuse lands) |
replay.get-packet |
companyos/queries/replayGetPacket.query.ts |
evidence.get-receipt |
companyos/queries/evidenceGetReceipt.query.ts |
health.worker |
companyos/queries/healthWorker.query.ts |
builder.readiness.evaluate |
companyos/commands/builderReadinessEvaluate.command.ts |
builder.evidence.receipt.get |
companyos/queries/builderEvidenceReceiptGet.query.ts |
builder.replay.packet.get |
companyos/queries/builderReplayPacketGet.query.ts |
builder.release.capsule.get |
companyos/queries/builderReleaseCapsuleGet.query.ts |
Read-only projection resources
companyos://tenants/{tenantId}/company-braincompanyos://tenants/{tenantId}/temporal-graphcompanyos://tenants/{tenantId}/experiment-outcomecompanyos://tenants/{tenantId}/provider-health
These are deterministic reference projections only. They perform no writes or network access, fail closed for anonymous/cross-tenant/denied requests, and use only declared package exports.
Environment Variables
MANAGED_COMPANYOS_MCP_API_KEY— platform API key (required in production). It is not verified yet, so it identifies a caller but grants no role.MANAGED_COMPANYOS_MCP_TENANT_ID— optional tenant pin for tenant-scoped keys.MANAGED_COMPANYOS_MCP_REFERENCE_MODE— set to1to let the deterministic reference bindings run commands (tenant.onboard,builder.readiness.evaluate). Ignored whenNODE_ENV=production; any other value keeps commands denied.MANAGED_COMPANYOS_MCP_NAME— override server name (defaultmanaged-companyos-mcp).MANAGED_COMPANYOS_MCP_VERSION— override server version (default0.1.0).
Running Locally
From packages/apps/managed-companyos-mcp:
bun run devbun run startbun run buildbun run typecheckbun run test
Architecture
src/server.tsboots the MCP server and stdio transport.src/blueprint.tsdefines the app blueprint.src/tools.tsinstalls operation specs throughinstallOp.src/resources.tsexposes the reference workspace resource.src/prompts.tsregisters the operator copilot prompt.src/tenant-context.tsresolves the actor and the fail-closed policy gate (decide,createManagedToolDecider).src/smoke.test.tsasserts the registry registers the expected number of tools and that the gate denies commands from an unverified key.
Status
Handlers are deterministic reference bindings for V1. Until lib.auth-os
verifies API keys, commands run only in reference mode (MANAGED_COMPANYOS_MCP_REFERENCE_MODE=1, never in production). Builder-specific handlers are live fail-closed evidence tools: they reject raw-looking credentials, report missing provider/webhook refs as blockers, and emit Builder-scoped readiness/replay/receipt/release packets without replacing agent/workflow.
Declared capabilities.
This manifest does not declare a capability catalogue. Use the guide, import map and source to assess the package.
Imports and export paths.
11 entriesThese are package-manifest entry points. Named symbols listed above come from the capability catalogue; this is not an exhaustive TypeScript symbol reference.
11 imports
@lssm-tech/app.managed-companyos-mcp/blueprint@lssm-tech/app.managed-companyos-mcp/contract-editions@lssm-tech/app.managed-companyos-mcp/handlers@lssm-tech/app.managed-companyos-mcp/prompts@lssm-tech/app.managed-companyos-mcp/read-projection-resources@lssm-tech/app.managed-companyos-mcp/resources@lssm-tech/app.managed-companyos-mcp/server@lssm-tech/app.managed-companyos-mcp/tenant-context@lssm-tech/app.managed-companyos-mcp/tools@lssm-tech/app.managed-companyos-mcp/*No export paths match this search.
Dependencies and related packages.
Runtime dependencies 6
- @lssm-tech/bundle.managed-companyos
- workspace:^
- @lssm-tech/lib.contracts-runtime-server-mcp
- workspace:^
- @lssm-tech/lib.contracts-spec
- workspace:^
- @lssm-tech/lib.logger
- workspace:^
- @modelcontextprotocol/sdk
- catalog:ai
- zod
- catalog:
Development dependencies 5
- @lssm-tech/tool.tsdown
- workspace:*
- @lssm-tech/tool.typescript
- workspace:*
- @types/node
- catalog:types
- tsdown
- catalog:build
- typescript
- catalog:
Package scripts.
Commands declared by this package. Review its setup requirements before running them; no command here was executed by this review.
rm -rf distbun run lint:fixnode ../../../scripts/biome.cjs check --write --unsafe --only=nursery/useSortedClasses . && node ../../../scripts/biome.cjs check --write .node ../../../scripts/biome.cjs check .bun ../../../scripts/tsdown.mjsbun ../../../scripts/tsdown.mjs --watchnode dist/server.jstsgo --noEmitbun testbun test src/smoke