s-gw

Community
TypeScript

Local credential approval and execution gateway for AI coding agents. Uses typed handles, approved child-process injection, output sanitization, and a full local audit trail.

About s-gw MCP Server

Local credential approval and execution gateway for AI coding agents. Uses typed handles, approved child-process injection, output sanitization, and a full local audit trail.

Features

Tools
Getting Started

1. Install Node.js 20 or newer. 2. Run: npm install -g @s-gw/s-gw 3. Run: s-gw setup 4. Configure your MCP client to launch the local stdio command: s-gw-mcp 5. Enroll credentials from your local terminal, then approve bounded requests in the native app, local console, or CLI. Use s-gw agent mcp-snippet <agent> for client-specific configuration.

Tools (7)
Functions this server exposes to AI clients

sgw_scan_file

Scan a local file for secrets and return tokenized text plus local handles without returning raw values.

sgw_scan_text

Scan text for secrets and return tokenized text, with optional local enrollment.

sgw_list_handles

List known local secret handles and non-secret metadata.

sgw_describe_handle

Show non-secret metadata for one local secret handle.

sgw_request_execution

Create a bounded local request for a command that needs credential injection.

sgw_request_ssh_session

Create an approval request for an s-gw-owned SSH command.

sgw_execute_request

Execute a previously approved request and return sanitized output.

Example
{"mcpServers":{"s-gw":{"command":"s-gw-mcp"}}}
Compatible With
Cursor
VS Code