test(server): unit-test MCP server + tool allowlist assembly (#273 follow-up) #288
No reviewers
Labels
No labels
area:agents
area:dashboard
area:database
area:design
area:design-review
area:flows
area:infra
area:meta
area:security
area:sessions
area:webhook
area:workdir
security
type:bug
type:chore
type:meta
type:user-story
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
charles/claude-hooks!288
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "test/s11-mcp-config"
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?
PR #273 s11 extraction follow-up. Covers
mcp-config.ts.Coverage (11 tests across 2 describe blocks)
buildMcpSetup — stdio MCP spec assembly(6)allowedToolsstabilityFORGEJO_TOOLS_ALLOWLIST + env/SDK lockstep(5)FORGEJO_MCP_TOOLScomma-joined + whitespace-freemcp__forgejo__<name>env/SDK lockstepmcp__forgejo__*wildcardSibling-file cleanup
Removed a duplicated
buildMcpSetupdescribe block fromagent-runner.test.ts(+ unused import); left a breadcrumb comment pointing at the new location.Checks
bunx tsc --noEmit -p apps/server/tsconfig.json— EXIT=0bun test apps/server/src/domain/agent/mcp-config.test.ts— 11/11 passbun test apps/server/src/domain/agent/{agent-runner,mcp-config}.test.ts— 57 pass / 0 fail (sanity check that the move didn't lose coverage)