Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

mcpx feature↔integration-test inventory (for #1978)

Enumerated on current main at 732ca26d (2026-10-30) by executing the registries — api.Ops(), cli.Commands(), settings.Registry() — not by grep. Generator (throwaway, not committed): a go run harness in the module root; counts below are its output. Supersedes the issue-body table (53 ops / 152 settings / 209 e2e tests at 05c78b2).

Refreshed 2026-11-11 at 2b3db37221 (task 14824) by re-executing the same registries; the tables below are that run’s output. The feature-coverage guard this inventory specified is now landed (see the closing sections): the counts are re-derivable at any time from the guard’s own enumeration (requiredFeatures() in internal/e2e/feature_coverage_guard_test.go).

Headline counts

SurfaceCountSource
/v1 ops87api.Ops() (internal/api/ops*.go: literal + proto/consumer/exec/settings/resolve/secrets)
CLI commands72cli.Commands() = hand-written + generated (internal/cli/manual.go:43); the guard’s required set adds the 6 alias-only App.Handlers() keys for 78
Settings238settings.Registry() (internal/settings/registry.go:15)
Plugin test files3plugin/opencode/mcpx/*.test.ts (ceiling, instructions, session-created)
e2e Test* funcs377internal/e2e/*_test.go (including the coverage guard’s own tests)

The issue’s stale row is confirmed stale: CLI commands are enumerable — cli.Commands() for help/man/completion and the runtime dispatch table (&cli.App{}).Handlers() (internal/cli/dispatch.go:92).

Ops (87)

tool = MCP tool name (or — when NoTool); covered = hand-written tool in CoveredBy. S marks the single streaming op (out of guard scope for the MCP parity test).

OpRouteToolS
adapters_addPOST /v1/adaptersmcpx_adapters_add
adapters_removeDELETE /v1/adapters/{name}mcpx_adapters_remove
artifact_deleteDELETE /v1/artifacts/{id}mcpx_artifact_delete
artifact_getGET /v1/artifacts/{id}mcpx_artifact_get
artifact_putPOST /v1/artifactsmcpx_artifact_put
artifacts_listGET /v1/artifactsmcpx_artifacts_list
ask_abandonPOST /v1/ask/{id}/abandonmcpx_ask_abandon
ask_answersPOST /v1/ask/{id}/answersmcpx_ask_answers
ask_beginPOST /v1/askmcpx_ask_begin
ask_pollGET /v1/ask/{id}mcpx_ask_poll
authz_decisionsGET /v1/authz/decisionsmcpx_authz_decisions
authz_decisions_clearDELETE /v1/authz/decisionsmcpx_authz_decisions_clear
batchPOST /v1/batchmcpx_batch (via mcpx_batch)
callPOST /v1/callmcpx_call (via mcpx_call)
call_pathPOST /v1/call/{server}/{tool}mcpx_call (via mcpx_call)
catalogGET /v1/catalogmcpx_catalog (via mcpx_catalog)
catalog_historyGET /v1/catalog/historymcpx_catalog_history
chat_completionsPOST /v1/chat/completionsmcpx_chat_completions
client_moduleGET /v1/client.tsmcpx_client_module
completePOST /v1/completemcpx_complete
daemon_restartPOST /v1/daemon/restartmcpx_daemon_restart
dashboardGET /v1/dashboardmcpx_dashboard
diagnosePOST /v1/diagnosemcpx_diagnose
elicit_answerPOST /v1/elicit/{id}/{action}mcpx_elicit_answer
elicit_getGET /v1/elicit/{id}mcpx_elicit_get
elicit_listGET /v1/elicitmcpx_elicit_list
embeddingsPOST /v1/embeddingsmcpx_embeddings
embeddings_exportGET /v1/embeddings/exportmcpx_embeddings_export
embeddings_importPOST /v1/embeddings/importmcpx_embeddings_import
eventsGET /v1/eventsmcpx_eventsS
execPOST /v1/execmcpx_exec (via mcpx_exec)
feedbackPOST /v1/feedbackmcpx_feedback
globalsGET /v1/globals.d.tsmcpx_globals
healthGET /v1/healthmcpx_health
intentPOST /v1/intentmcpx_intent
interactions_getGET /v1/interactions/{id}mcpx_interactions_get
interactions_listGET /v1/interactionsmcpx_interactions_list
log_queryGET /v1/logmcpx_log_query
log_recordPOST /v1/logmcpx_log_record
metrics_tokensGET /v1/metrics/tokensmcpx_metrics_tokens
metrics_toolsGET /v1/metrics/toolsmcpx_metrics_tools
namespacesGET /v1/namespacesmcpx_namespaces (via mcpx_namespaces)
openapiGET /v1/openapi.jsonmcpx_openapi
preflightPOST /v1/preflightmcpx_preflight
prompt_getPOST /v1/promptmcpx_prompt_get
promptsGET /v1/promptsmcpx_prompts
protocolGET /v1/protocolmcpx_protocol
recipe_getGET /v1/recipes/{name}mcpx_recipe_get
recipe_runPOST /v1/recipes/{name}/runmcpx_recipe_run
recipe_savePOST /v1/recipes/{name}mcpx_recipe_save
recipes_listGET /v1/recipesmcpx_recipes_list
refreshPOST /v1/refreshmcpx_refresh
registry_searchGET /v1/registry/searchmcpx_registry_search
reloadPOST /v1/reloadmcpx_reload
resolveGET /v1/resolvemcpx_resolve
resource_readPOST /v1/resourcemcpx_resource_read
resource_templatesGET /v1/resource-templatesmcpx_resource_templates
resourcesGET /v1/resourcesmcpx_resources
restartPOST /v1/restartmcpx_restart
searchGET /v1/searchmcpx_search (via mcpx_search)
secret_request_declineDELETE /v1/secret-requests/{id}mcpx_secret_request_decline
secret_request_getGET /v1/secret-requests/{id}mcpx_secret_request_get
secret_requests_listGET /v1/secret-requestsmcpx_secret_requests_list
secrets_listGET /v1/secretsmcpx_secrets_list
secrets_setPUT /v1/secrets/{name}—
secrets_unsetDELETE /v1/secrets/{name}mcpx_secrets_unset
servers_addPOST /v1/serversmcpx_servers_add
servers_getGET /v1/servers/{name}mcpx_servers_get
servers_listGET /v1/serversmcpx_servers_list
servers_removeDELETE /v1/servers/{name}mcpx_servers_remove
session_releasePOST /v1/session/releasemcpx_session_release
sessions_readGET /v1/sessionsmcpx_sessions_read
settings_getGET /v1/settings/{path}mcpx_settings_get
settings_listGET /v1/settingsmcpx_settings_list
settings_setPUT /v1/settings/{path}mcpx_settings_set
settings_unsetDELETE /v1/settings/{path}mcpx_settings_unset
shutdownPOST /v1/shutdownmcpx_shutdown
stats_queryGET /v1/statsmcpx_stats_query
statusGET /v1/statusmcpx_status (via mcpx_status)
task_cancelPOST /v1/tasks/{id}/cancelmcpx_task_cancel
task_getGET /v1/tasks/{id}mcpx_task_get
task_resultGET /v1/tasks/{id}/resultmcpx_task_result
tasks_listGET /v1/tasksmcpx_tasks_list
tool_invokePOST /v1/tools/{tool}mcpx_tool_invoke
toolsGET /v1/toolsmcpx_tools
typesGET /v1/typesmcpx_types (via mcpx_types)
writes_clearPOST /v1/writes/{server}/clearmcpx_writes_clear

CLI commands (72), by group

GroupCommands
configurationconfig, settings, servers, secrets, init, help, man, completion, adapter, plugin, registry, api
daemonstatus, cache, daemons, refresh, reload, upgrade, restart, stop, supervise, daemon, serve, stdio-proxy
discoveryls (list,namespaces), catalog, types, search, call, batch, client, schema, prompts, resources, openapi
inspectiondiagnose, elicit, doctor, hook, tui, explore, dashboard, interactions, log (logs), stats
operationsartifact (artifacts), ask, authz, complete, events, globals, health, history, metrics, preflight, protocol, resolve, session, sessions, task (tasks), tool, tools, writes
runningrun, exec, scripts, skills, recipes, prompt, proxy, embeddings, feedback

Settings (238)

Full list is settings.Registry() output; by prefix:

PrefixCount
artifacts12
autonomy1
autostart7
catalog4
completion3
daemon23
deps4
diagnose2
doctor1
elicit7
embeddings5
events2
exec4
hooks3
http13
logging11
logstore2
mcp2
model8
output2
paths10
plugin13
plumbing8
policy1
pool7
preset1
presets1
prompt6
proto12
protoMessages3
protoTasks5
proxy1
recipes3
registry5
repair1
retention2
sampling1
script23
search2
serve1
session1
spec3
stats1
tasks3
transport5
upstream3

Plugin (plugin/opencode/mcpx/)

FileWhat it coversRun in CI?
ceiling.test.tsceiling behaviouryes — mcpx.yml runs bun test plugin/opencode/mcpx/ plugin/core/
instructions.test.tsplugin instructionsyes — same step
session-created.test.tssession-created hook behaviouryes — same step

The 2026-10-30 table’s daemon.test.ts / ops.test.ts no longer live in this directory. The plugin op surface itself (plugin/core/ops.gen.ts, generated from api.Ops()) is freshness-asserted by the coverage guard below, so a stale generated surface fails the e2e run.

What the existing guards cover — and the hole

GuardCoversDoes NOT assert
TestEveryDeclaredRouteAnswersOverTheSocket (e2e/v1ops_test.go:287)every op route answersthat any test exercises the op’s behaviour
TestEverySettingIsReachableOverV1 (e2e/settings_test.go:173)every setting reachablebehavioural exercise
TestEveryExecFlagChangesSomething (e2e/e2e_test.go:2958)every exec flag changes somethingper-op exercise
TestEveryNonStreamingOpIsReachableAsAnMCPTool (api/parity_test.go:96)86/87 ops as tools (streaming excluded)exercise
TestEverySettingIsReadSomewhere (settings/consumed_test.go:87)every setting readexercise
TestNoPackageRedeclaresADefault (defaults/guard_test.go:93)default uniquenessn/a
bun test step (mcpx.yml)plugin tests run at allper-hook exercise
Feature-coverage guard (#1978, landed 2026-11-11)per-feature behavioural exercise, below—

The hole is closed. The runtime ledger (Approach C, issue criterion 2) records the exercised-by mapping at runtime — the e2e harness logs the resolved op/command/setting per test, TestMain writes {test, kind, name} JSON lines — and the guard now compares that ledger against the registries.

The landed guard (Approach C, implemented 2026-11-11, task 14824)

  • Enumerate from: api.Ops(), cli.Commands() (+ App.Handlers() keys for aliases), settings.Registry() — 403 required features at refresh time (87 ops, 78 cli names, 238 settings) — and the plugin op surface (plugin/core/ops.gen.ts, freshness-asserted in the same evaluation: it must name exactly the api.Ops() set).
  • Where it evaluates: guardedMain in internal/e2e/e2e_test.go, after m.Run(), on a full unfiltered green run (a -run-filtered or failing run’s ledger is partial by construction and is not judged). Implementation: internal/e2e/feature_coverage_guard_test.go (requiredFeatures, evaluateFeatureCoverage, featureCoverageGuardViolations), reusing the existing coverageViolations and ledger — no second record system.
  • Exemptions: internal/e2e/feature_coverage_exemptions.txt (checked in): one line per feature with a one-line reason naming its burn-down issue. Empty reasons, exemptions for unknown features, and exemptions for features that have since gained a ledger row are all violations — burn-down is self-verifying. TestFeatureCoverageGuardAgainstRecordedLedger re-evaluates any recorded ledger (set MCPX_FEATURE_COVERAGE_EVALUATE_LEDGER) without a 25-minute suite run.
  • Measured state at landing (full-suite ledger on 2b3db37221): 152 of 403 features covered by a ledger row; 251 exempt — ops 9 (#8466), CLI 29 (#8460–#8465), settings 213 (#8467–#8474). The fabricated-gap tests (TestFeatureCoverageGuardFailsForFabricatedGap, TestFeatureCoverageGuardFailsForFabricatedRegistryEntry) demonstrate the failure shape; the recorded-ledger evaluation demonstrates zero violations on today’s coverage.
  • Caveat: the e2e suite itself is red on main for four pre-existing failures (#8457), so until that lands the guard’s guardedMain evaluation is armed but not reached on red runs; the recorded-ledger evaluation above is the current evidence.