# refactor\(server\): classify preview toolkit exports · PR \#10281 · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/pull/10281)

Repository: [pingdotgg/t3code](https://git.cafe/pingdotgg/t3code)

Visibility: public

State: merged

Source repository: pingdotgg/t3code

Source branch: cleanup-server/mcp-preview-internals

Target branch: cleanup-server/source-control-registry

Head commit: 210288fd28dda49cfbe56e4bc5feac28f4d2edc0

[Discussion and reviews](https://git.cafe/pingdotgg/t3code/pull/10281)

[Commits](https://git.cafe/pingdotgg/t3code/pull/10281/commits?format=markdown)

[Files changed](https://git.cafe/pingdotgg/t3code/pull/10281/diffs?format=markdown)

## Description

---

The MCP preview toolkit had 14 unclassified runtime exports. This keeps each tool definition private to its toolkit assembly and removes the unused broad handler layer while retaining the standard and snapshot handler layers used by the server.

This is layer 8 of 9 in the server Knip cleanup stack.

Verification after rebasing onto current main: server typecheck and the server-only Knip export audit pass. Changed-file lint and formatting pass, with one existing lint warning. Focused auth, provider, source-control, preview toolkit, orchestration, and Knip preprocessor tests pass: 90 tests across 9 files. This changes server export visibility and static analysis; screenshots do not apply.

Model: gpt-6 astra. Harness: Codex in T3 Code.

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->

## Summary by CodeRabbit

* **Refactor**
  * Simplified the preview toolkit’s internal structure without changing the behavior or schemas of available preview tools.
  * Preview tool definitions are no longer individually exposed through the public interface, while snapshot functionality remains available.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
