gitx.do 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,136 @@
1
+ /**
2
+ * Git MCP Tools
3
+ *
4
+ * MCP tool definitions for git operations.
5
+ * Each tool follows the MCP specification with JSON Schema input validation.
6
+ *
7
+ * Available tools:
8
+ * - git_status: Show repository status
9
+ * - git_log: Show commit history
10
+ * - git_diff: Show differences
11
+ * - git_show: Show objects
12
+ * - git_commit: Create commits
13
+ * - git_branch: Manage branches
14
+ * - git_checkout: Switch branches
15
+ * - git_add: Stage files
16
+ * - git_reset: Reset HEAD
17
+ * - git_merge: Merge branches
18
+ * - git_rebase: Rebase commits
19
+ * - git_stash: Stash changes
20
+ * - git_tag: Manage tags
21
+ * - git_remote: Manage remotes
22
+ * - git_fetch: Fetch from remotes
23
+ * - git_push: Push to remotes
24
+ * - git_pull: Pull from remotes
25
+ * - git_clone: Clone repositories
26
+ * - git_init: Initialize repositories
27
+ * - git_blame: Show line-by-line authorship
28
+ *
29
+ * @module mcp/tools
30
+ */
31
+ import type { McpToolSchema, McpTool } from './types';
32
+ /**
33
+ * git_status - Show repository status
34
+ */
35
+ export declare const gitStatusToolSchema: McpToolSchema;
36
+ /**
37
+ * git_log - Show commit history
38
+ */
39
+ export declare const gitLogToolSchema: McpToolSchema;
40
+ /**
41
+ * git_diff - Show differences
42
+ */
43
+ export declare const gitDiffToolSchema: McpToolSchema;
44
+ /**
45
+ * git_show - Show objects
46
+ */
47
+ export declare const gitShowToolSchema: McpToolSchema;
48
+ /**
49
+ * git_commit - Create commits (write operation)
50
+ */
51
+ export declare const gitCommitToolSchema: McpToolSchema;
52
+ /**
53
+ * git_branch - Manage branches
54
+ */
55
+ export declare const gitBranchToolSchema: McpToolSchema;
56
+ /**
57
+ * git_checkout - Switch branches (write operation)
58
+ */
59
+ export declare const gitCheckoutToolSchema: McpToolSchema;
60
+ /**
61
+ * git_add - Stage files (write operation)
62
+ */
63
+ export declare const gitAddToolSchema: McpToolSchema;
64
+ /**
65
+ * git_reset - Reset HEAD (write operation)
66
+ */
67
+ export declare const gitResetToolSchema: McpToolSchema;
68
+ /**
69
+ * git_merge - Merge branches (write operation)
70
+ */
71
+ export declare const gitMergeToolSchema: McpToolSchema;
72
+ /**
73
+ * git_rebase - Rebase commits (write operation)
74
+ */
75
+ export declare const gitRebaseToolSchema: McpToolSchema;
76
+ /**
77
+ * git_stash - Stash changes (write operation)
78
+ */
79
+ export declare const gitStashToolSchema: McpToolSchema;
80
+ /**
81
+ * git_tag - Manage tags
82
+ */
83
+ export declare const gitTagToolSchema: McpToolSchema;
84
+ /**
85
+ * git_remote - Manage remotes
86
+ */
87
+ export declare const gitRemoteToolSchema: McpToolSchema;
88
+ /**
89
+ * git_fetch - Fetch from remotes (write operation - updates refs)
90
+ */
91
+ export declare const gitFetchToolSchema: McpToolSchema;
92
+ /**
93
+ * git_push - Push to remotes (write operation)
94
+ */
95
+ export declare const gitPushToolSchema: McpToolSchema;
96
+ /**
97
+ * git_pull - Pull from remotes (write operation)
98
+ */
99
+ export declare const gitPullToolSchema: McpToolSchema;
100
+ /**
101
+ * git_clone - Clone repositories (write operation)
102
+ */
103
+ export declare const gitCloneToolSchema: McpToolSchema;
104
+ /**
105
+ * git_init - Initialize repositories (write operation)
106
+ */
107
+ export declare const gitInitToolSchema: McpToolSchema;
108
+ /**
109
+ * git_blame - Show line-by-line authorship
110
+ */
111
+ export declare const gitBlameToolSchema: McpToolSchema;
112
+ /**
113
+ * Tools that require write access (modify repository state)
114
+ */
115
+ export declare const WRITE_TOOLS: Set<string>;
116
+ /**
117
+ * Tools that may require write access depending on operation
118
+ */
119
+ export declare const CONDITIONAL_WRITE_TOOLS: Set<string>;
120
+ /**
121
+ * Read-only tools (never modify repository state)
122
+ */
123
+ export declare const READ_TOOLS: Set<string>;
124
+ /**
125
+ * Check if a tool invocation requires write access
126
+ */
127
+ export declare function requiresWriteAccess(toolName: string, params: Record<string, unknown>): boolean;
128
+ /**
129
+ * Array of all built-in git MCP tools.
130
+ */
131
+ export declare const gitTools: McpTool[];
132
+ /**
133
+ * Map of tool names to tools for quick lookup
134
+ */
135
+ export declare const gitToolMap: Map<string, McpTool<Record<string, import("./types").PropertySchema>>>;
136
+ //# sourceMappingURL=tools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../src/mcp/tools.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,OAAO,EAAiC,MAAM,SAAS,CAAA;AAMpF;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,aAgBjC,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,aAqC9B,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,aAgC/B,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,aA2B/B,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,aA6BjC,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,aAgCjC,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,aAqBnC,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,aAyB9B,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,aAqBhC,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,aA6BhC,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,aAwBjC,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,aA0BhC,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,aAgC9B,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,aA6BjC,CAAA;AAED;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