From 4c7a0710912757f7f83892b4f9a132c419cbc205 Mon Sep 17 00:00:00 2001 From: divyanshujethi Date: Sat, 7 Nov 2026 06:10:06 +0530 Subject: [PATCH 1/3] feat(mcp): add official Model Context Protocol server.json, smithery.yaml and publish workflow --- .github/workflows/publish-mcp.yml | 34 +++++++++++++++++++++++++++++++ server.json | 23 +++++++++++++++++++++ smithery.yaml | 24 ++++++++++++++++++++++ 3 files changed, 81 insertions(+) create mode 100644 .github/workflows/publish-mcp.yml create mode 100644 server.json create mode 100644 smithery.yaml diff --git a/.github/workflows/publish-mcp.yml b/.github/workflows/publish-mcp.yml new file mode 100644 index 0000000..8456dee --- /dev/null +++ b/.github/workflows/publish-mcp.yml @@ -0,0 +1,34 @@ +name: Publish to Official MCP Registry + +on: + release: + types: [published] + workflow_dispatch: + +jobs: + publish-mcp: + name: Publish Server to modelcontextprotocol/registry + runs-on: ubuntu-latest + permissions: + id-token: write + contents: read + + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + + - name: Install mcp-publisher + run: | + curl -sSL "https://github.com/modelcontextprotocol/registry/releases/latest/download/mcp-publisher_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz" | tar xz mcp-publisher + chmod +x mcp-publisher + + - name: Authenticate via GitHub OIDC + run: ./mcp-publisher login github-oidc + + - name: Publish server.json to MCP Registry + run: ./mcp-publisher publish diff --git a/server.json b/server.json new file mode 100644 index 0000000..7589f19 --- /dev/null +++ b/server.json @@ -0,0 +1,23 @@ +{ + "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json", + "name": "io.github.ritualdev-lab/agentshield", + "title": "AgentShield Enterprise Zero-Leak Secret Defense & Kernel Sandbox", + "description": "Kernel-level OS sandbox (Bubblewrap, Landlock, Seatbelt, AppContainer) and secret firewall preventing autonomous AI coding agents from leaking credentials or altering host state", + "version": "0.2.1", + "status": "active", + "repository": { + "url": "https://github.com/RitualDev-Lab/AgentShield", + "source": "github" + }, + "website": "https://ritualdev.in/agentshield", + "packages": [ + { + "registryType": "npm", + "identifier": "@ritualdev-lab/agentshield", + "version": "0.2.1", + "transport": { + "type": "stdio" + } + } + ] +} diff --git a/smithery.yaml b/smithery.yaml new file mode 100644 index 0000000..8cf678d --- /dev/null +++ b/smithery.yaml @@ -0,0 +1,24 @@ +startCommand: + type: stdio + configSchema: + type: object + properties: + mode: + type: string + enum: ["STRICT", "PERMISSIVE", "AUDIT"] + default: "STRICT" + title: "Enforcement Mode" + description: "Sandbox enforcement level for command execution" + redactSecrets: + type: boolean + default: true + title: "Redact Secrets" + description: "Automatically mask API tokens, credentials, and high-entropy secrets" + commandFunction: |- + (config) => ({ + command: 'npx', + args: ['-y', '@ritualdev-lab/agentshield', 'sidecar'] + }) + exampleConfig: + mode: "STRICT" + redactSecrets: true From ebec78aaab6ac7d920ef1b0c6919a2a687cffa7b Mon Sep 17 00:00:00 2001 From: divyanshujethi Date: Sat, 7 Nov 2026 06:18:28 +0530 Subject: [PATCH 2/3] fix(ci): shorten MCP description to <=100 chars and upgrade scorecard to v2.4.1 --- .github/workflows/scorecard.yml | 2 +- server.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml index b508388..e954e78 100644 --- a/.github/workflows/scorecard.yml +++ b/.github/workflows/scorecard.yml @@ -27,7 +27,7 @@ jobs: persist-credentials: false - name: Run OpenSSF Scorecard - uses: ossf/scorecard-action@v2.4.0 + uses: ossf/scorecard-action@v2.4.1 with: results_file: results.sarif results_format: sarif diff --git a/server.json b/server.json index 7589f19..ff33064 100644 --- a/server.json +++ b/server.json @@ -2,7 +2,7 @@ "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json", "name": "io.github.ritualdev-lab/agentshield", "title": "AgentShield Enterprise Zero-Leak Secret Defense & Kernel Sandbox", - "description": "Kernel-level OS sandbox (Bubblewrap, Landlock, Seatbelt, AppContainer) and secret firewall preventing autonomous AI coding agents from leaking credentials or altering host state", + "description": "Enterprise Zero-Leak Secret Defense & Kernel Sandbox for Autonomous AI Agents", "version": "0.2.1", "status": "active", "repository": { From 7116b67ca40cb62ff37bfd322ff1aba65663a69c Mon Sep 17 00:00:00 2001 From: divyanshujethi Date: Sat, 7 Nov 2026 06:34:33 +0530 Subject: [PATCH 3/3] feat: add mcpName to package.json for official MCP registry validation --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index e717af2..57c5a6d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,7 @@ { "name": "@ritualdev-lab/agentshield", "version": "0.2.1", + "mcpName": "io.github.RitualDev-Lab/agentshield", "description": "Enterprise-grade Zero-Leak Secret Defense & Sandbox for Autonomous AI Coding Agents", "type": "module", "bin": {