Skip to content

Prism in Chromeria: MCP toolkit, spawn_thread(role), role settings schema, provider snapshot endpoint #19

Description

@lukemaj

Part of toolboxmd/model-router#115 (the spec; read it first). Stream A: fork server and contracts.

Scope

  • Prism MCP toolkit next to the threads toolkit: prism_submit, prism_status, prism_questions, prism_answer. They call the installed router CLI (~/.codex/plugins/cache/toolboxmd/model-router/<newest>/bin/model-router, state dir ~/.local/share/durable-runner), pass the calling thread as --planner-t3-thread and supply the server URL and a token themselves. Tool descriptions say what each is for and when to use it (prism_submit = full job with dispatcher, fallback, recovery, one PR; spawn_thread(role) = small direct work).
  • spawn_thread accepts role (planner, dispatcher, reviewer, worker, correction, recovery) and applies that role's kit and preferred model unless a model is named; thread-tool scope per role as in Handle terminal exit writes and auto-close exited terminal drawer pingdotgg/t3code#115.
  • Role kits and per-role ordered model preferences live in Chromeria settings, scoped per project and environment like Providers; define the schema in packages/contracts first and push that commit early (stream C builds the settings page on it).
  • An HTTP endpoint returning the provider snapshot (enabled models, options, usage windows with resetsAt) plus role preferences, for the router; turn on interval refresh for OpenCode usage.

Proof

Server tests per tool, role and scope; typecheck, lint, fmt; fork CI (GitHub-hosted); live check on an isolated instance.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions