Files
t3code/packages/shared/src/t3McpToolPresentation.test.ts
T
Julius Marminge 5e058ee234 feat(orchestration): track provider retries and thread visits
- Project retry progress and recovery for Codex and Claude turns
- Sync thread completion markers through server-side visit timestamps
2026-08-15 16:50:25 +02:00

53 lines
1.7 KiB
TypeScript

import { describe, expect, it } from "vite-plus/test";
import { resolveT3McpToolPresentation } from "./t3McpToolPresentation.ts";
describe("resolveT3McpToolPresentation", () => {
it("pretty prints Claude and Cursor T3 MCP tool names", () => {
expect(resolveT3McpToolPresentation("mcp__t3-code__t3_thread_read")).toEqual({
displayName: "Read a T3 thread",
logo: "t3-code",
});
});
it("pretty prints Codex T3 MCP tool names", () => {
expect(resolveT3McpToolPresentation("t3-code.create_threads")).toEqual({
displayName: "Create T3 threads",
logo: "t3-code",
});
});
it("pretty prints bare T3 MCP toolkit names", () => {
expect(resolveT3McpToolPresentation("list_scheduled_tasks")).toEqual({
displayName: "List scheduled tasks",
logo: "t3-code",
});
});
it("pretty prints worktree T3 MCP tool names", () => {
expect(resolveT3McpToolPresentation("mcp__t3-code__t3_worktree_handoff")).toEqual({
displayName: "Hand off thread to a git worktree",
logo: "t3-code",
});
expect(resolveT3McpToolPresentation("t3-code.t3_worktree_status")).toEqual({
displayName: "Get thread worktree status",
logo: "t3-code",
});
});
it("pretty prints preview T3 MCP tool names", () => {
expect(resolveT3McpToolPresentation("T3-code.preview_open")).toEqual({
displayName: "Open a page in the preview browser",
logo: "t3-code",
});
expect(resolveT3McpToolPresentation("mcp__t3-code__preview_status")).toEqual({
displayName: "Get preview browser status",
logo: "t3-code",
});
});
it("keeps unknown MCP tools on the generic renderer path", () => {
expect(resolveT3McpToolPresentation("mcp__github__search_issues")).toBeNull();
});
});