hoi4-agent-tools 0.2.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -118
- package/README.md +35 -127
- package/SECURITY.md +5 -7
- package/dist/bin/http.js +0 -1
- package/dist/bin/setup.js +141 -92
- package/dist/bin/stdio.js +0 -1
- package/dist/hoi4_agent_tools/core/artifacts.js +0 -1
- package/dist/hoi4_agent_tools/core/canonical.js +0 -1
- package/dist/hoi4_agent_tools/core/configuration.js +28 -28
- package/dist/hoi4_agent_tools/core/diagnostic-collector.js +0 -1
- package/dist/hoi4_agent_tools/core/diagnostics.js +0 -1
- package/dist/hoi4_agent_tools/core/diff.js +0 -1
- package/dist/hoi4_agent_tools/core/engine.js +6 -21
- package/dist/hoi4_agent_tools/core/image-diff.js +0 -1
- package/dist/hoi4_agent_tools/core/index.js +0 -1
- package/dist/hoi4_agent_tools/core/render-budget.js +0 -1
- package/dist/hoi4_agent_tools/core/result.js +0 -1
- package/dist/hoi4_agent_tools/core/scanner.js +0 -1
- package/dist/hoi4_agent_tools/core/server-state.js +0 -1
- package/dist/hoi4_agent_tools/core/source/encoding.js +0 -1
- package/dist/hoi4_agent_tools/core/source/index.js +0 -1
- package/dist/hoi4_agent_tools/core/source/lexer.js +0 -1
- package/dist/hoi4_agent_tools/core/source/limits.js +0 -1
- package/dist/hoi4_agent_tools/core/source/localisation.js +0 -1
- package/dist/hoi4_agent_tools/core/source/parser.js +0 -1
- package/dist/hoi4_agent_tools/core/source/rewrite.js +0 -1
- package/dist/hoi4_agent_tools/core/svg-text.js +0 -1
- package/dist/hoi4_agent_tools/core/transaction-limits.js +0 -1
- package/dist/hoi4_agent_tools/core/transactions.js +2 -30
- package/dist/hoi4_agent_tools/core/workspace.js +112 -396
- package/dist/hoi4_agent_tools/focus/compiler.js +0 -1
- package/dist/hoi4_agent_tools/focus/continuous-render.js +0 -1
- package/dist/hoi4_agent_tools/focus/drift.js +0 -1
- package/dist/hoi4_agent_tools/focus/geometry.js +0 -1
- package/dist/hoi4_agent_tools/focus/importer.js +0 -1
- package/dist/hoi4_agent_tools/focus/index.js +0 -1
- package/dist/hoi4_agent_tools/focus/layout.js +0 -1
- package/dist/hoi4_agent_tools/focus/limits.js +0 -1
- package/dist/hoi4_agent_tools/focus/lint.js +0 -1
- package/dist/hoi4_agent_tools/focus/model.js +0 -1
- package/dist/hoi4_agent_tools/focus/native-effects.js +0 -1
- package/dist/hoi4_agent_tools/focus/planning.js +0 -1
- package/dist/hoi4_agent_tools/focus/presentation.js +0 -1
- package/dist/hoi4_agent_tools/focus/render.js +0 -1
- package/dist/hoi4_agent_tools/focus/service.js +7 -8
- package/dist/hoi4_agent_tools/focus/source-update.js +1 -2
- package/dist/hoi4_agent_tools/gui/animation-manifest.js +0 -1
- package/dist/hoi4_agent_tools/gui/assets.js +0 -1
- package/dist/hoi4_agent_tools/gui/dds.js +0 -1
- package/dist/hoi4_agent_tools/gui/helpers.js +1 -2
- package/dist/hoi4_agent_tools/gui/index.js +0 -1
- package/dist/hoi4_agent_tools/gui/layout.js +0 -1
- package/dist/hoi4_agent_tools/gui/limits.js +0 -1
- package/dist/hoi4_agent_tools/gui/renderer.js +0 -1
- package/dist/hoi4_agent_tools/gui/scenario.js +0 -1
- package/dist/hoi4_agent_tools/gui/source-graph.js +0 -1
- package/dist/hoi4_agent_tools/gui/source-patch.js +1 -2
- package/dist/hoi4_agent_tools/gui/studio.js +247 -104
- package/dist/hoi4_agent_tools/gui/tga.js +0 -1
- package/dist/hoi4_agent_tools/gui/types.js +0 -1
- package/dist/hoi4_agent_tools/gui/validators.js +0 -1
- package/dist/hoi4_agent_tools/map/bmp.js +0 -1
- package/dist/hoi4_agent_tools/map/diagnostic-limit.js +0 -1
- package/dist/hoi4_agent_tools/map/index.js +0 -1
- package/dist/hoi4_agent_tools/map/limits.js +2 -1
- package/dist/hoi4_agent_tools/map/model.js +0 -1
- package/dist/hoi4_agent_tools/map/operations.js +0 -1
- package/dist/hoi4_agent_tools/map/render.js +0 -1
- package/dist/hoi4_agent_tools/map/service.js +171 -33
- package/dist/hoi4_agent_tools/map/validation.js +0 -1
- package/dist/hoi4_agent_tools/mcp/resources/register.js +61 -187
- package/dist/hoi4_agent_tools/mcp/security/auth.js +1 -2
- package/dist/hoi4_agent_tools/mcp/server/base-tools.js +24 -750
- package/dist/hoi4_agent_tools/mcp/server/create.js +3 -12
- package/dist/hoi4_agent_tools/mcp/server/output-schemas.js +0 -71
- package/dist/hoi4_agent_tools/mcp/server/progress.js +0 -1
- package/dist/hoi4_agent_tools/mcp/server/result.js +24 -30
- package/dist/hoi4_agent_tools/mcp/server/transaction-execution.js +10 -14
- package/dist/hoi4_agent_tools/mcp/tools/focus.js +219 -275
- package/dist/hoi4_agent_tools/mcp/tools/gui.js +149 -250
- package/dist/hoi4_agent_tools/mcp/tools/map.js +256 -337
- package/dist/hoi4_agent_tools/mcp/tools/mods.js +54 -0
- package/dist/hoi4_agent_tools/mcp/transports/bounded-stdio.js +0 -1
- package/dist/hoi4_agent_tools/mcp/transports/event-store.js +0 -1
- package/dist/hoi4_agent_tools/mcp/transports/http.js +1 -12
- package/dist/hoi4_agent_tools/mcp/transports/protocol-gate.js +0 -1
- package/dist/hoi4_agent_tools/runtime.js +5 -2
- package/dist/hoi4_agent_tools/schemas/common.js +1 -2
- package/dist/hoi4_agent_tools/schemas/focus.js +0 -1
- package/dist/hoi4_agent_tools/schemas/map.js +0 -1
- package/dist/hoi4_agent_tools/schemas/transaction.js +0 -1
- package/dist/hoi4_agent_tools/version.js +1 -2
- package/docs/README.md +8 -21
- package/docs/development.md +22 -0
- package/docs/focus.md +40 -0
- package/docs/gui.md +37 -0
- package/docs/http.md +53 -0
- package/docs/map.md +39 -0
- package/docs/setup.md +39 -0
- package/package.json +10 -11
- package/server.json +3 -12
- package/dist/bin/http.d.ts +0 -3
- package/dist/bin/http.d.ts.map +0 -1
- package/dist/bin/http.js.map +0 -1
- package/dist/bin/setup.d.ts +0 -3
- package/dist/bin/setup.d.ts.map +0 -1
- package/dist/bin/setup.js.map +0 -1
- package/dist/bin/stdio.d.ts +0 -3
- package/dist/bin/stdio.d.ts.map +0 -1
- package/dist/bin/stdio.js.map +0 -1
- package/dist/hoi4_agent_tools/core/artifacts.d.ts +0 -117
- package/dist/hoi4_agent_tools/core/artifacts.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/core/artifacts.js.map +0 -1
- package/dist/hoi4_agent_tools/core/canonical.d.ts +0 -13
- package/dist/hoi4_agent_tools/core/canonical.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/core/canonical.js.map +0 -1
- package/dist/hoi4_agent_tools/core/configuration.d.ts +0 -138
- package/dist/hoi4_agent_tools/core/configuration.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/core/configuration.js.map +0 -1
- package/dist/hoi4_agent_tools/core/diagnostic-collector.d.ts +0 -18
- package/dist/hoi4_agent_tools/core/diagnostic-collector.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/core/diagnostic-collector.js.map +0 -1
- package/dist/hoi4_agent_tools/core/diagnostics.d.ts +0 -26
- package/dist/hoi4_agent_tools/core/diagnostics.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/core/diagnostics.js.map +0 -1
- package/dist/hoi4_agent_tools/core/diff.d.ts +0 -22
- package/dist/hoi4_agent_tools/core/diff.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/core/diff.js.map +0 -1
- package/dist/hoi4_agent_tools/core/engine.d.ts +0 -57
- package/dist/hoi4_agent_tools/core/engine.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/core/engine.js.map +0 -1
- package/dist/hoi4_agent_tools/core/image-diff.d.ts +0 -14
- package/dist/hoi4_agent_tools/core/image-diff.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/core/image-diff.js.map +0 -1
- package/dist/hoi4_agent_tools/core/index.d.ts +0 -64
- package/dist/hoi4_agent_tools/core/index.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/core/index.js.map +0 -1
- package/dist/hoi4_agent_tools/core/index.public.d.ts +0 -16
- package/dist/hoi4_agent_tools/core/index.public.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/core/index.public.js +0 -16
- package/dist/hoi4_agent_tools/core/index.public.js.map +0 -1
- package/dist/hoi4_agent_tools/core/render-budget.d.ts +0 -51
- package/dist/hoi4_agent_tools/core/render-budget.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/core/render-budget.js.map +0 -1
- package/dist/hoi4_agent_tools/core/result.d.ts +0 -45
- package/dist/hoi4_agent_tools/core/result.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/core/result.js.map +0 -1
- package/dist/hoi4_agent_tools/core/scanner.d.ts +0 -28
- package/dist/hoi4_agent_tools/core/scanner.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/core/scanner.js.map +0 -1
- package/dist/hoi4_agent_tools/core/server-state.d.ts +0 -31
- package/dist/hoi4_agent_tools/core/server-state.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/core/server-state.js.map +0 -1
- package/dist/hoi4_agent_tools/core/source/encoding.d.ts +0 -10
- package/dist/hoi4_agent_tools/core/source/encoding.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/core/source/encoding.js.map +0 -1
- package/dist/hoi4_agent_tools/core/source/index.d.ts +0 -7
- package/dist/hoi4_agent_tools/core/source/index.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/core/source/index.js.map +0 -1
- package/dist/hoi4_agent_tools/core/source/lexer.d.ts +0 -30
- package/dist/hoi4_agent_tools/core/source/lexer.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/core/source/lexer.js.map +0 -1
- package/dist/hoi4_agent_tools/core/source/limits.d.ts +0 -21
- package/dist/hoi4_agent_tools/core/source/limits.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/core/source/limits.js.map +0 -1
- package/dist/hoi4_agent_tools/core/source/localisation.d.ts +0 -20
- package/dist/hoi4_agent_tools/core/source/localisation.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/core/source/localisation.js.map +0 -1
- package/dist/hoi4_agent_tools/core/source/parser.d.ts +0 -44
- package/dist/hoi4_agent_tools/core/source/parser.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/core/source/parser.js.map +0 -1
- package/dist/hoi4_agent_tools/core/source/rewrite.d.ts +0 -10
- package/dist/hoi4_agent_tools/core/source/rewrite.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/core/source/rewrite.js.map +0 -1
- package/dist/hoi4_agent_tools/core/svg-text.d.ts +0 -34
- package/dist/hoi4_agent_tools/core/svg-text.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/core/svg-text.js.map +0 -1
- package/dist/hoi4_agent_tools/core/transaction-limits.d.ts +0 -9
- package/dist/hoi4_agent_tools/core/transaction-limits.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/core/transaction-limits.js.map +0 -1
- package/dist/hoi4_agent_tools/core/transactions.d.ts +0 -164
- package/dist/hoi4_agent_tools/core/transactions.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/core/transactions.js.map +0 -1
- package/dist/hoi4_agent_tools/core/workspace.d.ts +0 -68
- package/dist/hoi4_agent_tools/core/workspace.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/core/workspace.js.map +0 -1
- package/dist/hoi4_agent_tools/focus/compiler.d.ts +0 -10
- package/dist/hoi4_agent_tools/focus/compiler.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/focus/compiler.js.map +0 -1
- package/dist/hoi4_agent_tools/focus/continuous-render.d.ts +0 -32
- package/dist/hoi4_agent_tools/focus/continuous-render.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/focus/continuous-render.js.map +0 -1
- package/dist/hoi4_agent_tools/focus/drift.d.ts +0 -22
- package/dist/hoi4_agent_tools/focus/drift.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/focus/drift.js.map +0 -1
- package/dist/hoi4_agent_tools/focus/geometry.d.ts +0 -17
- package/dist/hoi4_agent_tools/focus/geometry.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/focus/geometry.js.map +0 -1
- package/dist/hoi4_agent_tools/focus/importer.d.ts +0 -9
- package/dist/hoi4_agent_tools/focus/importer.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/focus/importer.js.map +0 -1
- package/dist/hoi4_agent_tools/focus/index.d.ts +0 -14
- package/dist/hoi4_agent_tools/focus/index.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/focus/index.js.map +0 -1
- package/dist/hoi4_agent_tools/focus/layout.d.ts +0 -5
- package/dist/hoi4_agent_tools/focus/layout.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/focus/layout.js.map +0 -1
- package/dist/hoi4_agent_tools/focus/limits.d.ts +0 -9
- package/dist/hoi4_agent_tools/focus/limits.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/focus/limits.js.map +0 -1
- package/dist/hoi4_agent_tools/focus/lint.d.ts +0 -14
- package/dist/hoi4_agent_tools/focus/lint.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/focus/lint.js.map +0 -1
- package/dist/hoi4_agent_tools/focus/model.d.ts +0 -307
- package/dist/hoi4_agent_tools/focus/model.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/focus/model.js.map +0 -1
- package/dist/hoi4_agent_tools/focus/native-effects.d.ts +0 -9
- package/dist/hoi4_agent_tools/focus/native-effects.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/focus/native-effects.js.map +0 -1
- package/dist/hoi4_agent_tools/focus/planning.d.ts +0 -15
- package/dist/hoi4_agent_tools/focus/planning.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/focus/planning.js.map +0 -1
- package/dist/hoi4_agent_tools/focus/presentation.d.ts +0 -24
- package/dist/hoi4_agent_tools/focus/presentation.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/focus/presentation.js.map +0 -1
- package/dist/hoi4_agent_tools/focus/render.d.ts +0 -39
- package/dist/hoi4_agent_tools/focus/render.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/focus/render.js.map +0 -1
- package/dist/hoi4_agent_tools/focus/service.d.ts +0 -82
- package/dist/hoi4_agent_tools/focus/service.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/focus/service.js.map +0 -1
- package/dist/hoi4_agent_tools/focus/source-update.d.ts +0 -6
- package/dist/hoi4_agent_tools/focus/source-update.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/focus/source-update.js.map +0 -1
- package/dist/hoi4_agent_tools/gui/animation-manifest.d.ts +0 -37
- package/dist/hoi4_agent_tools/gui/animation-manifest.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/gui/animation-manifest.js.map +0 -1
- package/dist/hoi4_agent_tools/gui/assets.d.ts +0 -71
- package/dist/hoi4_agent_tools/gui/assets.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/gui/assets.js.map +0 -1
- package/dist/hoi4_agent_tools/gui/dds.d.ts +0 -17
- package/dist/hoi4_agent_tools/gui/dds.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/gui/dds.js.map +0 -1
- package/dist/hoi4_agent_tools/gui/helpers.d.ts +0 -101
- package/dist/hoi4_agent_tools/gui/helpers.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/gui/helpers.js.map +0 -1
- package/dist/hoi4_agent_tools/gui/index.d.ts +0 -15
- package/dist/hoi4_agent_tools/gui/index.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/gui/index.js.map +0 -1
- package/dist/hoi4_agent_tools/gui/layout.d.ts +0 -6
- package/dist/hoi4_agent_tools/gui/layout.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/gui/layout.js.map +0 -1
- package/dist/hoi4_agent_tools/gui/limits.d.ts +0 -25
- package/dist/hoi4_agent_tools/gui/limits.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/gui/limits.js.map +0 -1
- package/dist/hoi4_agent_tools/gui/renderer.d.ts +0 -18
- package/dist/hoi4_agent_tools/gui/renderer.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/gui/renderer.js.map +0 -1
- package/dist/hoi4_agent_tools/gui/scenario.d.ts +0 -66
- package/dist/hoi4_agent_tools/gui/scenario.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/gui/scenario.js.map +0 -1
- package/dist/hoi4_agent_tools/gui/source-graph.d.ts +0 -7
- package/dist/hoi4_agent_tools/gui/source-graph.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/gui/source-graph.js.map +0 -1
- package/dist/hoi4_agent_tools/gui/source-patch.d.ts +0 -13
- package/dist/hoi4_agent_tools/gui/source-patch.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/gui/source-patch.js.map +0 -1
- package/dist/hoi4_agent_tools/gui/studio.d.ts +0 -86
- package/dist/hoi4_agent_tools/gui/studio.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/gui/studio.js.map +0 -1
- package/dist/hoi4_agent_tools/gui/tga.d.ts +0 -16
- package/dist/hoi4_agent_tools/gui/tga.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/gui/tga.js.map +0 -1
- package/dist/hoi4_agent_tools/gui/types.d.ts +0 -322
- package/dist/hoi4_agent_tools/gui/types.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/gui/types.js.map +0 -1
- package/dist/hoi4_agent_tools/gui/validators.d.ts +0 -8
- package/dist/hoi4_agent_tools/gui/validators.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/gui/validators.js.map +0 -1
- package/dist/hoi4_agent_tools/map/bmp.d.ts +0 -62
- package/dist/hoi4_agent_tools/map/bmp.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/map/bmp.js.map +0 -1
- package/dist/hoi4_agent_tools/map/diagnostic-limit.d.ts +0 -5
- package/dist/hoi4_agent_tools/map/diagnostic-limit.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/map/diagnostic-limit.js.map +0 -1
- package/dist/hoi4_agent_tools/map/index.d.ts +0 -8
- package/dist/hoi4_agent_tools/map/index.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/map/index.js.map +0 -1
- package/dist/hoi4_agent_tools/map/limits.d.ts +0 -13
- package/dist/hoi4_agent_tools/map/limits.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/map/limits.js.map +0 -1
- package/dist/hoi4_agent_tools/map/model.d.ts +0 -269
- package/dist/hoi4_agent_tools/map/model.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/map/model.js.map +0 -1
- package/dist/hoi4_agent_tools/map/operations.d.ts +0 -401
- package/dist/hoi4_agent_tools/map/operations.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/map/operations.js.map +0 -1
- package/dist/hoi4_agent_tools/map/render.d.ts +0 -90
- package/dist/hoi4_agent_tools/map/render.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/map/render.js.map +0 -1
- package/dist/hoi4_agent_tools/map/service.d.ts +0 -81
- package/dist/hoi4_agent_tools/map/service.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/map/service.js.map +0 -1
- package/dist/hoi4_agent_tools/map/validation.d.ts +0 -23
- package/dist/hoi4_agent_tools/map/validation.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/map/validation.js.map +0 -1
- package/dist/hoi4_agent_tools/mcp/prompts/register.d.ts +0 -4
- package/dist/hoi4_agent_tools/mcp/prompts/register.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/mcp/prompts/register.js +0 -72
- package/dist/hoi4_agent_tools/mcp/prompts/register.js.map +0 -1
- package/dist/hoi4_agent_tools/mcp/registry/metadata.d.ts +0 -9
- package/dist/hoi4_agent_tools/mcp/registry/metadata.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/mcp/registry/metadata.js +0 -10
- package/dist/hoi4_agent_tools/mcp/registry/metadata.js.map +0 -1
- package/dist/hoi4_agent_tools/mcp/resources/register.d.ts +0 -5
- package/dist/hoi4_agent_tools/mcp/resources/register.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/mcp/resources/register.js.map +0 -1
- package/dist/hoi4_agent_tools/mcp/security/auth.d.ts +0 -24
- package/dist/hoi4_agent_tools/mcp/security/auth.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/mcp/security/auth.js.map +0 -1
- package/dist/hoi4_agent_tools/mcp/server/base-tools.d.ts +0 -47
- package/dist/hoi4_agent_tools/mcp/server/base-tools.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/mcp/server/base-tools.js.map +0 -1
- package/dist/hoi4_agent_tools/mcp/server/create.d.ts +0 -5
- package/dist/hoi4_agent_tools/mcp/server/create.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/mcp/server/create.js.map +0 -1
- package/dist/hoi4_agent_tools/mcp/server/output-schemas.d.ts +0 -138
- package/dist/hoi4_agent_tools/mcp/server/output-schemas.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/mcp/server/output-schemas.js.map +0 -1
- package/dist/hoi4_agent_tools/mcp/server/progress.d.ts +0 -8
- package/dist/hoi4_agent_tools/mcp/server/progress.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/mcp/server/progress.js.map +0 -1
- package/dist/hoi4_agent_tools/mcp/server/result.d.ts +0 -232
- package/dist/hoi4_agent_tools/mcp/server/result.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/mcp/server/result.js.map +0 -1
- package/dist/hoi4_agent_tools/mcp/server/transaction-execution.d.ts +0 -31
- package/dist/hoi4_agent_tools/mcp/server/transaction-execution.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/mcp/server/transaction-execution.js.map +0 -1
- package/dist/hoi4_agent_tools/mcp/tools/focus.d.ts +0 -5
- package/dist/hoi4_agent_tools/mcp/tools/focus.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/mcp/tools/focus.js.map +0 -1
- package/dist/hoi4_agent_tools/mcp/tools/gui.d.ts +0 -117
- package/dist/hoi4_agent_tools/mcp/tools/gui.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/mcp/tools/gui.js.map +0 -1
- package/dist/hoi4_agent_tools/mcp/tools/map.d.ts +0 -5
- package/dist/hoi4_agent_tools/mcp/tools/map.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/mcp/tools/map.js.map +0 -1
- package/dist/hoi4_agent_tools/mcp/transports/bounded-stdio.d.ts +0 -58
- package/dist/hoi4_agent_tools/mcp/transports/bounded-stdio.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/mcp/transports/bounded-stdio.js.map +0 -1
- package/dist/hoi4_agent_tools/mcp/transports/event-store.d.ts +0 -26
- package/dist/hoi4_agent_tools/mcp/transports/event-store.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/mcp/transports/event-store.js.map +0 -1
- package/dist/hoi4_agent_tools/mcp/transports/http.d.ts +0 -28
- package/dist/hoi4_agent_tools/mcp/transports/http.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/mcp/transports/http.js.map +0 -1
- package/dist/hoi4_agent_tools/mcp/transports/protocol-gate.d.ts +0 -15
- package/dist/hoi4_agent_tools/mcp/transports/protocol-gate.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/mcp/transports/protocol-gate.js.map +0 -1
- package/dist/hoi4_agent_tools/runtime.d.ts +0 -4
- package/dist/hoi4_agent_tools/runtime.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/runtime.js.map +0 -1
- package/dist/hoi4_agent_tools/schemas/common.d.ts +0 -74
- package/dist/hoi4_agent_tools/schemas/common.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/schemas/common.js.map +0 -1
- package/dist/hoi4_agent_tools/schemas/focus.d.ts +0 -784
- package/dist/hoi4_agent_tools/schemas/focus.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/schemas/focus.js.map +0 -1
- package/dist/hoi4_agent_tools/schemas/index.d.ts +0 -5
- package/dist/hoi4_agent_tools/schemas/index.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/schemas/index.js +0 -5
- package/dist/hoi4_agent_tools/schemas/index.js.map +0 -1
- package/dist/hoi4_agent_tools/schemas/map.d.ts +0 -654
- package/dist/hoi4_agent_tools/schemas/map.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/schemas/map.js.map +0 -1
- package/dist/hoi4_agent_tools/schemas/transaction.d.ts +0 -259
- package/dist/hoi4_agent_tools/schemas/transaction.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/schemas/transaction.js.map +0 -1
- package/dist/hoi4_agent_tools/version.d.ts +0 -6
- package/dist/hoi4_agent_tools/version.d.ts.map +0 -1
- package/dist/hoi4_agent_tools/version.js.map +0 -1
- package/dist/index.d.ts +0 -3
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -3
- package/dist/index.js.map +0 -1
- package/docs/adr/0001-runtime-and-language.md +0 -16
- package/docs/adr/0002-lossless-source-model.md +0 -18
- package/docs/adr/0003-image-and-font-codecs.md +0 -18
- package/docs/adr/0004-focus-layout.md +0 -16
- package/docs/adr/0005-offline-rendering.md +0 -18
- package/docs/adr/0006-mcp-sdk-and-protocol.md +0 -16
- package/docs/adr/0007-storage-and-transactions.md +0 -24
- package/docs/adr/0008-test-strategy.md +0 -18
- package/docs/adr/0009-packaging-and-registry.md +0 -16
- package/docs/adr/0010-unsupported-and-refusal-policy.md +0 -18
- package/docs/adr/0011-http-security.md +0 -16
- package/docs/adr/0012-autonomous-rewrites.md +0 -55
- package/docs/adr/README.md +0 -14
- package/docs/agent-integration.md +0 -146
- package/docs/architecture.md +0 -76
- package/docs/artifacts.md +0 -136
- package/docs/compatibility.md +0 -33
- package/docs/completion-report.md +0 -122
- package/docs/configuration.md +0 -305
- package/docs/focus-workflow.md +0 -197
- package/docs/gui-workflow.md +0 -125
- package/docs/limitations.md +0 -32
- package/docs/map-workflow.md +0 -95
- package/docs/performance.md +0 -117
- package/docs/release.md +0 -222
- package/docs/research/mcp-2026-07-10.md +0 -52
- package/docs/research/source-ledger.md +0 -68
- package/docs/security.md +0 -145
- package/docs/self-hosting.md +0 -170
- package/docs/testing.md +0 -43
- package/docs/third-party-notices.md +0 -11
- package/docs/transactions.md +0 -180
- package/docs/troubleshooting.md +0 -54
- package/schemas/configuration.schema.json +0 -795
- package/schemas/continuous-focus-palette.schema.json +0 -325
- package/schemas/focus-plan.schema.json +0 -927
- package/schemas/focus-planning-sidecar.schema.json +0 -379
- package/schemas/gui-animation-source.schema.json +0 -176
- package/schemas/gui-helper.schema.json +0 -301
- package/schemas/gui-scenario.schema.json +0 -298
- package/schemas/map-operation.schema.json +0 -2284
- package/schemas/operation-result.schema.json +0 -344
- package/schemas/transaction-manifest.schema.json +0 -685
package/docs/release.md
DELETED
|
@@ -1,222 +0,0 @@
|
|
|
1
|
-
# Release and MCP Registry publication
|
|
2
|
-
|
|
3
|
-
Releases use strict stable Semantic Versioning and an immutable Git tag. Every public writer
|
|
4
|
-
re-queries both the direct tag and its optional annotated-tag peel immediately before the write.
|
|
5
|
-
The peeled commit must equal `GITHUB_SHA` and the commit recorded in the release artifact.
|
|
6
|
-
|
|
7
|
-
## Prerequisites
|
|
8
|
-
|
|
9
|
-
- a clean tested commit on `main`;
|
|
10
|
-
- package, server, source, schema, documentation, lockfile, and changelog versions synchronized;
|
|
11
|
-
- the public GitHub repository owned by the canonical `klimPaskov` account;
|
|
12
|
-
- GitHub release immutability enabled in repository settings before the first stable release;
|
|
13
|
-
- a public, pre-bootstrapped `ghcr.io/klimpaskov/hoi4-agent-tools` package;
|
|
14
|
-
- the npm namespace bootstrap completed and the trusted publisher configured;
|
|
15
|
-
- GitHub Actions OIDC available for ordinary npm and MCP Registry publication.
|
|
16
|
-
|
|
17
|
-
The release workflow uses the npm 11.16.0 CLI bundled with the pinned Node 24.18.0 LTS distribution.
|
|
18
|
-
No release job upgrades npm globally. The ordinary npm OIDC publisher does not check out source,
|
|
19
|
-
run `npm ci`, execute dependency lifecycle scripts, or install any package. It downloads the one
|
|
20
|
-
artifact made by `validate_pack`, checks its recorded commit and SHA-256/SHA-512 digests, rechecks
|
|
21
|
-
the public npm state and peeled Git tag, resolves the validated basename to a contained absolute
|
|
22
|
-
artifact path, and publishes that exact tarball with `--ignore-scripts` and provenance. The
|
|
23
|
-
absolute path is required because npm can parse a slash-containing relative path as a GitHub
|
|
24
|
-
repository shorthand. If either the legacy `NPM_TOKEN` or one-use `NPM_BOOTSTRAP_TOKEN` repository secret exists, the ordinary release fails
|
|
25
|
-
before requesting or using trusted-publisher credentials.
|
|
26
|
-
|
|
27
|
-
## One-time npm namespace bootstrap
|
|
28
|
-
|
|
29
|
-
An unclaimed package cannot have a trusted publisher configured. The one-time manual
|
|
30
|
-
`Bootstrap npm trusted publishing` workflow claims the namespace with the non-executable
|
|
31
|
-
prerelease `0.0.0-bootstrap.1`; it never publishes a stable release. The `.1` suffix preserves
|
|
32
|
-
the immutable audit trail of an earlier `.0` tag whose run stopped before npm accepted any
|
|
33
|
-
publication.
|
|
34
|
-
|
|
35
|
-
1. Create the immutable tag `npm-bootstrap-v0.0.0-bootstrap.1` on the reviewed `main` commit.
|
|
36
|
-
2. Create a short-lived npm granular access token with read/write access to **All Packages** and
|
|
37
|
-
bypass-2FA enabled. This broad initial scope is an npm limitation for an unclaimed namespace.
|
|
38
|
-
Give it the shortest practical expiry and store it only as `NPM_BOOTSTRAP_TOKEN`.
|
|
39
|
-
3. Dispatch `bootstrap-npm.yml` from that exact tag. The workflow has no `id-token` permission,
|
|
40
|
-
accepts only the hard-coded package/version/dist-tag, runs `npm audit signatures` before the
|
|
41
|
-
write, publishes a two-file non-executable tarball under the `bootstrap` dist-tag, and verifies
|
|
42
|
-
the public bytes and npm registry signature without the token.
|
|
43
|
-
4. Revoke the granular token immediately and delete `NPM_BOOTSTRAP_TOKEN`.
|
|
44
|
-
5. Configure npm trusted publishing for GitHub owner `klimPaskov`, repository
|
|
45
|
-
`hoi4-agent-tools`, and workflow `release.yml`; explicitly select the required allowed action `npm publish`.
|
|
46
|
-
npm requires an allowed action for configurations created after May 20, 2026.
|
|
47
|
-
|
|
48
|
-
The ordinary release workflow never supports token fallback. Do not create an `NPM_TOKEN`
|
|
49
|
-
secret, and delete `NPM_BOOTSTRAP_TOKEN` immediately after the namespace claim; either secret's
|
|
50
|
-
presence deliberately blocks the OIDC publisher.
|
|
51
|
-
|
|
52
|
-
On an entirely new npm package, the registry can additionally assign the sole bootstrap version
|
|
53
|
-
to `latest` even when the publish command explicitly selects `bootstrap`. The first stable release
|
|
54
|
-
accepts only the exact observed recovery state: versions contains only `0.0.0-bootstrap.1`, and
|
|
55
|
-
the only dist-tags are `bootstrap` and `latest`, both naming that version. Any extra version, tag,
|
|
56
|
-
different prerelease, missing bootstrap tag, or malformed state stops publication. Once the first
|
|
57
|
-
stable package is published, the normal strict stable-version monotonic and exact-rerun rules apply.
|
|
58
|
-
|
|
59
|
-
## Immutable fix-forward history
|
|
60
|
-
|
|
61
|
-
Stable tags and public package versions are never moved, deleted, or overwritten after a failed
|
|
62
|
-
release attempt. The retained history is:
|
|
63
|
-
|
|
64
|
-
- `v0.1.0` stopped during prepublication validation, before any public writer ran;
|
|
65
|
-
- `v0.1.1` stopped before npm accepted bytes because npm interpreted a slash-containing relative
|
|
66
|
-
tarball operand as GitHub repository shorthand;
|
|
67
|
-
- `v0.1.2` published the exact npm package with trusted-publisher provenance, then stopped in the
|
|
68
|
-
independent verifier because the pinned npm subprocess had been configured with the official
|
|
69
|
-
Registry URL without its trailing slash while the strict verifier required the canonical
|
|
70
|
-
slash-terminated spelling. npm signatures and attestations themselves verified successfully;
|
|
71
|
-
GHCR, GitHub Release, and MCP Registry writers were skipped.
|
|
72
|
-
- `v0.1.3` published and independently verified npm, then published the exact two-platform GHCR
|
|
73
|
-
image with SPDX SBOM and SLSA v0.2 provenance for both runtime manifests. Its post-push verifier
|
|
74
|
-
incorrectly required BuildKit's `configSource.uri` to retain the Git tag even though the action
|
|
75
|
-
resolves the default Git context to the immutable commit. The provenance digest and URI were
|
|
76
|
-
commit-bound, and its environment separately carried the exact tag, repository, release workflow,
|
|
77
|
-
workflow SHA, event, and job. GitHub Release and MCP Registry writers were skipped.
|
|
78
|
-
- `v0.1.4` published and independently verified npm and the exact two-platform GHCR image, then
|
|
79
|
-
staged an exact four-asset GitHub draft. The live Releases API represented an omitted optional
|
|
80
|
-
asset label as an empty string while the verifier accepted only `null`, so the draft remained
|
|
81
|
-
unpublished and MCP Registry publication was skipped. The tag, npm package, image, draft, and
|
|
82
|
-
draft assets remain unchanged as audit evidence.
|
|
83
|
-
- `v0.1.5` published and independently verified npm, the exact two-platform GHCR image, an
|
|
84
|
-
immutable four-asset GitHub Release, and an active/latest MCP Registry record. The final
|
|
85
|
-
cross-surface verifier rejected the Registry's omission of explicit `isSecret: false`, although
|
|
86
|
-
the pinned official schema defines false as that field's default and every public object passed
|
|
87
|
-
its preceding publication gate. All public objects remain unchanged as audit evidence.
|
|
88
|
-
- `v0.1.6` completed the ordered workflow and independent verification across npm, GHCR, the
|
|
89
|
-
immutable GitHub Release, and the official MCP Registry.
|
|
90
|
-
- `v0.1.7` completed the same ordered workflow with agent-first persistent setup guidance, large
|
|
91
|
-
focus-tree review scaling, symbolic focus-cost preservation, and complete resource-backed focus
|
|
92
|
-
validation. Its exact public evidence is retained in
|
|
93
|
-
[the 0.1.7 completion report](completion-report.md).
|
|
94
|
-
|
|
95
|
-
`0.2.0` is the current strictly monotonic release candidate. The normal stable-version gate treats
|
|
96
|
-
public `0.1.7` as immutable history; only a strictly newer version may be published. Rerunning or fixing a
|
|
97
|
-
release never authorizes rewriting a tag, package version, image tag, release asset, or Registry
|
|
98
|
-
version.
|
|
99
|
-
|
|
100
|
-
## Required pre-tag immutability check
|
|
101
|
-
|
|
102
|
-
GitHub's immutable-release settings endpoint requires repository `Administration:read`, which
|
|
103
|
-
the short-lived repository `GITHUB_TOKEN` cannot request. Do not add a long-lived administration
|
|
104
|
-
token to Actions for this check. Instead, the repository owner must run the authenticated check
|
|
105
|
-
below immediately before pushing each stable release tag:
|
|
106
|
-
|
|
107
|
-
```bash
|
|
108
|
-
test "$(gh api \
|
|
109
|
-
--header 'X-GitHub-Api-Version: 2026-03-10' \
|
|
110
|
-
repos/klimPaskov/hoi4-agent-tools/immutable-releases \
|
|
111
|
-
--jq '.enabled')" = 'true'
|
|
112
|
-
```
|
|
113
|
-
|
|
114
|
-
This owner check is a release prerequisite and must pass before the first public writer starts.
|
|
115
|
-
The workflow also requires the completed release to report `immutable: true` before MCP Registry
|
|
116
|
-
publication and final verification. That post-publication gate detects a skipped prerequisite,
|
|
117
|
-
but it cannot undo a mutable release; an administrator changing the setting between the owner
|
|
118
|
-
check and release publication is an external GitHub settings race that the release API offers no
|
|
119
|
-
conditional publish operation to close.
|
|
120
|
-
|
|
121
|
-
## One-time GHCR visibility bootstrap
|
|
122
|
-
|
|
123
|
-
GitHub creates the first personal-account container package as private. Run the pinned manual
|
|
124
|
-
`Bootstrap GHCR` workflow from public `main`, then change package visibility to **Public** in the
|
|
125
|
-
package settings. The bootstrap uses only the repository-scoped `GITHUB_TOKEN`, publishes only
|
|
126
|
-
the `bootstrap` tag, and verifies the authenticated index contains exact `linux/amd64` and
|
|
127
|
-
`linux/arm64` runtime manifests. GitHub exposes no supported API for changing a personal GHCR
|
|
128
|
-
package's visibility, so the bootstrap cannot prove anonymous access until an administrator makes
|
|
129
|
-
that newly created package public in the package settings.
|
|
130
|
-
|
|
131
|
-
```bash
|
|
132
|
-
gh workflow run bootstrap-ghcr.yml --repo klimPaskov/hoi4-agent-tools --ref main
|
|
133
|
-
gh run watch --repo klimPaskov/hoi4-agent-tools
|
|
134
|
-
```
|
|
135
|
-
|
|
136
|
-
After changing visibility to **Public**, prove anonymous visibility and both runtime manifests with
|
|
137
|
-
a Docker configuration that contains no credentials:
|
|
138
|
-
|
|
139
|
-
```bash
|
|
140
|
-
ANONYMOUS_DOCKER_CONFIG="$(mktemp -d)"
|
|
141
|
-
MANIFEST="$(DOCKER_CONFIG="$ANONYMOUS_DOCKER_CONFIG" \
|
|
142
|
-
docker buildx imagetools inspect --raw \
|
|
143
|
-
ghcr.io/klimpaskov/hoi4-agent-tools:bootstrap)"
|
|
144
|
-
RUNTIME_PLATFORMS="$(jq --raw-output \
|
|
145
|
-
'[.manifests[] | select(.platform.os == "linux") | "\(.platform.os)/\(.platform.architecture)"] | unique | sort | join(",")' \
|
|
146
|
-
<<<"$MANIFEST")"
|
|
147
|
-
rm -rf "$ANONYMOUS_DOCKER_CONFIG"
|
|
148
|
-
test "$RUNTIME_PLATFORMS" = 'linux/amd64,linux/arm64'
|
|
149
|
-
```
|
|
150
|
-
|
|
151
|
-
## Local release audit
|
|
152
|
-
|
|
153
|
-
```bash
|
|
154
|
-
npm ci --ignore-scripts
|
|
155
|
-
npm audit --audit-level=high
|
|
156
|
-
npm audit signatures --ignore-scripts
|
|
157
|
-
npm run check
|
|
158
|
-
npm run test:coverage
|
|
159
|
-
npm run inspector
|
|
160
|
-
REGISTRY_LIVE_VALIDATION=1 npm run registry:validate
|
|
161
|
-
npm pack --dry-run --ignore-scripts --json
|
|
162
|
-
```
|
|
163
|
-
|
|
164
|
-
The workflow repeats `npm audit signatures` as a mandatory gate before any public writer can
|
|
165
|
-
start. It verifies the package-manager inputs used by the build and later verifies the newly
|
|
166
|
-
published package with `npm audit signatures --json --include-attestations`.
|
|
167
|
-
|
|
168
|
-
## Enforced publication chain
|
|
169
|
-
|
|
170
|
-
1. `validate_pack` verifies the remote peeled tag, `main` ancestry, canonical identity, npm
|
|
171
|
-
release order, repository/GHCR visibility, all checks, dependency signatures, and coverage. It
|
|
172
|
-
creates one tarball, `npm-pack.json`, and `release-identity.json` bound to the tarball digests
|
|
173
|
-
and source commit. This job has no OIDC permission.
|
|
174
|
-
2. `publish_npm` is the minimal OIDC job. It rejects both npm bearer-token secrets, downloads and validates the
|
|
175
|
-
exact artifact, rechecks npm ordering and the remote peeled tag, resolves the tarball to a
|
|
176
|
-
contained absolute file path, then publishes only when the version is absent. It performs no
|
|
177
|
-
checkout or dependency installation.
|
|
178
|
-
3. `verify_npm` has no OIDC permission. It downloads the public tarball byte-for-byte, runs the
|
|
179
|
-
official npm signature verifier, and passes the exact returned Sigstore bundle to npm's bundled
|
|
180
|
-
official Sigstore verifier with the expected Fulcio issuer and workflow certificate identity.
|
|
181
|
-
Verification requires one signed DSSE envelope, Rekor inclusion, the exact npm PURL and
|
|
182
|
-
SHA-512 subject, GitHub-hosted runner builder, release workflow/tag, and release commit. A
|
|
183
|
-
replayed bundle that differs from the current registry response is rejected.
|
|
184
|
-
4. `publish_image` first checks the anonymous exact SemVer tag and GitHub release as one state
|
|
185
|
-
matrix. A completed identical rerun is accepted only when the tag digest equals the immutable
|
|
186
|
-
`container-image.json` release asset. If the tag exists but the later GitHub release does not,
|
|
187
|
-
the workflow reconstructs `container-image.json` from the exact anonymous digest and permits
|
|
188
|
-
recovery only after the normal anonymous verifier proves the index digest, two runtime
|
|
189
|
-
platforms, image source/revision/version labels, SBOM subjects, provenance subjects, source
|
|
190
|
-
tag, and source SHA against `GITHUB_SHA`. A release without its image tag, any mismatched
|
|
191
|
-
release asset, or any failed provenance check stops the chain. A first publication builds from
|
|
192
|
-
the action's default Git context, pushes by digest without a tag, rechecks the Git tag, then
|
|
193
|
-
creates the exact SemVer tag once. No mutable major/minor tag is published.
|
|
194
|
-
5. `github_release` uses the authenticated, fully paginated List releases endpoint because
|
|
195
|
-
GitHub's by-tag endpoint exposes published releases but not drafts. It requires zero or one
|
|
196
|
-
exact tag match, cross-checks the published endpoint, and classifies the state as absent, a
|
|
197
|
-
mutable draft, or an already-complete immutable release. Drafts and publications must be owned
|
|
198
|
-
by the canonical GitHub Actions bot, use the exact tag-derived title and checked-in changelog
|
|
199
|
-
body, and expose no asset-label override. An existing draft may contain only a byte-for-byte
|
|
200
|
-
verified subset of the four expected uploaded assets from that same bot; unexpected,
|
|
201
|
-
duplicate, differently uploaded, non-uploaded, or differing assets stop the workflow without
|
|
202
|
-
deletion or replacement. The pinned release action stages missing assets with overwrite
|
|
203
|
-
disabled, canonicalizes the title and body, and leaves the release as a draft. Its numeric
|
|
204
|
-
release ID must match the unique authenticated listing. The workflow then requires the exact
|
|
205
|
-
npm tarball, both npm manifests, and `container-image.json`, repeats the unique-ID, metadata,
|
|
206
|
-
and byte checks, rechecks the peeled tag, and publishes that verified draft once.
|
|
207
|
-
Repository-level release immutability protects the assets and Git tag after publication. An
|
|
208
|
-
exact uploaded subset is resumable; a failed GitHub upload left in `starter` state or a draft
|
|
209
|
-
with noncanonical authorship or labels is a manual draft-cleanup blocker rather than permission
|
|
210
|
-
to overwrite or delete assets automatically. A completed rerun must match the one listed/public
|
|
211
|
-
release ID, canonical metadata, and all four immutable assets exactly.
|
|
212
|
-
6. `publish_registry` validates a checksum-pinned official publisher, uses GitHub OIDC, rechecks
|
|
213
|
-
the peeled tag after login, and publishes the exact `server.json` only when absent.
|
|
214
|
-
7. `verify_public` re-queries the peeled tag and verifies npm, immutable GitHub release assets,
|
|
215
|
-
anonymous GHCR digest/SBOM/provenance, and complete MCP Registry metadata. It also performs a
|
|
216
|
-
clean public install and registry-signature audit.
|
|
217
|
-
|
|
218
|
-
The global non-cancelling `release` concurrency group serializes releases. npm, GitHub release,
|
|
219
|
-
the exact container tag, and MCP Registry version are treated as immutable: existing matching
|
|
220
|
-
objects may make a completed rerun idempotent, while absent records, moved tags, ambiguous state,
|
|
221
|
-
or differing bytes/digests stop the chain. The Registry hosts metadata, not package bytes; local
|
|
222
|
-
validation alone is never treated as publication evidence.
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
# MCP protocol, SDK, security, and Registry review
|
|
2
|
-
|
|
3
|
-
Verified again on 2026-07-12 against official sources.
|
|
4
|
-
|
|
5
|
-
## Selected production baseline
|
|
6
|
-
|
|
7
|
-
- Final protocol: [`2025-11-25`](https://modelcontextprotocol.io/specification/2025-11-25).
|
|
8
|
-
- Production TypeScript SDK: [`@modelcontextprotocol/sdk` 1.29.0](https://www.npmjs.com/package/%40modelcontextprotocol/sdk?activeTab=versions), using the [`v1.x` server guide](https://github.com/modelcontextprotocol/typescript-sdk/blob/v1.x/docs/server.md).
|
|
9
|
-
- Inspector: [`@modelcontextprotocol/inspector` 0.22.0](https://www.npmjs.com/package/%40modelcontextprotocol/inspector).
|
|
10
|
-
- Registry schema: [`2025-12-11/server.schema.json`](https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json).
|
|
11
|
-
- Registry publisher pinned by release workflow: `v1.7.9`; the workflow verifies the published checksum manifest and archive before extraction.
|
|
12
|
-
|
|
13
|
-
The breaking `2026-07-28` protocol and SDK v2 split packages were release candidates on the review date. They are not used for the production package. This decision must be revisited after the final release.
|
|
14
|
-
|
|
15
|
-
## Transport and capability requirements applied
|
|
16
|
-
|
|
17
|
-
- Stdio uses newline-delimited UTF-8 JSON-RPC, protocol-only stdout, and stderr logging.
|
|
18
|
-
- Streamable HTTP uses one `/mcp` POST/GET endpoint plus DELETE for session termination. It is stateful to support progress, cancellation, server notifications, SSE resumption, and secure random sessions.
|
|
19
|
-
- Sessions are bound to authenticated principals and expire; they are never authentication credentials.
|
|
20
|
-
- Tools use strict schemas and explicit read-only/destructive/idempotent/open-world annotations. Hints do not replace enforcement and do not require a client to show a confirmation prompt for each call.
|
|
21
|
-
- Long work observes `AbortSignal` and sends monotonic progress only when the client supplies a progress token.
|
|
22
|
-
- Large results are content-addressed resources. Binary reads are bounded/chunkable because resource links defer retrieval but are not a byte-stream transport.
|
|
23
|
-
- Prompts describe domain workflows but grant no permission.
|
|
24
|
-
|
|
25
|
-
### Write-policy conclusion
|
|
26
|
-
|
|
27
|
-
MCP separates server-advertised tool metadata from client-host policy. A server can truthfully mark a source-changing tool with `readOnlyHint: false` and `destructiveHint: true`, but it cannot require, suppress, or bypass a host confirmation dialog. The host decides how to present or constrain the call; the server independently enforces its configured workspace, authentication, scope, validation, journaling, and recovery boundaries.
|
|
28
|
-
|
|
29
|
-
For this server, `writePolicy: "autonomous"` therefore exposes one-call `hoi4.focus_rewrite`, `hoi4.gui_rewrite`, and `hoi4.map_rewrite` tools with destructive annotations. The tools internally plan, validate, journal, apply, and post-validate, restoring original bytes on failure. Transaction tools are not registered in that mode. `writePolicy: "transactions"` remains an optional compatibility surface for the older client-driven review/apply sequence, while `read-only` remains the default.
|
|
30
|
-
|
|
31
|
-
## Remote security requirements applied
|
|
32
|
-
|
|
33
|
-
- Loopback is the default bind address.
|
|
34
|
-
- Present origins and Host are validated; request body, concurrency, rate, session, and expiry limits are enforced.
|
|
35
|
-
- Every HTTP method authenticates. Static environment bearer tokens are loopback-only.
|
|
36
|
-
- Non-loopback operation requires HTTPS and OAuth/OIDC resource-server JWT verification: issuer, JWKS, audience, algorithms, expiry, subject, and required scopes.
|
|
37
|
-
- Protected Resource Metadata is exposed when OAuth is configured.
|
|
38
|
-
- Principal-to-workspace grants are server-side; token passthrough, query-string tokens, cross-principal sessions, and cross-workspace transactions are rejected.
|
|
39
|
-
|
|
40
|
-
Primary references: [transport specification](https://modelcontextprotocol.io/specification/2025-11-25/basic/transports), [authorization](https://modelcontextprotocol.io/specification/2025-11-25/basic/authorization), [security guidance](https://modelcontextprotocol.io/docs/tutorials/security/security_best_practices), [tools](https://modelcontextprotocol.io/specification/2025-11-25/server/tools), [resources](https://modelcontextprotocol.io/specification/2025-11-25/server/resources), [prompts](https://modelcontextprotocol.io/specification/2025-11-25/server/prompts), [progress](https://modelcontextprotocol.io/specification/2025-11-25/basic/utilities/progress), and [cancellation](https://modelcontextprotocol.io/specification/2025-11-25/basic/utilities/cancellation).
|
|
41
|
-
|
|
42
|
-
## Registry requirements applied
|
|
43
|
-
|
|
44
|
-
- `package.json.mcpName` exactly matches `server.json.name`.
|
|
45
|
-
- The public npm package version, server version, and Registry version are exact and synchronized.
|
|
46
|
-
- Registry versions are immutable; release metadata is validated before publishing.
|
|
47
|
-
- npm is published first because the Registry stores discovery metadata rather than package bytes.
|
|
48
|
-
- The release workflow uses GitHub OIDC for `mcp-publisher` and npm provenance.
|
|
49
|
-
- npm trusted publishers created after May 20, 2026 require an explicit allowed action; this package selects `npm publish`, uses a GitHub-hosted runner with `id-token: write`, and does not restore a package-manager cache in release jobs.
|
|
50
|
-
- The pinned official publisher's live `validate` operation accepts this release's `server.json` before publication.
|
|
51
|
-
|
|
52
|
-
References: [Registry quickstart](https://modelcontextprotocol.io/registry/quickstart), [package types](https://modelcontextprotocol.io/registry/package-types), [versioning](https://modelcontextprotocol.io/registry/versioning), and [GitHub Actions publishing](https://modelcontextprotocol.io/registry/github-actions).
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
# HOI4 source research ledger
|
|
2
|
-
|
|
3
|
-
Reviewed 2026-07-10. These sources informed format support and tests; no installed-game or third-party-mod content is included in this repository.
|
|
4
|
-
|
|
5
|
-
## Offline wiki snapshot
|
|
6
|
-
|
|
7
|
-
The supplied offline Hearts of Iron IV wiki snapshot was consulted for:
|
|
8
|
-
|
|
9
|
-
- `Data structures - Hearts of Iron 4 Wiki.md`: ordered blocks, variables/tokens, event targets, and generic script structure.
|
|
10
|
-
- `National focus modding - Hearts of Iron 4 Wiki.md`: tree assignment, prerequisite grouping, relative positions, exclusions, continuous focuses, icons, AI, filters, and localisation.
|
|
11
|
-
- `Interface modding - Hearts of Iron 4 Wiki.md`: containers, element types, scrolling, positions, orientation, and fonts.
|
|
12
|
-
- `Scripted GUI modding - Hearts of Iron 4 Wiki.md`: contexts, parents, visibility, effects/triggers, dynamic lists, properties, AI, templates, and scripted localisation.
|
|
13
|
-
- `Graphical asset modding - Hearts of Iron 4 Wiki.md`: sprite, frame animation, progress, and bitmap-font declarations.
|
|
14
|
-
- `Map modding - Hearts of Iron 4 Wiki.md`: BMP headers/palettes, coordinates, definitions, terrain, buildings, unit positions, adjacency, and supply.
|
|
15
|
-
- `State modding - Hearts of Iron 4 Wiki.md`: state/history/province/building/resource/victory-point structure and strategic-region constraints.
|
|
16
|
-
- `Localisation - Hearts of Iron 4 Wiki.md`: UTF-8 BOM, language headers, key grammar, versions, escaping, and scripted localisation.
|
|
17
|
-
- `Triggers`, `Effects`, and `Scopes`: ordered raw trigger/effect preservation and source-reference indexing.
|
|
18
|
-
|
|
19
|
-
The wiki remains useful background, but current official files and installed examples take precedence when they differ.
|
|
20
|
-
|
|
21
|
-
## Installed official documentation
|
|
22
|
-
|
|
23
|
-
Under `<HOI4_ROOT>/documentation`:
|
|
24
|
-
|
|
25
|
-
- `script_concept_documentation.md`: collections, contextual/formatted localisation, math expressions, and script constants.
|
|
26
|
-
- `triggers_documentation.md`: current trigger names/scopes, state/province/focus/railway references, and dynamic argument support.
|
|
27
|
-
- `effects_documentation.md`: current effect names/scopes and state/province/focus references. Its
|
|
28
|
-
553 documented effect identifiers form the bundled Focus Workbench native-effect catalog;
|
|
29
|
-
headings only were retained, not proprietary documentation prose.
|
|
30
|
-
- `loc_objects_documentation.md` and `loc_formatter_documentation.md`: current province/state objects and font/layout-relevant localisation behavior.
|
|
31
|
-
- `dynamic_variables_documentation.md`, `modifiers_documentation.md`, collection input/operator documentation: tokens and raw constructs the CST must retain.
|
|
32
|
-
|
|
33
|
-
Official documentation found outside that folder was also consulted, especially:
|
|
34
|
-
|
|
35
|
-
- `common/scripted_guis/_documentation.md`: authoritative current contexts, parent attachment, dynamic lists, properties, dirty variables, effects/triggers, and AI fields.
|
|
36
|
-
- `common/focus_inlay_windows/documentation.md`: current inlay fields, including scripted buttons and progress bars absent from older summaries.
|
|
37
|
-
|
|
38
|
-
## Vanilla precedents
|
|
39
|
-
|
|
40
|
-
Representative read-only examples:
|
|
41
|
-
|
|
42
|
-
- `common/national_focus/generic.txt` and large country trees for repeated prerequisite blocks, OR groups, exclusions, relative positions, raw rewards, `continuous_focus_position`, route AI, uppercase `IF`/`ELSE_IF`/`ELSE`, weighted `random_list`, direct scripted-effect calls, scoped country/state/character blocks, decision/formable links, and cosmetic-tag effects.
|
|
43
|
-
- `common/continuous_focus/generic.txt` for the current `continuous_focus_palette = { ... focus = { ... } }` model, palette selection/position, and continuous-focus availability, enablement, modifier, cost, and AI fields.
|
|
44
|
-
- `interface/achievements.gui`, `interface/abilitylist.gui`, scripted-GUI interface files, and paired `.gfx` files for nested containers, lists, click regions, sprite states, and ordering.
|
|
45
|
-
- `common/scripted_guis/*.txt` for decision-category contexts, button effect/trigger naming, AI, dynamic lists, and parent/window connections.
|
|
46
|
-
- `interface/*.gfx`, `gfx/interface/**`, and `gfx/fonts/**` for horizontal frame strips, fractional animation rates, DDS/TGA/PNG textures, vector and bitmap font sources.
|
|
47
|
-
- `map/default.map`, `map/provinces.bmp`, `map/definition.csv`, `map/adjacencies.csv`, `map/supply_nodes.txt`, `map/railways.txt`, `map/buildings.txt`, `map/unitstacks.txt`, and `map/weatherpositions.txt` for current map formats.
|
|
48
|
-
- `history/states/*.txt` and `map/strategicregions/*.txt` for state/region membership and ordered history payloads.
|
|
49
|
-
|
|
50
|
-
## Current format conclusions
|
|
51
|
-
|
|
52
|
-
- The inspected installed build was HOI4 1.19.2 content dated 2026-06-12.
|
|
53
|
-
- `provinces.bmp` is a 5632×2048, uncompressed, bottom-up 24-bit BMP with a 40-byte DIB header.
|
|
54
|
-
- Other current map BMPs include indexed 8-bit DIB40 and DIB124 files; the codec must honor pixel offsets, row padding, palette size, orientation, and untouched bytes.
|
|
55
|
-
- Map CSV/text examples use UTF-8 without BOM and LF; localisation examples use UTF-8 BOM. The source model detects and preserves each file rather than normalizing it.
|
|
56
|
-
- Active placement data is in building/unit/weather files; `positions.txt` may exist but be empty. Model-local `.asset` locator blocks are a separate source family.
|
|
57
|
-
- `weatherpositions.txt` uses `small` and `big` tokens in the inspected build.
|
|
58
|
-
- Sprite textures include PNG, TGA, uncompressed DDS, DXT1/3/5, DX10 RGBA/BGRA, and RXGB variants. Frame counts divide a horizontal strip; animation rates may be fractional.
|
|
59
|
-
- Bitmap fonts use `.fnt` metrics/kerning and texture atlases. Locale overrides and additional script font files must remain connected in the source graph.
|
|
60
|
-
- Definition rows and state IDs are contiguous in the inspected build. Province ID allocation therefore records current contiguity and must not treat arbitrary gaps as universally safe.
|
|
61
|
-
- Only land provinces are required to belong to a state; sea provinces and some lakes legitimately do not. Every nonzero province is expected in one strategic region.
|
|
62
|
-
- State source does not expose a generic `capital` field. Map operations distinguish a country's capital-state reference from a state's chief victory-point/capital province and never guess between them.
|
|
63
|
-
- Clausewitz quoted strings decode only escaped quote and backslash. Literal newlines are invalid. Token expressions such as `variable?100` are scalar atoms; only `?=` is an operator.
|
|
64
|
-
- Focus completion rewards call scripted effects directly by identifier; there is no native
|
|
65
|
-
`scripted_effect = helper_id` wrapper. `set_cosmetic_tag` targets cosmetic identity and is not a
|
|
66
|
-
formable-decision reference. Formables are decision targets, and
|
|
67
|
-
`unlock_decision_category_tooltip` targets a top-level decision category.
|
|
68
|
-
- File replacement, duplicate keys, and ordering are database-specific. Same relative indexed filename shadows lower load-order sources; directly indexed files in a `replace_path` directory are removed without treating every descendant asset as removed.
|
package/docs/security.md
DELETED
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
# Security and threat model
|
|
2
|
-
|
|
3
|
-
## Protected assets
|
|
4
|
-
|
|
5
|
-
- external mod source and binary map data;
|
|
6
|
-
- installed game and dependency references;
|
|
7
|
-
- configured write authority, authenticated journals, and exact recovery blobs;
|
|
8
|
-
- generated artifacts that may reveal source details;
|
|
9
|
-
- HTTP credentials and principal/workspace grants.
|
|
10
|
-
|
|
11
|
-
## Trust boundaries
|
|
12
|
-
|
|
13
|
-
MCP input, file paths, manifest content, client annotations, session IDs, Origin/Host headers, and remote access tokens are untrusted. Tool annotations are descriptive hints. Prompts are guidance. MCP does not require a confirmation prompt for every destructive tool call. Server-side configuration is authoritative for server access, while the MCP host independently controls its own approval and filesystem policy; neither can override the other.
|
|
14
|
-
|
|
15
|
-
## Filesystem controls
|
|
16
|
-
|
|
17
|
-
- Only registered roots are visible.
|
|
18
|
-
- Public paths are relative and canonicalized.
|
|
19
|
-
- Traversal, absolute paths, UNC/device paths, NULs, alternate data streams, ambiguous trailing characters, and device names are rejected.
|
|
20
|
-
- Existing symlinks and junctions are resolved; an escape outside the root is rejected.
|
|
21
|
-
- Artifact shards, transaction journals, blobs, and lock descendants are re-canonicalized before access. A symlink or junction observed in artifact/journal enumeration is rejected.
|
|
22
|
-
- Each write-enabled policy requires an absolute `serverStateRoot` whose existing components are non-linked
|
|
23
|
-
and whose canonical target does not overlap any source, registration capability,
|
|
24
|
-
generated-storage root, or runtime-nominated root. Harmless native path-spelling aliases are
|
|
25
|
-
normalized only after the link check. Its random journal key and protected revision heads are
|
|
26
|
-
never returned through MCP.
|
|
27
|
-
- Writes target the canonical mod root only. Game, dependency, fixture, and unrelated user files are never writable.
|
|
28
|
-
- Runtime mod registration requires a separate, default-empty `writableRegistrationRoots`
|
|
29
|
-
capability. A caller cannot relabel a game/dependency path from the read-only
|
|
30
|
-
`registrationRoots` allowlist as a mod.
|
|
31
|
-
- Artifact URIs are opaque and authorization-checked; filesystem paths are not placed in MCP responses.
|
|
32
|
-
|
|
33
|
-
These are application checks, not a kernel-enforced filesystem sandbox. The operator must prevent
|
|
34
|
-
hostile operating-system principals from concurrently replacing directories, symlinks, junctions,
|
|
35
|
-
mounts, or files inside registered and generated roots between validation and I/O. Such an actor
|
|
36
|
-
already has direct filesystem authority and is outside the application security boundary. The
|
|
37
|
-
server detects normal stale-source changes and observed link escapes, but does not claim
|
|
38
|
-
race-proof `openat`-style containment or operating-system transaction atomicity against hostile
|
|
39
|
-
concurrent mutation.
|
|
40
|
-
|
|
41
|
-
## Write controls
|
|
42
|
-
|
|
43
|
-
Read-only is the default. The recommended `"autonomous"` policy exposes only `hoi4.focus_rewrite`, `hoi4.gui_rewrite`, and `hoi4.map_rewrite` for source mutation. Each call computes the complete affected-file set, validates proposed bytes, persists an authenticated journal and exact before-bytes, rechecks the unexpired principal/workspace binding and source hashes under a workspace lock, applies, rebuilds the index, and post-validates. Invalid proposals do not apply; an application, final-hash, or post-validation failure restores original bytes automatically.
|
|
44
|
-
|
|
45
|
-
The optional `"transactions"` compatibility policy exposes the older plan/diff/apply/status/rollback tool sequence. It uses the same core journal and failure-recovery path. Autonomous mode intentionally does not register the transaction tools, so it has no client-callable bypass around the one-call rewrite contract.
|
|
46
|
-
|
|
47
|
-
The autonomous rewrite tools advertise `destructiveHint: true` because a successful call changes mod source. That hint is truthful risk metadata, not a server request to suppress or force a dialog. A client host may prompt for or block the call; the server cannot override it. There is no command-execution field in either mode, and stale or cross-workspace writes fail closed.
|
|
48
|
-
|
|
49
|
-
Git remains the project-history and intentional-revert layer. It is not required for operational recovery: the journal and exact before-bytes prevent a failed multi-file rewrite from remaining partially applied.
|
|
50
|
-
|
|
51
|
-
Runtime registration definitions and raw paths are not persisted. The canonical artifact root does
|
|
52
|
-
retain an atomically created ownership claim containing only domain-separated SHA-256 workspace and
|
|
53
|
-
owner bindings. Re-registration restores that binding only for the same canonical workspace and
|
|
54
|
-
runtime principal; malformed, linked, raced, aliased, cross-principal, and cross-workspace claims
|
|
55
|
-
fail closed. A failed journal recovery removes only the in-memory registration, never its persistent
|
|
56
|
-
claim or existing generated data. Statically configured workspaces do not use runtime claims and
|
|
57
|
-
remain shared according to their operator-reviewed principal grants.
|
|
58
|
-
|
|
59
|
-
Every artifact provenance manifest includes the resolved workspace identity and its configured or
|
|
60
|
-
runtime owner identity in the immutable provenance hash. List, describe, and resource-read paths
|
|
61
|
-
verify both values before returning metadata or bytes. Reusing a physical artifact store through a
|
|
62
|
-
different workspace or owner therefore cannot expose prior evidence; unbound legacy or malformed
|
|
63
|
-
manifests are rejected rather than migrated or deleted implicitly.
|
|
64
|
-
|
|
65
|
-
Transaction manifests are authenticated with HMAC-SHA-256 over the complete canonical manifest,
|
|
66
|
-
excluding only the authentication tag. The 256-bit random key lives beneath `serverStateRoot`, not
|
|
67
|
-
in a workspace or public configuration value. Protected revision heads prevent replay of an older
|
|
68
|
-
valid manifest. A cache-first crash may reconcile only an authenticated exact next revision; a
|
|
69
|
-
missing head, revision gap, altered expiry/state/failure/rollback field, or recomputed public hash
|
|
70
|
-
fails closed. No HMAC key is derived from public workspace data.
|
|
71
|
-
|
|
72
|
-
Read-only journal/resource operations never repair protected state. Cache-first successor promotion is
|
|
73
|
-
confined to startup recovery and authorized write paths. Artifact manifests are capped at 1 MiB and
|
|
74
|
-
transaction manifests at 16 MiB before parsing; transaction resource ranges use a bounded verified
|
|
75
|
-
byte cache instead of repeatedly rebuilding the authenticated object.
|
|
76
|
-
|
|
77
|
-
## HTTP controls
|
|
78
|
-
|
|
79
|
-
- Every POST, GET, and DELETE request to `/mcp` is authenticated; only standards-required OAuth discovery metadata is public.
|
|
80
|
-
- Present Origin and Host are checked before MCP dispatch. Security-sensitive singleton fields are counted from the raw HTTP header list before Node normalization, so duplicate Host, Authorization, Origin, content metadata, forwarding identity, or MCP session/protocol fields fail closed. Absolute-form request targets must use an allowlisted authority identical to Host.
|
|
81
|
-
- Session IDs are secure random routing identifiers bound to the authenticated principal, an explicit OAuth client when present, the exact bearer credential's SHA-256 identifier, and the non-downgraded scope set; they are not credentials. A token without `client_id` or `azp` is credential-bound rather than being aliased to the subject.
|
|
82
|
-
- Missing, expired, cross-principal, or unknown sessions fail.
|
|
83
|
-
- Connection count, requests per socket, header/request/keep-alive time, JSON body size, admitted concurrency, request rate, session count, event streams, event history, and session lifetime are bounded.
|
|
84
|
-
- Admitted request concurrency is fixed at no more than two; configured body bytes multiplied by
|
|
85
|
-
concurrency cannot exceed 16 MiB.
|
|
86
|
-
- Static bearer tokens are loopback-only. A non-loopback listener or a non-loopback canonical `publicUrl` (including a loopback listener behind a public reverse proxy) requires HTTPS and OAuth/OIDC JWT signature, issuer, audience, algorithm, expiry, subject, and scope verification.
|
|
87
|
-
- Tokens are accepted only in the Authorization header and are never logged, forwarded, copied into a session, or exposed to MCP handlers. Only a one-way SHA-256 credential identifier is retained for session binding.
|
|
88
|
-
- Protected Resource Metadata is published for OAuth deployments and linked from OAuth `WWW-Authenticate` challenges.
|
|
89
|
-
- Initial 401 challenges identify the baseline scope. A write-scoped tool call made with a read token receives an HTTP 403 `insufficient_scope` challenge naming the baseline plus `hoi4:write`, before JSON-RPC dispatch.
|
|
90
|
-
- Streamable HTTP reserves concurrency before JSON parsing or token verification and applies a socket-address rate bucket before authentication, followed by an independent per-principal bucket after authentication. Host and any present Origin are rejected even earlier. Every `/mcp` POST must advertise unparameterized, positively weighted `application/json` and `text/event-stream` response media types, use the exact `application/json` request media type with an absent or `utf-8` charset, and use no content coding other than identity. GET requires an unparameterized, positively weighted `text/event-stream` range. Bodies are fatal-decoded as UTF-8 and parsed under the raw-wire `maxBodyBytes` ceiling; suffix types, malformed or ambiguous media parameters, encoded entities, replacement-decoded UTF-8, and parameter-only media-type mentions are rejected before SDK dispatch.
|
|
91
|
-
- `trustedProxyAddresses` contains exact IP addresses only and affects only derivation of the pre-auth rate-limit key; it does not enable general forwarded-header trust. `X-Forwarded-For` is ignored unless the direct socket peer exactly matches a configured address (IPv4-mapped IPv6 is normalized). For a trusted peer, a missing or invalid header is rejected and only the first comma-separated address is used.
|
|
92
|
-
- A reverse proxy must be the only network path to a proxied server, terminate TLS, overwrite client-supplied forwarding headers with a validated client IP, preserve Authorization/Origin/Host, and enforce edge connection, header, body, timeout, and rate limits. CIDR ranges, hostnames, and an unverified proxy chain are not inferred by the application.
|
|
93
|
-
- Every session request is reauthenticated and must present the exact credential that initialized the session; another token cannot take over merely because its subject or client claims match. OAuth refresh and scope step-up therefore initialize a new MCP session. Scope authority within a session remains monotonic, and handler-level write-scope checks remain in place as defense in depth.
|
|
94
|
-
|
|
95
|
-
Session admission counts both active sessions and initializations in progress, globally and per
|
|
96
|
-
principal. Static-token sessions use the configured sliding inactivity lifetime. OAuth session
|
|
97
|
-
expiry is the earlier of that lifetime and the access token's `exp`; an expired token cannot create
|
|
98
|
-
a session. Expiration timers remove sessions at that bound, with access checks, pre-admission
|
|
99
|
-
pruning, and periodic cleanup as fail-closed backstops.
|
|
100
|
-
Resumable GET streams have separate global/per-principal ceilings; once accepted, a long-lived
|
|
101
|
-
stream releases the ordinary short-request concurrency reservation and remains charged to the
|
|
102
|
-
stream ceilings.
|
|
103
|
-
|
|
104
|
-
Replay history is also bounded: at most 1,000 events per session, the configured per-session byte
|
|
105
|
-
budget, the configured process-wide event-store byte budget, and the session TTL. Per-session
|
|
106
|
-
overflow evicts the oldest history first. If one event cannot fit the per-session or shared byte
|
|
107
|
-
budget, it is not retained for replay; the store does not evict another session's history to make
|
|
108
|
-
room. Closing or expiring a session releases its shared budget.
|
|
109
|
-
|
|
110
|
-
## Stdio controls
|
|
111
|
-
|
|
112
|
-
Stdio accepts newline-delimited JSON-RPC frames of at most 16,777,216 bytes, excluding the line-feed
|
|
113
|
-
delimiter. The ceiling is fixed and matches the largest configurable Streamable HTTP JSON body.
|
|
114
|
-
Input is retained in a geometrically grown bounded byte buffer, keeping cumulative copy work
|
|
115
|
-
linear without per-chunk metadata growth. Completed frames use fatal UTF-8 decoding; malformed byte
|
|
116
|
-
sequences are never replaced with U+FFFD or dispatched as JSON-RPC. A malformed UTF-8 frame or a
|
|
117
|
-
frame that crosses the ceiling is refused immediately (for size, including when no newline or
|
|
118
|
-
end-of-input has arrived): the server writes a structured `STDIO_INVALID_UTF8` or
|
|
119
|
-
`STDIO_FRAME_TOO_LARGE` event to stderr, closes that transport, and exits unsuccessfully. The
|
|
120
|
-
rejected payload is never echoed. Protocol responses remain exclusively on stdout; transport and
|
|
121
|
-
startup diagnostics remain exclusively on stderr.
|
|
122
|
-
|
|
123
|
-
Well-formed UTF-8 frames that fail JSON or JSON-RPC schema validation are not dispatched. Their
|
|
124
|
-
stderr diagnostic has the fixed `STDIO_INVALID_MESSAGE` code and a generic message; it never
|
|
125
|
-
interpolates caller-controlled frame content. A later valid frame may continue on the local
|
|
126
|
-
connection.
|
|
127
|
-
|
|
128
|
-
## Source and artifact privacy
|
|
129
|
-
|
|
130
|
-
Stdio inherits the local process user's access but still applies the configured roots. A remote deployment can access only paths mounted and registered on the server; it cannot reach a client computer. Do not mount a home directory or an entire game library when one read-only game root and selected workspaces suffice.
|
|
131
|
-
|
|
132
|
-
On POSIX, the server enforces mode `0700` on the state root and `0600` on the journal key. Node does
|
|
133
|
-
not provide a portable Windows DACL authoring API, so Windows operators must provision the state
|
|
134
|
-
root ACL for the dedicated server account; the server still rejects a linked/non-regular key and
|
|
135
|
-
inherits that operator ACL. A hostile operating-system principal that can read the key or replace
|
|
136
|
-
state-root entries remains outside the documented filesystem trust boundary.
|
|
137
|
-
|
|
138
|
-
Raw installed-game or dependency sprite, font, and bitmap files are never registered as downloadable resources. Structured JSON evidence strips embedded raster and glyph payloads, retaining only source-linked hashes, paths, frame and dimension metadata. Composite SVG/PNG reviews may contain processed frames or glyphs required to inspect the requested render, but remain generated, authorization-checked workspace evidence rather than raw asset-file resources. Rewrite and reviewed-transaction evidence may contain authorized mod-source before/proposed text and diffs; every artifact remains bound to the workspace principal.
|
|
139
|
-
|
|
140
|
-
The runtime sends no telemetry or analytics. Its only outbound network request is OAuth JWT-key retrieval from the administrator-configured JWKS endpoint; stdio and static-token loopback deployments require no runtime network access.
|
|
141
|
-
|
|
142
|
-
The product never launches, automates, controls, or captures Hearts of Iron IV. Every preview is
|
|
143
|
-
an offline tool-generated render, not a game screenshot or evidence of in-engine behavior.
|
|
144
|
-
|
|
145
|
-
Vulnerabilities should be reported through GitHub private vulnerability reporting as described in the root [security policy](../SECURITY.md).
|