@git-agentic/sentinel-mcp 0.1.0-alpha.1 → 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/README.md +1 -1
- package/dist/client.d.ts +2 -5
- package/dist/index.js +2 -2
- package/dist/tools.js +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ server exposing Sentinel's pre-install audit tools to agent hosts. It is a
|
|
|
5
5
|
thin client to a running Sentinel proxy — it audits nothing itself, and the
|
|
6
6
|
only write tool *requests* approval; it can never grant one.
|
|
7
7
|
|
|
8
|
-
> **Alpha.** This is a pre-1.0 preview
|
|
8
|
+
> **Alpha.** This is a pre-1.0 alpha preview. APIs may change
|
|
9
9
|
> without notice. Not production-ready.
|
|
10
10
|
|
|
11
11
|
```bash
|
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.
|
|
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://
|
|
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
|
|
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.
|
|
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.
|
|
45
|
+
"@git-agentic/sentinel-core": "0.1.0-alpha.3",
|
|
46
46
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
47
|
-
"zod": "^
|
|
47
|
+
"zod": "^4.6.7"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@types/node": "^24.13.2"
|