@remogram/mcp 0.1.0-beta.4 → 0.1.0-beta.5

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/register-tools.mjs +68 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remogram/mcp",
3
- "version": "0.1.0-beta.4",
3
+ "version": "0.1.0-beta.5",
4
4
  "description": "Remogram MCP server delegating to CLI",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -30,7 +30,7 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "@modelcontextprotocol/sdk": "^1.17.0",
33
- "@remogram/cli": "0.1.0-beta.4",
33
+ "@remogram/cli": "0.1.0-beta.5",
34
34
  "zod": "^3.25.76"
35
35
  }
36
36
  }
@@ -72,6 +72,34 @@ export function registerTools(server) {
72
72
  readOnlyHint: false,
73
73
  destructiveHint: true,
74
74
  },
75
+ {
76
+ name: 'status_set',
77
+ description: 'Set a commit status (check context) on the configured forge.',
78
+ inputSchema: z.object({
79
+ sha: z.string().describe('40-character commit SHA'),
80
+ context: z.string().describe('Status context name'),
81
+ state: z.enum(['pending', 'success', 'failure', 'error']).describe('Status state'),
82
+ target_url: z.string().optional().describe('Optional target URL for the status'),
83
+ description: z.string().optional().describe('Optional status description'),
84
+ }),
85
+ args: (input) => {
86
+ const a = [
87
+ 'status',
88
+ 'set',
89
+ '--sha',
90
+ input.sha,
91
+ '--context',
92
+ input.context,
93
+ '--state',
94
+ input.state,
95
+ ];
96
+ if (input.target_url) a.push('--target-url', input.target_url);
97
+ if (input.description) a.push('--description', input.description);
98
+ return a;
99
+ },
100
+ readOnlyHint: false,
101
+ destructiveHint: true,
102
+ },
75
103
  {
76
104
  name: 'pr_status',
77
105
  description: 'PR metadata and mergeability facts.',
@@ -114,6 +142,46 @@ export function registerTools(server) {
114
142
  return a;
115
143
  },
116
144
  },
145
+ {
146
+ name: 'whoami',
147
+ description: 'Authenticated forge identity facts (login, can_write, token scope/expiry signals).',
148
+ inputSchema: z.object({}),
149
+ args: ['whoami'],
150
+ },
151
+ {
152
+ name: 'branch_protection',
153
+ description:
154
+ 'Branch protection policy facts: required status contexts, protected rules, approvals signal.',
155
+ inputSchema: z.object({
156
+ branch_ref: z.string(),
157
+ }),
158
+ args: (input) => ['branch', 'protection', '--branch-ref', input.branch_ref],
159
+ },
160
+ {
161
+ name: 'cr_files',
162
+ description: 'Changed file paths for a change request (bounded, truncation-aware).',
163
+ inputSchema: z.object({
164
+ number: z.number().int().positive(),
165
+ }),
166
+ args: (input) => ['cr', 'files', '--number', String(input.number)],
167
+ },
168
+ {
169
+ name: 'cr_comments',
170
+ description: 'Review comments for a change request (sanitized bodies, truncation-aware).',
171
+ inputSchema: z.object({
172
+ number: z.number().int().positive(),
173
+ }),
174
+ args: (input) => ['cr', 'comments', '--number', String(input.number)],
175
+ },
176
+ {
177
+ name: 'forge_changes',
178
+ description:
179
+ 'Forge activity events since an observed_at boundary (PR lifecycle, head SHA moves, check conclusions).',
180
+ inputSchema: z.object({
181
+ since: z.string().describe('ISO-8601 observed_at boundary'),
182
+ }),
183
+ args: (input) => ['forge', 'changes', '--since', input.since],
184
+ },
117
185
  {
118
186
  name: 'sync_plan',
119
187
  description: 'Local vs remote sync facts and divergent-remote blockers.',