Add silverback-auth MCP proxy and CI workflow#11
Open
rossnelson wants to merge 6 commits intomainfrom
Open
Conversation
Implement a JSON-RPC 2.0 proxy that sits between Claude Code CLI and MCP servers, adding JWT-based authentication and glob-pattern tool filtering. Replaces the previous Go scaffolding with a TypeScript implementation co-located in the existing src/ tree. Core modules: token validation/generation, JSON-RPC parsing, child process management, bidirectional proxy with write serialization, config wrapping for workspace setup, and /sb-mcp-token Slack command. 75 new tests covering all modules. Bypass mode when MCP_JWT_SECRET is unset preserves backward compatibility.
Update three tests that expected removed --allowedTools flag to assert --model instead. Guard healthCheck credential test against env tokens that short-circuit the file existence check.
Runs tsc --noEmit and vitest on PRs and pushes to main, using Node 22 and pnpm via corepack with frozen lockfile.
Go was incorrectly removed during silverback-auth work. It's still needed since the bot works on Go applications.
Step-by-step guide covering configuration, token generation, tool pattern matching, runtime behavior, security considerations, and troubleshooting.
Replace with generic example names since this project is unrelated to vendgogh.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
tsc --noEmit) and tests (vitest) on PRs and pushes to mainprocess-executortests to match current CLI argsWhat's included
MCP Auth Proxy (
src/mcp-auth/)tools/callblocking andtools/listfiltering.silverback-auth.jsonfrom repo, wraps known MCP servers with auth proxyMCP_JWT_SECRETis not setBot Integration
/sb-mcp-tokenSlack command for generating auth tokensCI (
.github/workflows/ci.yml)Test plan
pnpm buildpasses cleanpnpm test— 75 new tests passing, zero regressionstsc --noEmit— zero type errors