feat(chat): project-scoped chat — mcpctl chat --project <name> #81
Reference in New Issue
Block a user
Delete Branch "feat/project-chat"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds
mcpctl chat --project <name>— chat directly with a project (no Agent needed).What it does
--allow-secretsexposes a gatedget_secrettool (requires the caller'sview:secrets).--thread,/resume,/threads), delete (/delete,mcpctl delete thread) — RBAC-gated (owner ordelete:projectsadmin override).Design
Reuses the agent-chat orchestrator.
ChatThreadbecomes agent-XOR-project (schema + migration + CHECK).ChatService.prepareProjectContextmirrorsprepareContext; the turn loop, SSE, and tool dispatch are shared.get_secretis handled indispatchTool, gated by--allow-secrets+ RBAC, never routed to an MCP server. Newroutes/project-chat.ts; RBACrun:projects:<name>.CLI
chat --project(+--allow-secrets), REPL/threads /resume /delete,get threads --project,delete thread --project. Completions regenerated.Tests / gates
docs/chat.md"Project chat" section.Deploy note: needs an mcpd image rebuild +
prisma migrate deploy(adds the ChatThread project column) and an RPM for the CLI.🤖 Generated with Claude Code
mcpctl chat --project <name>