Back to Home
ggoodman icon

mcp-server-go

Verified Safe

by ggoodman

Overview

A sandboxed local Model Context Protocol (MCP) server for developer workspaces, exposing the host filesystem as resources and providing tools for file manipulation, designed for integration with client applications.

Installation

Run Command
No command provided

Environment Variables

  • MCP_PUBLIC_ENDPOINT
  • OIDC_ISSUER
  • REDIS_ADDR
  • OIDC_JWKS_URL

Security Notes

The server demonstrates robust security practices, particularly concerning filesystem access. It employs multiple layers of path validation, including `filepath.Abs`, `filepath.EvalSymlinks`, `path.Clean`, and custom `ensureInsideRoot` logic, to prevent directory traversal and symlink-based escape attacks. All file manipulation tools (`fs.read`, `fs.write`, `fs.append`, `fs.move`, `fs.delete`) rigorously enforce this sandboxing. For network communication, the `streaminghttp` transport integrates a pluggable `auth.Authenticator` to handle OIDC/JWT-based bearer token authentication, including proper `WWW-Authenticate` challenges and error responses. It explicitly rejects JSON-RPC batch requests, a good security practice. Session management via `SessionHost` includes `TTL` and `MaxLifetime` for lifecycle control and uses Redis's optimistic locking for concurrent updates. No 'eval' or similar dangerous dynamic code execution patterns were identified, and sensitive configurations like `REDIS_ADDR` are expected from environment variables.

Similar Servers

Stats

Interest Score30
Security Score9
Cost ClassMedium
Avg Tokens350
Stars1
Forks1
Last Update2026-01-18

Tags

MCP ServerFilesystem ManagementDeveloper ToolsGoLocal Workspace