Skip to content

Server typecheck fails on main: McpHttpServer.test.ts tool-hiding test misses issue services #472

Closed

Description

@tannerpolley

Introduced by the #469 sync's follow-up (the test "hides ungated issue writes from managed threads and their descendants", apps/server/src/mcp/McpHttpServer.test.ts:1711). It registers the real issues toolkit, but the Effect it builds still requires IssueService | OrchestratorV2 | ProjectService | ThreadIssueService, which the test doesn't provide, so effect-tsgo reports TS2375/TS377004. The test passes when run; only the typecheck fails, and so does check:changed for anything that selects this package.

Fix: provide the smallest stub layers for those four services (or build the toolkit with a stub handler layer), so the test keeps exercising the real tool annotations. Don't weaken it: it must still fail if create_issue loses its annotation.

Done: the server typecheck is clean apart from the 3 known mobile errors in other packages, and the test still passes and still fails without the annotation.

Activity

  1. tannerpolley commented on Nov 18, 2026

    @tannerpolley
    OwnerAuthor

    T3 Code status: Unavailable

    Issue: #472 Server typecheck fails on main: McpHttpServer.test.ts tool-hiding test misses issue services

    Thread: thread:delegated-task:command%3Amcp%3A53eed4d4-49de-4205-ba6f-a35a0b15b7c9%3Adelegate-task%3Aissue-472-typecheck-2026-11-18

    Model: claude-sonnet-5-5

    Branch: issue-472-server-typecheck-fails-on-main

    Updated: 2026-11-23T19:32:31.691Z

  2. tannerpolley commented on Nov 18, 2026

    @tannerpolley
    OwnerAuthor

    T3 Code closeout: done

    Issue: #472 Server typecheck fails on main: McpHttpServer.test.ts tool-hiding test misses issue services
    Thread: thread:delegated-task:command%3Amcp%3A53eed4d4-49de-4205-ba6f-a35a0b15b7c9%3Adelegate-task%3Aissue-472-typecheck-2026-11-18
    Model: claude-sonnet-5-5
    Branch: issue-472-server-typecheck-fails-on-main
    Completed: 2026-11-18T01:37:10.549Z

    I fixed #472 and opened draft PR #473, which closes it. I did not merge it.

    The test "hides ungated issue writes from managed threads and their descendants" now provides empty Layer.mock stubs for IssueService, OrchestratorV2, ProjectService and ThreadIssueService. This follows the pattern its neighbours in apps/server/src/mcp/McpHttpServer.test.ts already use, and I added two imports for it. The test still uses the real tool annotations.

    • Reproduced: effect-tsgo tsrs --noEmit -p . in apps/server showed exactly the two Server typecheck fails on main: McpHttpServer.test.ts tool-hiding test misses issue services #472 errors, TS2375 and TS377004, at McpHttpServer.test.ts:1711.
    • Typecheck after the fix: it reports no errors. The 3 mobile errors you mentioned are in apps/mobile, which this server-only run doesn't cover.
    • Test: it passes.
    • Mutation: I deleted the hiddenFromRepositoryManaged annotation from create_issue in tools.ts and the test failed, with create_issue showing up in the managed list. I then reverted tools.ts with git checkout, and the tree is clean apart from the intended test change.
    • check:changed: vp run check:changed passes (format, lint, knip, typecheck of 3 packages, tests).

    GitHub has reported no CI checks on the PR yet. All commands ran through agent-heavy. I did not touch ~/.t3/userdata or kill any processes.

    PR #473, head f58f5fc, checks and reviews: none reported yet (draft).

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions