33 */
44
55import { describe , expect , test } from "bun:test" ;
6+ import type { FastMCP } from "fastmcp" ;
67import { z } from "zod" ;
8+ import { registerBatchCommitTool } from "./batch-commit-tool.js" ;
9+ import { registerGitCherryPickTool } from "./git-cherry-pick-tool.js" ;
10+ import { registerGitDiffSummaryTool } from "./git-diff-summary-tool.js" ;
11+ import { registerGitInventoryTool } from "./git-inventory-tool.js" ;
12+ import { registerGitLogTool } from "./git-log-tool.js" ;
13+ import { registerGitMergeTool } from "./git-merge-tool.js" ;
14+ import { registerGitParityTool } from "./git-parity-tool.js" ;
15+ import { registerGitPushTool } from "./git-push-tool.js" ;
16+ import { registerGitResetSoftTool } from "./git-reset-soft-tool.js" ;
17+ import { registerGitStatusTool } from "./git-status-tool.js" ;
18+ import {
19+ registerGitWorktreeAddTool ,
20+ registerGitWorktreeListTool ,
21+ registerGitWorktreeRemoveTool ,
22+ } from "./git-worktree-tool.js" ;
23+ import { registerListPresetsTool } from "./list-presets-tool.js" ;
724import { captureToolDefinitions } from "./test-harness.js" ;
8- import { registerRethunkGitTools } from "./tools.js" ;
925
1026const READ_ONLY_ABSOLUTE_ROOT_TOOLS = [
1127 "git_status" ,
@@ -32,10 +48,22 @@ type JsonObjectSchema = { properties?: Record<string, unknown>; required?: strin
3248
3349function toolSchemas ( ) : Map < string , JsonObjectSchema > {
3450 return new Map (
35- captureToolDefinitions ( registerRethunkGitTools ) . map ( ( tool ) => [
36- tool . name ,
37- z . toJSONSchema ( tool . parameters as z . ZodType ) as JsonObjectSchema ,
38- ] ) ,
51+ captureToolDefinitions ( ( server : FastMCP ) => {
52+ registerGitStatusTool ( server ) ;
53+ registerGitInventoryTool ( server ) ;
54+ registerGitParityTool ( server ) ;
55+ registerListPresetsTool ( server ) ;
56+ registerGitLogTool ( server ) ;
57+ registerGitDiffSummaryTool ( server ) ;
58+ registerGitWorktreeListTool ( server ) ;
59+ registerBatchCommitTool ( server ) ;
60+ registerGitPushTool ( server ) ;
61+ registerGitMergeTool ( server ) ;
62+ registerGitCherryPickTool ( server ) ;
63+ registerGitResetSoftTool ( server ) ;
64+ registerGitWorktreeAddTool ( server ) ;
65+ registerGitWorktreeRemoveTool ( server ) ;
66+ } ) . map ( ( tool ) => [ tool . name , z . toJSONSchema ( tool . parameters as z . ZodType ) as JsonObjectSchema ] ) ,
3967 ) ;
4068}
4169
0 commit comments