@ldraney/github-mcp 0.1.0 → 0.2.0-beta.1
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.
- package/dist/index.js +8 -2
- package/dist/prompts/activity-summary.d.ts +10 -0
- package/dist/prompts/activity-summary.js +154 -0
- package/dist/prompts/code-review.d.ts +9 -0
- package/dist/prompts/code-review.js +145 -0
- package/dist/prompts/issue-triage.d.ts +9 -0
- package/dist/prompts/issue-triage.js +202 -0
- package/dist/prompts/release-notes.d.ts +9 -0
- package/dist/prompts/release-notes.js +236 -0
- package/dist/server.d.ts +8 -1
- package/dist/server.js +36 -210
- package/dist/tools/categories/actions.d.ts +2 -5
- package/dist/tools/categories/actions.js +640 -369
- package/dist/tools/categories/activity.d.ts +2 -0
- package/dist/tools/categories/activity.js +534 -0
- package/dist/tools/categories/apps.d.ts +2 -0
- package/dist/tools/categories/apps.js +224 -0
- package/dist/tools/categories/billing.d.ts +2 -0
- package/dist/tools/categories/billing.js +145 -0
- package/dist/tools/categories/checks.d.ts +2 -0
- package/dist/tools/categories/checks.js +554 -0
- package/dist/tools/categories/codeScanning.d.ts +2 -0
- package/dist/tools/categories/codeScanning.js +375 -0
- package/dist/tools/categories/codeSecurity.d.ts +2 -0
- package/dist/tools/categories/codeSecurity.js +463 -0
- package/dist/tools/categories/codesOfConduct.d.ts +2 -0
- package/dist/tools/categories/codesOfConduct.js +45 -0
- package/dist/tools/categories/codespaces.d.ts +2 -0
- package/dist/tools/categories/codespaces.js +259 -0
- package/dist/tools/categories/copilot.d.ts +2 -0
- package/dist/tools/categories/copilot.js +187 -0
- package/dist/tools/categories/dependabot.d.ts +2 -0
- package/dist/tools/categories/dependabot.js +454 -0
- package/dist/tools/categories/emojis.d.ts +2 -0
- package/dist/tools/categories/emojis.js +22 -0
- package/dist/tools/categories/gists.d.ts +2 -5
- package/dist/tools/categories/gists.js +474 -285
- package/dist/tools/categories/git.d.ts +2 -0
- package/dist/tools/categories/git.js +520 -0
- package/dist/tools/categories/gitignore.d.ts +2 -0
- package/dist/tools/categories/gitignore.js +45 -0
- package/dist/tools/categories/index.d.ts +33 -0
- package/dist/tools/categories/index.js +33 -0
- package/dist/tools/categories/interactions.d.ts +2 -0
- package/dist/tools/categories/interactions.js +184 -0
- package/dist/tools/categories/issues.d.ts +2 -5
- package/dist/tools/categories/issues.js +692 -390
- package/dist/tools/categories/licenses.d.ts +2 -0
- package/dist/tools/categories/licenses.js +95 -0
- package/dist/tools/categories/markdown.d.ts +2 -0
- package/dist/tools/categories/markdown.js +64 -0
- package/dist/tools/categories/meta.d.ts +2 -0
- package/dist/tools/categories/meta.js +74 -0
- package/dist/tools/categories/migrations.d.ts +2 -0
- package/dist/tools/categories/migrations.js +290 -0
- package/dist/tools/categories/orgs.d.ts +2 -5
- package/dist/tools/categories/orgs.js +585 -417
- package/dist/tools/categories/packages.d.ts +2 -0
- package/dist/tools/categories/packages.js +918 -0
- package/dist/tools/categories/projects.d.ts +2 -0
- package/dist/tools/categories/projects.js +692 -0
- package/dist/tools/categories/pulls.d.ts +2 -5
- package/dist/tools/categories/pulls.js +715 -332
- package/dist/tools/categories/rateLimit.d.ts +2 -0
- package/dist/tools/categories/rateLimit.js +22 -0
- package/dist/tools/categories/reactions.d.ts +2 -0
- package/dist/tools/categories/reactions.js +385 -0
- package/dist/tools/categories/repos.d.ts +2 -5
- package/dist/tools/categories/repos.js +844 -366
- package/dist/tools/categories/search.d.ts +2 -5
- package/dist/tools/categories/search.js +294 -196
- package/dist/tools/categories/secretScanning.d.ts +2 -0
- package/dist/tools/categories/secretScanning.js +324 -0
- package/dist/tools/categories/securityAdvisories.d.ts +2 -0
- package/dist/tools/categories/securityAdvisories.js +407 -0
- package/dist/tools/categories/teams.d.ts +2 -0
- package/dist/tools/categories/teams.js +614 -0
- package/dist/tools/categories/users.d.ts +2 -5
- package/dist/tools/categories/users.js +474 -247
- package/dist/tools/generator.d.ts +35 -15
- package/dist/tools/generator.js +113 -57
- package/dist/tools/types.d.ts +63 -0
- package/dist/tools/types.js +17 -0
- package/package.json +1 -1
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import { successResult } from '../types.js';
|
|
2
|
+
export const interactionsCategory = {
|
|
3
|
+
name: 'interactions',
|
|
4
|
+
description: 'GitHub interaction limits tools',
|
|
5
|
+
tools: [
|
|
6
|
+
// get_restrictions_for_repo - Get interaction restrictions for a repository
|
|
7
|
+
{
|
|
8
|
+
definition: {
|
|
9
|
+
name: 'github_interactions_get_restrictions_for_repo',
|
|
10
|
+
description: 'Get interaction restrictions for a repository. Shows the interaction limit for the repository and when it expires.',
|
|
11
|
+
inputSchema: {
|
|
12
|
+
type: 'object',
|
|
13
|
+
properties: {
|
|
14
|
+
owner: {
|
|
15
|
+
type: 'string',
|
|
16
|
+
description: 'Repository owner',
|
|
17
|
+
},
|
|
18
|
+
repo: {
|
|
19
|
+
type: 'string',
|
|
20
|
+
description: 'Repository name',
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
required: ['owner', 'repo'],
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
handler: async (octokit, args) => {
|
|
27
|
+
const { data } = await octokit.interactions.getRestrictionsForRepo({
|
|
28
|
+
owner: args.owner,
|
|
29
|
+
repo: args.repo,
|
|
30
|
+
});
|
|
31
|
+
return successResult(data);
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
// set_restrictions_for_repo - Set interaction restrictions for a repository
|
|
35
|
+
{
|
|
36
|
+
definition: {
|
|
37
|
+
name: 'github_interactions_set_restrictions_for_repo',
|
|
38
|
+
description: 'Set interaction restrictions for a repository. Limits interactions (comments, opening issues, etc.) to a subset of users.',
|
|
39
|
+
inputSchema: {
|
|
40
|
+
type: 'object',
|
|
41
|
+
properties: {
|
|
42
|
+
owner: {
|
|
43
|
+
type: 'string',
|
|
44
|
+
description: 'Repository owner',
|
|
45
|
+
},
|
|
46
|
+
repo: {
|
|
47
|
+
type: 'string',
|
|
48
|
+
description: 'Repository name',
|
|
49
|
+
},
|
|
50
|
+
limit: {
|
|
51
|
+
type: 'string',
|
|
52
|
+
enum: ['existing_users', 'contributors_only', 'collaborators_only'],
|
|
53
|
+
description: 'The group of users who can interact: existing_users (accounts older than 24 hours), contributors_only (users with prior commits), collaborators_only (users with push access)',
|
|
54
|
+
},
|
|
55
|
+
expiry: {
|
|
56
|
+
type: 'string',
|
|
57
|
+
enum: ['one_day', 'three_days', 'one_week', 'one_month', 'six_months'],
|
|
58
|
+
description: 'Duration of the restriction',
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
required: ['owner', 'repo', 'limit'],
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
handler: async (octokit, args) => {
|
|
65
|
+
const { data } = await octokit.interactions.setRestrictionsForRepo({
|
|
66
|
+
owner: args.owner,
|
|
67
|
+
repo: args.repo,
|
|
68
|
+
limit: args.limit,
|
|
69
|
+
expiry: args.expiry,
|
|
70
|
+
});
|
|
71
|
+
return successResult(data);
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
// remove_restrictions_for_repo - Remove interaction restrictions from a repository
|
|
75
|
+
{
|
|
76
|
+
definition: {
|
|
77
|
+
name: 'github_interactions_remove_restrictions_for_repo',
|
|
78
|
+
description: 'Remove interaction restrictions from a repository. Removes all interaction limits, allowing all users to interact.',
|
|
79
|
+
inputSchema: {
|
|
80
|
+
type: 'object',
|
|
81
|
+
properties: {
|
|
82
|
+
owner: {
|
|
83
|
+
type: 'string',
|
|
84
|
+
description: 'Repository owner',
|
|
85
|
+
},
|
|
86
|
+
repo: {
|
|
87
|
+
type: 'string',
|
|
88
|
+
description: 'Repository name',
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
required: ['owner', 'repo'],
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
handler: async (octokit, args) => {
|
|
95
|
+
await octokit.interactions.removeRestrictionsForRepo({
|
|
96
|
+
owner: args.owner,
|
|
97
|
+
repo: args.repo,
|
|
98
|
+
});
|
|
99
|
+
return successResult({ success: true, message: 'Interaction restrictions removed for repository' });
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
// get_restrictions_for_org - Get interaction restrictions for an organization
|
|
103
|
+
{
|
|
104
|
+
definition: {
|
|
105
|
+
name: 'github_interactions_get_restrictions_for_org',
|
|
106
|
+
description: 'Get interaction restrictions for an organization. Shows the interaction limit for the organization and when it expires.',
|
|
107
|
+
inputSchema: {
|
|
108
|
+
type: 'object',
|
|
109
|
+
properties: {
|
|
110
|
+
org: {
|
|
111
|
+
type: 'string',
|
|
112
|
+
description: 'Organization name',
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
required: ['org'],
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
handler: async (octokit, args) => {
|
|
119
|
+
const { data } = await octokit.interactions.getRestrictionsForOrg({
|
|
120
|
+
org: args.org,
|
|
121
|
+
});
|
|
122
|
+
return successResult(data);
|
|
123
|
+
},
|
|
124
|
+
},
|
|
125
|
+
// set_restrictions_for_org - Set interaction restrictions for an organization
|
|
126
|
+
{
|
|
127
|
+
definition: {
|
|
128
|
+
name: 'github_interactions_set_restrictions_for_org',
|
|
129
|
+
description: 'Set interaction restrictions for an organization. Limits interactions for all public repositories in the organization.',
|
|
130
|
+
inputSchema: {
|
|
131
|
+
type: 'object',
|
|
132
|
+
properties: {
|
|
133
|
+
org: {
|
|
134
|
+
type: 'string',
|
|
135
|
+
description: 'Organization name',
|
|
136
|
+
},
|
|
137
|
+
limit: {
|
|
138
|
+
type: 'string',
|
|
139
|
+
enum: ['existing_users', 'contributors_only', 'collaborators_only'],
|
|
140
|
+
description: 'The group of users who can interact: existing_users (accounts older than 24 hours), contributors_only (users with prior commits), collaborators_only (users with push access)',
|
|
141
|
+
},
|
|
142
|
+
expiry: {
|
|
143
|
+
type: 'string',
|
|
144
|
+
enum: ['one_day', 'three_days', 'one_week', 'one_month', 'six_months'],
|
|
145
|
+
description: 'Duration of the restriction',
|
|
146
|
+
},
|
|
147
|
+
},
|
|
148
|
+
required: ['org', 'limit'],
|
|
149
|
+
},
|
|
150
|
+
},
|
|
151
|
+
handler: async (octokit, args) => {
|
|
152
|
+
const { data } = await octokit.interactions.setRestrictionsForOrg({
|
|
153
|
+
org: args.org,
|
|
154
|
+
limit: args.limit,
|
|
155
|
+
expiry: args.expiry,
|
|
156
|
+
});
|
|
157
|
+
return successResult(data);
|
|
158
|
+
},
|
|
159
|
+
},
|
|
160
|
+
// remove_restrictions_for_org - Remove interaction restrictions from an organization
|
|
161
|
+
{
|
|
162
|
+
definition: {
|
|
163
|
+
name: 'github_interactions_remove_restrictions_for_org',
|
|
164
|
+
description: 'Remove interaction restrictions from an organization. Removes all interaction limits for all public repositories in the organization.',
|
|
165
|
+
inputSchema: {
|
|
166
|
+
type: 'object',
|
|
167
|
+
properties: {
|
|
168
|
+
org: {
|
|
169
|
+
type: 'string',
|
|
170
|
+
description: 'Organization name',
|
|
171
|
+
},
|
|
172
|
+
},
|
|
173
|
+
required: ['org'],
|
|
174
|
+
},
|
|
175
|
+
},
|
|
176
|
+
handler: async (octokit, args) => {
|
|
177
|
+
await octokit.interactions.removeRestrictionsForOrg({
|
|
178
|
+
org: args.org,
|
|
179
|
+
});
|
|
180
|
+
return successResult({ success: true, message: 'Interaction restrictions removed for organization' });
|
|
181
|
+
},
|
|
182
|
+
},
|
|
183
|
+
],
|
|
184
|
+
};
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export declare const issuesTools: Tool[];
|
|
4
|
-
export declare function handleIssuesTool(octokit: Octokit, args: Record<string, unknown>): Promise<unknown>;
|
|
5
|
-
//# sourceMappingURL=issues.d.ts.map
|
|
1
|
+
import type { ToolCategory } from '../types.js';
|
|
2
|
+
export declare const issuesCategory: ToolCategory;
|