@git-agentic/sentinel-mcp 0.1.0-alpha.2 → 0.1.0-alpha.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.
package/dist/client.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { AuditReport, Remediation } from "@git-agentic/sentinel-core";
1
+ import type { AuditReport, Coordinate, Remediation } from "@git-agentic/sentinel-core";
2
2
  export declare class ProxyError extends Error {
3
3
  readonly status?: number | undefined;
4
4
  constructor(message: string, status?: number | undefined);
@@ -45,10 +45,7 @@ export declare class ProxyClient {
45
45
  private resolveVersion;
46
46
  audit(pkg: string, version?: string): Promise<AuditReport>;
47
47
  manifest(pkg: string, version?: string): Promise<ManifestResponse>;
48
- auditTree(packages: {
49
- name: string;
50
- version: string;
51
- }[]): Promise<{
48
+ auditTree(packages: Coordinate[]): Promise<{
52
49
  aggregate: {
53
50
  verdict: string;
54
51
  gated: boolean;
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ import { ProxyClient, ProxyError } from "./client.js";
5
5
  import { TOOLS } from "./tools.js";
6
6
  /** Build an McpServer with every Sentinel tool registered against `client`. */
7
7
  export function createMcpServer(client) {
8
- const server = new McpServer({ name: "sentinel", version: "0.1.0-alpha.2" });
8
+ const server = new McpServer({ name: "sentinel", version: "0.1.0-alpha.3" });
9
9
  for (const tool of TOOLS) {
10
10
  server.registerTool(tool.name, { description: tool.description, inputSchema: tool.inputSchema }, async (args) => {
11
11
  try {
@@ -21,7 +21,7 @@ export function createMcpServer(client) {
21
21
  return server;
22
22
  }
23
23
  async function main() {
24
- const client = new ProxyClient(process.env.SENTINEL_PROXY ?? "http://localhost:4873");
24
+ const client = new ProxyClient(process.env.SENTINEL_PROXY ?? "http://127.0.0.1:4873");
25
25
  const server = createMcpServer(client);
26
26
  await server.connect(new StdioServerTransport());
27
27
  }
package/dist/tools.js CHANGED
@@ -33,7 +33,7 @@ export const TOOLS = [
33
33
  inputSchema: { lockfile: z.string() },
34
34
  async handler(args, client) {
35
35
  const coords = parseLockfile(readFileSync(args.lockfile, "utf8"));
36
- const result = await client.auditTree(coords.map((c) => ({ name: c.name, version: c.version })));
36
+ const result = await client.auditTree(coords);
37
37
  return {
38
38
  text: `tree: ${result.aggregate.verdict.toUpperCase()}${result.aggregate.gated ? " (GATED)" : ""} · ` +
39
39
  Object.entries(result.aggregate.counts).map(([k, v]) => `${v} ${k}`).join(" · "),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@git-agentic/sentinel-mcp",
3
- "version": "0.1.0-alpha.2",
3
+ "version": "0.1.0-alpha.3",
4
4
  "description": "Sentinel MCP server: agent-native pre-install audit tools backed by the Sentinel proxy (stdio Model Context Protocol server).",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -42,9 +42,9 @@
42
42
  "npm-audit"
43
43
  ],
44
44
  "dependencies": {
45
- "@git-agentic/sentinel-core": "0.1.0-alpha.2",
45
+ "@git-agentic/sentinel-core": "0.1.0-alpha.3",
46
46
  "@modelcontextprotocol/sdk": "^1.29.0",
47
- "zod": "^3.23.8"
47
+ "zod": "^4.6.7"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@types/node": "^24.13.2"