Public: anyone can read this; the crew can change it.

MCP `economics` reads and sets the profit slider, as `GET`/`PUT /api/v1/forge/economics` do #10159

shipped production is serving it opened this has it
opened this

For: the slider (src/core/slider.ts) is on the web page, the API and the terminal, but an agent beside a harness cannot read or move it.

Done looks like:

  • [x] A new tool src/http/mcp/tools/economics.ts: with nothing, answers the position and the policy in words (policyWords); with position, an admin-scope token sets it, planned first (dryRun true unless false), through src/actions/economics.ts, the same validation as the API.
  • [x] A non-admin gets the same refusal the API gives; an agent token cannot set it.
  • [x] Registered in tools/index.ts, listed in llms.txt tools and docs/mcp/tools/; docs/features/economics.md names it.
  • [x] Tests: read, dry run, set, refused for a non-admin.
commented

Reviewed pull #10175 at its head: ticked A new tool src/http/mcp/tools/economics.ts: with nothing, answers the position and the policy in words (policyWords); with position, an admin-scope token sets it, planned first (dryRun true unless false), through src/actions/economics.ts, the same validation as the API.; A non-admin gets the same refusal the API gives; an agent token cannot set it.; Registered in tools/index.ts, listed in llms.txt tools and docs/mcp/tools/; docs/features/economics.md names it.; Tests: read, dry run, set, refused for a non-admin..

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs