Skip to content

Node.js CLI tool that serves as an MCP (Model Context Protocol) gateway middleware for unified management of heterogeneous environment resources including SSH hosts and HTTP APIs. Features dual server/client modes, multi-transport support (stdio, SSE, HTTP).

Notifications You must be signed in to change notification settings

nomagicln/mcp-server-client

Repository files navigation

mcpsc (MCP Server Client)

A Node.js + TypeScript command-line tool that serves as an MCP (Model Context Protocol) gateway middleware. The tool provides unified connection, management, and exposure capabilities for heterogeneous environment resources including SSH hosts and HTTP API endpoints.

Features

  • Dual Mode Operation: Functions as both MCP Server and MCP Client
  • Resource Management: Unified interface for SSH hosts, HTTP APIs, and other resources
  • Multi-Transport Support: stdio, SSE, and Streamable HTTP transports
  • Security-First Design: Comprehensive authentication and encryption
  • Enterprise Ready: Built for scalability with monitoring and observability

Installation

npm install -g mcpsc

Quick Start

# Initialize configuration
mcpsc init

# Add a resource
mcpsc resource add ssh --name myserver --host example.com --user admin

# Start MCP server
mcpsc server start --transport sse --port 3000

# Test connection
mcpsc connect ssh myserver --dry-run

Development

# Install dependencies
npm install

# Development build with watch
npm run dev

# Run tests
npm test

# Lint and format
npm run lint
npm run format

# Build for production
npm run build

Documentation

See the docs directory for detailed documentation.

License

MIT

About

Node.js CLI tool that serves as an MCP (Model Context Protocol) gateway middleware for unified management of heterogeneous environment resources including SSH hosts and HTTP APIs. Features dual server/client modes, multi-transport support (stdio, SSE, HTTP).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages