mcp-composer
v0.37.0BICon Composer & Analyst: MCP server that helps an AI client compose a valid BICon portfolio initiative as an import file, and analyse the portfolio read-only…
Shown in Claude Desktop as BICon Composer & Analyst from the release after 0.16.0 (named BICon Initiative Composer until 2026-10-25; the npm package @bicon/mcp-composer, the extension id (manifest name) bicon-initiative-composer and the tool names are unchanged; only the label changed). An MCP server that helps an AI client — e.g. Claude Desktop — set up a portfolio initiative conversationally, and analyse a full portfolio backup read-only (see the analysis tools below).
Summary extracted from the README.
BICon Composer & Analyst (MCP server)
Shown in Claude Desktop as BICon Composer & Analyst from the release after 0.16.0 (named BICon Initiative
Composer until 2026-10-25; the npm package @bicon/mcp-composer, the extension
id (manifest name) bicon-initiative-composer and the tool names are
unchanged; only the label changed).
An MCP server that helps an AI client — e.g. Claude Desktop — set up a portfolio initiative conversationally, and analyse a full portfolio backup read-only (see the analysis tools below). Creating an initiative by hand means filling ~15 metadata fields and rating 30 sub-dimensions across four scoring dimensions (plus optional economics and a large EU-AI-Act block); this server lets an assistant run that interview and produce a complete, valid initiative.
Draft-first by design — reads, never writes
The server never writes to the BICon API. Its tools assemble and validate an initiative and hand back an import file; you load that file through the app's existing, authenticated import UI. The "Add as new → Confirm" step in the app is the human-in-the-loop — nothing reaches your organisation until you confirm it in the browser.
It reads either a file you hand over (the backup, the portfolio context) or, with live access set up, the portfolio straight from the app (see below). Without a token it makes no network calls at all.
Live access — no files to hand over (optional)
Since the release after 0.25.0 (docs/mcp-live-read-access-concept-2026-11-07.md):
- An admin switches it on in the app: Import/Export → Live access for AI assistants (off by default; off stops every token at once).
- Each person creates a personal read-only access token there
(
bcn_pat_…, shown once, valid 30 to 365 days in the app (the API accepts 1 to 365), revocable; at most 10 active). It reads what that person's role may read, nothing more, and stops when it expires, is revoked, or the person leaves the organisation. - Claude Desktop extension: enter the token and the API address in the
extension's settings (Personal access token, BICon API address). Other
MCP clients: set
BICON_API_TOKENandBICON_API_URLin the server'senv(the card in the app shows the snippet).
Then load_portfolio and read_portfolio_context work without
arguments: the Composer reads the settings, initiatives, snapshots, skills,
capability map, saved portfolios and NIS2 registers with GET requests, builds
the same backup shape the app exports and runs it through the same sanitiser,
so every analysis answers exactly as with a file. A read is reused for five
minutes (refresh: true reads again). The API accepts a token only for GET
on those read routes; every write route, the member list, audit trails and
personal preferences answer 403 for a token. The token is sent only to the
configured https address and never appears in a tool result.
A file still works with or without a token, e.g. for the local demo mode (no cloud account), offline work or a frozen copy for a board pack.
Tools & resource
| Name | What it does |
|---|---|
resource initiative://schema / tool get_initiative_schema |
The field catalog: required fields, enum values, the four dimensions with their named sub-dimensions (EN/DE labels + help text, plus the wording the app uses in digital / innovation portfolios), the exact shape of every optional section, the EU-AI-Act vocabularies, and the handoff steps. Read this first. |
assemble_initiative |
Compact spec (metadata + named sub-ratings 0–100 + confidence per dimension + optional sections, optionally the organisation's context) → fully-formed initiative validated against the API contract (CreateInitiativeBody from @workspace/api-zod). Mints the initiative id and every nested row id (decision-log entries, status reports, milestones, risks, follow-ups, incidents — a client never invents ids; quality ratings are keyed by their factor; an id given to a milestone or risk is a label a follow-up's milestoneId / riskId can point at, and the link follows the minted id), derives the four dimension scores (the app's own scoring function), accepts dates as dd/mm/yyyy, dd.mm.yyyy or yyyy-mm-dd, returns {ok, initiative, derivedScores, warnings, errors, contextId}. Pass id (an existing initiative's) only to update that initiative. |
export_initiative_file |
Takes the same compact spec, assembles it and wraps the result in the app's single-initiative JSON envelope; returns {ok, filename, json, importInstructions, derivedScores, warnings}. There is one pipeline — a hand-edited initiative object is not an input, so client-supplied scores or unknown keys can never bypass assembly. |
read_portfolio_context |
Takes the organisation's portfolio-context file (see below), or, called without it while live access is set up, builds the same context from the app, and returns the interview plan for that organisation — its own labels, help texts and rating notes per sub-dimension, which sub-dimensions are switched off, its business units, categories, tags, skills (id + name), non-archived initiatives (id + name) and the capability map's capabilities (id, name, domain, importance, current → target maturity; context version 2), currency, discount rate, whether the EU-AI-Act module is on — plus a short contextId that stands in for the file in the two other tools. |
composer_version |
Returns {composerVersion, capabilities}. Every successful tool result also carries composerVersion. |
load_portfolio |
Without arguments and with live access set up: reads the portfolio from the app (source: "live", see above). Otherwise reads the organisation's full backup (Import/Export → Backup → Export, a bicon-portfolio-backup-YYYY-MM-DD.json, format version 10 or newer) from a local path (inline backup JSON only for small files). Either way it runs it through the app's own sanitiser, strips author fields, and returns a short portfolioId plus a summary (counts by status, business unit and driver, skills, capabilities, saved portfolios, snapshots, currency, budget cap, export date). |
query_initiatives |
Filters the loaded portfolio (status, business unit, category, driver, tags, saved portfolio, capability, skill, score ranges, overdue milestones / follow-ups, severe risks, quality gaps) and returns chosen columns, sorted, plus aggregates over the whole scope. At most 200 rows per call. |
portfolio_readings |
Computes portfolio readings with the app's own libs: KPIs, concentration bars and HHI, the seven operating-model readings, capability impact, the risk register, early-warning signals and Board Actions. |
rank_initiatives |
Runs the Prioritisation ranking and cut line (the organisation's rule book, budget envelope, exclusions and skill caps), with what-if inputs: cap, budget field, trade-off percent, skill FTE deltas, promoted / excluded ids, queue statuses, regulatory-first switch. |
initiative_detail |
One initiative in full (by id, externalId or name), with its derived bucket, risks, milestones, follow-ups, quality factors (with the gap flag), status reports, decision log and links. |
compare_snapshots |
The backup's state ("now") against a snapshot, or two snapshots; without from, the newest snapshot before to: the four Steering KPIs with direction, counts by status, budget sum, initiatives added, left (retired, archived, deleted, out of the filter) or changed (status, scores beyond a threshold, budget, driver, business unit), and how the risk register moved. Initiatives match by id, else by a unique name. |
board_slices |
The data of the Board Memo's chapters from the functions the memo and pack use: KPIs since the baseline snapshot, capacity (cut line, parked by reason, must-do block), milestones (missed, next 90 days), risks (heat map, top severe, issues and rises since the baseline), quality gaps (top 10, per factor), capability impact. Raw values, for the assistant to write a memo section, a committee note or slides. |
skill_allocation |
Per skill (all, or the ones named): FTE cap against pipeline demand, run FTE of systems in production and the baseline cut line's funded use; every initiative drawing on it (FTE, build or run, funded or parked and why: budget, a skill cap, a dependency, excluded); the Roadmap's monthly demand (24 months by default, up to 48; run teams open-ended only with includeRunTeams, off by default as on the page) with the months over cap and who makes up the peak; what-ifs with FTE deltas or excluded initiatives. |
capability_allocation |
Per capability of the map (all, the ones named, or one domain): current, projected and target maturity, gap, coverage, concentration and attributed spend by the Capabilities page's rules; every linked initiative (status, kind, the level it brings, planned quarter, spend, funded or parked in the baseline cut line), with atRisk when the projection needs parked pipeline work; the maturity path by quarter; what-ifs with excluded initiatives or another budget cap (which capabilities fall back, which gaps open). |
get_analysis_template |
The recipe of a ready-made analysis by key: board_briefing, budget_what_if, skill_bottlenecks, capability_gaps, risk_review, since_snapshot, initiative_brief. The same recipes are listed as prompts ("BICon: …" in the client's prompt menu) and offered as nextSteps after load_portfolio. |
The portfolio context — how the Composer learns an organisation's settings
Without live access the Composer cannot see how an organisation configured
its portfolio. The app therefore exports
a small portfolio-context JSON (Import/Export → the AI-assistant card →
Download portfolio context): the active portfolio mode, which evaluation
sliders are switched off, the organisation's own slider wording and rating
notes, business units, categories, tags, the skill roster and the live
initiatives (id + name), currency, discount rate and the AI-Act module switch.
The user hands that file to the assistant at the start; the assistant calls
read_portfolio_context once and then passes the returned contextId
(ctx_<16 hex>, a content hash — or the whole file again) as context to
assemble_initiative / export_initiative_file, so a 5–40 KB document is
not re-emitted three times per initiative. The id resolves against a
per-process content cache; an unknown id (server restarted) is a clear error
naming the fix, never a wrong answer. Effects:
- the interview uses the organisation's wording (org label › mode overlay › base) and skips switched-off sub-dimensions;
- switched-off sub-dimensions are optional in the spec, stored as 0 (the app's
blank default — a value sent anyway is zeroed with a warning) and
excluded from the dimension score — the app's own derivation, so the
score does not change on the first save in Evaluate; a dimension with every
sub-dimension off needs only
{ confidence }; businessUnitandaiCategorymust be on the organisation's lists (no inventing — matched case-insensitively and normalised to the organisation's spelling; new ones are created in the app's Settings);dependsOn,requiredSkills[].skillId,capabilityImpacts[].capabilityIdand an updateidmust be ids that exist (any id format; Retired initiatives count, archived ones do not; a capability, never a domain). A version-1 context file (before 2026-10-15) carries no capabilities: links are refused with a request to download the file again rather than guessed at;- ratings must be on the organisation's slider step (Settings › Slider granularity: 5, 10, 20 or 25) — the plan states it, a value off the grid is rejected with the step in the message (files exported before 2026-08-21 carry no step and are not checked);
- every EU-AI-Act field the app strips is warned about while the organisation's AI-Act module is off; the export file defaults to the context's mode and language; a file newer than the Composer knows is flagged.
Without the file everything falls back to the built-in catalog: business unit and category are free text, dependency / update ids must at least be UUID-shaped (zod's rule, the same the API uses), and scores are derived over all 30 sub-dimensions. Export the file again after changing settings — the plan reports its export date.
How validation works (and why it lives at the wire)
The MCP SDK validates every call with the registered schema and hands the
handler the parsed value — whatever the schema strips, the server never sees.
So the spec schema is registered as a full strict object, with every
optional section a deep-strict copy of the API contract: an unknown key
anywhere is rejected by the SDK with its exact path
(aiAct: Unrecognized key: "literacy"), enum values, dates
(dd/mm/yyyy, dd.mm.yyyy or yyyy-mm-dd — real calendar dates, normalised to
yyyy-mm-dd) and blank names are caught with field paths, and the advertised JSON Schema
(additionalProperties: false, no $ref pointers) means what it says. A
section may also be sent as a JSON string (clients working from a stale
tool descriptor did that); it is parsed and validated identically. What a JSON
Schema cannot express — the 30 named ratings, the AI-Act controlled
vocabularies (aiActVocabularies in the descriptor; the app drops unknown
obligation keys and never shows unknown artifact keys), the score derivation —
is checked in the assembler, which reports all problems of a call at once
with the allowed values in the message (id shapes included). Row ids of
decision-log entries, status reports, milestones, risks, follow-ups and
incidents are minted by the Composer — a client-supplied UUID is kept, anything
else replaced — because the app keys those rows per initiative and a re-used id
from another initiative is exactly what collided on import once. A follow-up
links a milestone or risk by the id the spec gave that row (any label, "m1"),
and the link is rewritten to the minted id; a label that names no row, or two
rows, is an error, since the app would clear such a link on save without a
word.
Errors the SDK raises before a handler runs (Input validation error: …) carry
no composerVersion — that is normal. A successful result without it means an
old build is answering (see next section).
Stale instances (reinstall is not enough — quit the app)
Claude Desktop runs an extension in two places: a chat-UI instance, which
every reinstall restarts, and a session-facing instance
(LocalMcpServerManager in Desktop's main.log) that serves Claude Code,
Cowork and remote claude.ai chats reaching the device. The session-facing
instance is started once at app launch and is only replaced on a full app
quit — reinstalling or disabling/enabling the extension leaves it running
the old code. Observed on 2026-08-18: five reinstalls, the chat-UI copy was
current every time, and every session still got the original build.
Tell: a successful tool result without composerVersion, or
composer_version missing from the tool list. Fix: install the new .mcpb,
then quit Claude Desktop completely (tray icon → Quit — closing the window
is not enough), reopen, and check with composer_version.
One source for the domain
The Composer imports the app's own domain leaf, @workspace/initiative-model
(types and value lists incl. the AI-Act vocabularies, the score derivation, the
portfolio-mode wording overlays, the backup-format version) — the same package
the web app renders and validates with — and derives its enum lists from the
generated API contract. The 30 sub-dimension keys are the shared leaf's too;
the only hand-listed part is their base wording, and catalog-drift.test.ts
pins the keys to the contract in both directions. server.test.ts drives the real server through
the real SDK client over an in-memory transport, so what is asserted is what a
client sees.
Portfolio analysis — read-only, from the backup or live
The analysis tools answer questions the app's pages do not ask directly
("which Pilot initiatives in Finance lack a risk owner?", "what drops below the
cut line if the budget shrinks 15 %?"). They compute with the same rules the
app uses: the analysis libs live in @workspace/initiative-model and both the
app and this server import them, so a number here matches the page.
- Input is the full backup file, read from disk, or the live portfolio read with the person's read-only token (see Live access). Nothing is written anywhere by the server.
- Privacy: the AI client sees what the tools return, i.e. the portfolio's
data. Load a backup only into a client your organisation allows for that
data. The app's author stamps (
createdBy,updatedBy,recordedBy,scoredBy,checkedBy) are removed on load; names typed into the data stay (risk owners, follow-up assignee names, status-report authors, decision owners). Member ids are not returned. - Size limits: at most 200 rows per call and about 60 KB per answer; a larger result is cut (rows first, then long texts and lists; risk heat-map grids are never cut) and says so.
- Freshness: the data is as of the backup's export date, or the read time
when live, which every summary states (
exportedAt,source). Overdue and due-soon figures are evaluated on the day of the call (evaluatedAt). A backup also names the saved portfolio the exporting user's pages showed (activeSavedPortfolio). Export a new backup, or callload_portfoliowithrefresh: true, for newer data. - Loaded portfolios live in memory for the session only.
Install for users
Claude Desktop — the extension (recommended, no Node needed)
Download bicon-composer.mcpb from the BICon app (Import/Export → Set
up initiatives with an AI assistant, or directly at
https://www.bicon.digital/downloads/bicon-composer.mcpb) and open it —
double-click, or Claude Desktop → Settings → Extensions → Install. Claude
Desktop runs the server on its own built-in Node runtime, so there is nothing
else to install and no configuration file to edit. Then quit Claude Desktop
completely and reopen (see Stale instances), start a new chat and ask:
"Use the BICon Composer & Analyst to help me set up a new initiative."
Why the extension is primary: current Claude Desktop builds manage local MCP
servers as Desktop Extensions and treat claude_desktop_config.json as their
own preferences store — a hand-pasted mcpServers block there is silently
overwritten. There is no supported config-file route for Claude Desktop.
Other MCP clients — the npm package
@bicon/mcp-composer on npm is a single self-contained bundle whose only
runtime dependency is the MCP SDK. Any MCP-capable client with Node ≥ 20 can
run it; for a client that reads a mcpServers config, add this and restart
the client:
{
"mcpServers": {
"bicon-composer": {
"command": "npx",
"args": ["-y", "@bicon/mcp-composer@latest"]
}
}
}
@latest matters: an unpinned npx spec keeps serving whatever it cached
first. Check what you got with the composer_version tool — the registry
version and the extension version are released together (see Publishing);
if npm is behind, use the extension.
Prerequisite: Node.js ≥ 20 on the same operating system as the client.
On Windows with Node only inside WSL, launch the server through WSL:
"command": "wsl.exe", "args": ["-d", "Ubuntu", "--", "/path/to/npx", "-y", "@bicon/mcp-composer@latest"] (replace /path/to/npx with the output of
which npx in WSL). Restart the client afterwards.
Build & run from source (contributors)
pnpm --filter @bicon/mcp-composer run build # → dist/index.mjs (npm bundle) + dist/mcpb/composer-<v>.mjs (extension bundle)
pnpm --filter @bicon/mcp-composer run test # vitest, incl. the SDK-boundary suite (builds the bundles itself)
pnpm --filter @bicon/mcp-composer run build:mcpb # → dist/bicon-composer.mcpb, copied to the web app's public/downloads
node lib/integrations/mcp/dist/index.mjs # stdio server (used by a client, not by hand)
For a client that reads a mcpServers config, point it at the local build
with an absolute path ("command": "node", "args": ["/ABSOLUTE/PATH/TO/lib/integrations/mcp/dist/index.mjs"];
on Windows with the repo in WSL, run through wsl.exe with the WSL node).
For Claude Desktop, build and install the extension instead.
build:mcpb stages the manifest (version, entry point and launch args written
from package.json — the checked-in mcpb/manifest.json carries
placeholders), adds the single self-contained bundle, and — before zipping —
boots the staged server and drives it through the protocol: initialize
(version), tools/list (five tools, no $ref), composer_version,
resources/list, and an assemble_initiative call with an unknown AI-Act key
that must be rejected by name. It then copies the .mcpb to
artifacts/bicon-portfolio/public/downloads/ and writes
src/lib/composer-extension.json (version + path), which the Import/Export
card imports. Requires python3 for the zip container.
Using it (the interview → import flow)
- (Recommended) In the app, Import/Export → Download portfolio context, and give that file to Claude first — it then interviews with your organisation's own wording, skips switched-off sliders and only accepts your business units, categories, skills and initiatives.
- Ask Claude: "Help me set up a new initiative in BICon." It reads
initiative://schema(and your context) and interviews you — metadata first, then the sub-dimensions with the app's help text, then a confidence per dimension. Dates are dd/mm/yyyy in conversation. - Claude calls
assemble_initiativeand shows you the derived scores and any warnings as a sanity check (fix and re-run if anything looks off). - Claude calls
export_initiative_filewith the same spec → save the returned JSON under the suggested filename (initiative-<name>-<date>.json). To update an existing initiative, name it — Claude passes its id from the context and the app offers "Update"; a re-export without the id is recognised by name and offered as an update too. - In the app (signed in to the target organisation): if the initiative carries
EU-AI-Act data, make sure the organisation's EU-AI-Act module is switched
on (Settings › AI Act — the app strips AI-Act fields on import while it is
off; the file's
sourceModeis informational and cannot override that). Then Import/Export → Single initiative card → drop the file → the preview should show 0 warnings → Add as new (or Update, which keeps the existing initiative's id, creation date and links) → Confirm. - The initiative appears in the Inventory with exactly the scores Claude reported.
Publishing (maintainers)
Release = extension + npm together, from one version, done by two GitHub
Actions workflows (docs/composer-release-ci-concept-2026-10-16.md):
- Bump — Actions → Composer bump → Run workflow on
devwithpatch | minor | major(the button exists oncemaincarries the workflow file; GitHub lists only default-branch workflows). It runsnpm version(package.json is the ONLY place the version is written), the package tests,build:mcpb(bundles, ship-gate smoke, writes the.mcpbandcomposer-extension.jsoninto the web app) and the app'scomposer-download.test.ts, then pushescomposer/vX.Y.Zwith those three files. Open its PR intodevyourself (the run summary links the compare page); a PR opened by the Actions token would get no CI. - Merge the bump PR into
dev, then releasedev → mainas usual. - Publish — on the push to
main, Composer publish compares package.json with the registry; when it is newer, it runs the package tests,check:mcpb(rebuilds and proves the served download is the build of this source),npm publishvia npm trusted publishing (GitHub OIDC, no token in the repo; provenance comes with it once the repository is public) andpublish-smoke.mjs, which fetchesnpx -y @bicon/mcp-composer@<version>from the registry and requiresinitializeandcomposer_versionto answer with the new version.
One-time setting on npmjs.com (package → Settings → Trusted publisher):
GitHub Actions, repository volkmarritter/ai-portfolio-steering-saas,
workflow composer-publish.yml. If the form asks which actions the publisher
may take, allow direct npm publish (the workflow does not stage releases).
package.json names the same repository in repository.url, which npm
compares with the one the workflow runs in. A manual run of Composer publish is a
--dry-run unless the box is unticked, and a real publish runs only from
main.
check:mcpb compares the served download with a fresh build byte for byte,
so any change that alters the bundle after the last bump (Composer source, a
bump of the MCP SDK or zod in the lockfile) makes the publish fail until the
next Composer bump rebuilds the download. CI runs the same gate on every PR
into main (npm view against the registry, as the publish does): a version
ahead of the registry runs check:mcpb, so a release that bumps it shows a
stale download before the merge (run Composer bump once more, merge it into
dev, and the release PR goes green); a version behind the registry is red as
the publish would be; a version the registry already has skips the check, and a
PR that changes the served .mcpb or composer-extension.json at such a
version is red (npm cannot take that version again, so the download and the npm
package would differ): bump instead. So a green release PR means the publish on
main either skips or is the build of the source main carries.
When Composer publish is red on main, read the run: "behind" or a drift
failure mean bump again and release; "npm view failed" or "not a plain semver"
come from reading the registry, so re-run the failed job once the registry
answers (a bump does not help); a failed npm publish step itself (npm
outage, trusted publisher not yet configured on npmjs.com) is re-run from the
failed run ("Re-run failed jobs", same commit, the gate evaluates again) or by
dispatching Composer publish from main with dry_run unticked. Nothing
re-triggers it on its own, since later releases without a bump do not change
package.json. Composer bump runs from dev only. A run that fails with "branch composer/vX.Y.Z
already exists" met an earlier bump to the same version whose PR is still open
or was closed without merging: merge it, or delete that branch and run again.
Fallback by hand, if Actions is down:
cd lib/integrations/mcp
npm version patch|minor --no-git-tag-version
pnpm run test
pnpm run build:mcpb
npm login # once, as the BICon npm account (business identity, 2FA on)
npm publish # prepack builds; publishConfig.access is public
node publish-smoke.mjs <version> # fetches from the registry in an empty temp dir
Then commit package.json, the .mcpb and composer-extension.json together.
When that version later reaches main, Composer publish sees it on the
registry and skips; a hand-published version higher than main carries makes
the workflow fail ("behind") until a bump at least as high lands.
The bundle inlines zod, @workspace/api-zod and
@workspace/initiative-model (workspace-only packages the registry cannot
resolve), so what ships is dist/index.mjs + this README with
@modelcontextprotocol/sdk as the sole runtime dependency —
publish-shape.test.ts guards exactly that.
Not in scope (Phase 2)
No authentication, no live POST /initiatives, no live read of the API (the
analysis tools read a backup file instead), no hosted/HTTP transport. Those require an API-key auth path in the API server that
doesn't exist yet — deliberately deferred to a separate, security-reviewed
phase after the production Clerk split.