@remogram/mcp 0.1.0-beta.0 → 0.1.0-beta.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remogram/mcp",
3
- "version": "0.1.0-beta.0",
3
+ "version": "0.1.0-beta.2",
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.0",
33
+ "@remogram/cli": "0.1.0-beta.2",
34
34
  "zod": "^3.25.76"
35
35
  }
36
36
  }
@@ -41,10 +41,15 @@ export function registerTools(server) {
41
41
  {
42
42
  name: 'pr_checks',
43
43
  description: 'CI/check conclusions for a PR number or git ref.',
44
- inputSchema: z.object({
45
- number: z.number().int().positive().optional(),
46
- ref: z.string().optional(),
47
- }),
44
+ inputSchema: z
45
+ .object({
46
+ number: z.number().int().positive().optional(),
47
+ ref: z.string().optional(),
48
+ })
49
+ .refine(
50
+ (input) => input.number != null || (input.ref != null && input.ref.trim() !== ''),
51
+ { message: '--number or --ref required for pr checks' },
52
+ ),
48
53
  args: (input) => {
49
54
  const a = ['pr', 'checks'];
50
55
  if (input.number != null) a.push('--number', String(input.number));
package/run-cli.mjs CHANGED
@@ -20,9 +20,7 @@ function safeCliErrorMessage(stderr, stdout) {
20
20
  const capped = capText(raw, MAX_OUTPUT_BYTES);
21
21
  const sanitized = sanitizeField(capped.text);
22
22
  if (!sanitized) return 'CLI did not return JSON';
23
- if (/Bearer\s|ghp_|gho_|glpat-|GITLAB_TOKEN|GITEA_TOKEN/i.test(sanitized)) {
24
- return 'CLI did not return JSON';
25
- }
23
+ if (sanitized.includes('[REDACTED]')) return 'CLI did not return JSON';
26
24
  return sanitized;
27
25
  }
28
26