
machine-to-machine/m2m-mcp-server-ssh-server
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
MCP (Model Context Protocol) 도구와 접근 및 상호 작용을위한 안전한 SSH 서버가 원격으로 설치되었습니다.
개요
MCP (Model Context Protocol) 도구와 접근 및 상호 작용을위한 안전한 SSH 서버가 원격으로 설치되었습니다. 이 서버는 클라이언트가 지정된 보안 인터페이스를 통해 여러 MCP 도구 제공 업체에 연결할 수 있습니다. - : SSH에 원격으로 액세스 MCP 도구 - : 키 기반 인증 지원 - : SSH 키 관리를위한 옵션 HTTP API - : 프록시 및 통합 인터페이스로 여러 MCP 서버를 병합 - : MCP 기능과 호환 : - Prompts - Resources - Tools - Logging - : 간단한 JSON 구성을 통해 MCP 서버를 구성 uv 관리 python 프로젝트에서, 에 의해 의존성에 추가: 의존성에 대한 pip를 사용하는 프로젝트에 대한 대안 : 선호하는 MCP 도구를 사용하여 로컬 서버를 신속하게 설정: 1. 구성 파일 생성 (servers config.json): 2. 더 쉬운 클라이언트 연결을 위한 중요한 관리 API를 가진 서버 시작: MCP 도구를 원격으로 만들려면:
개요(AI 번역)
MCP (Model Context Protocol) 도구와 접근 및 상호 작용을위한 안전한 SSH 서버가 원격으로 설치되었습니다. 이 서버는 클라이언트가 지정된 보안 인터페이스를 통해 여러 MCP 도구 제공 업체에 연결할 수 있습니다.
특징
- Secure Remote Access: SSH에 원격 액세스 MCP 도구
- 키 기반 인증: 키 기반 인증 지원
- ** 키 관리 API**: SSH 키 관리를위한 옵션 HTTP API
- ** 서버 집계 **: 프록시 및 통합된 인터페이스로 여러 MCP 서버를 병합
- MCP 지원: MCP 기능과 호환:
- 프롬츠
- 자료
- 도구
- 로깅
- Dynamic 구성: 간단한 JSON 구성을 통해 MCP 서버 구성
인증 흐름
설치
uv] python 프로젝트에서, 에 의해 의존성에 추가:
대체로, pip를 사용하여 프로젝트의 경우:
소스에서 직접 설치하려면:
프로젝트를 실행하려면:
일반적인 사용 케이스
1 지역 개발 환경
선호하는 MCP 도구를 사용하여 로컬 서버를 신속하게 설정:
-
구성 파일 생성 (
servers_config.json): -
명세.
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
MCP Server SSH Server
A secure SSH server for accessing and interacting with MCP (Model Context Protocol) tools installed remotely. This server allows clients to connect to multiple MCP tool providers through a unified secure interface.
Features
- Secure Remote Access: Access MCP tools remotely over SSH
- Key-Based Authentication: Support for key-based authentication
- Key Management API: Optional HTTP API for managing SSH keys
- Server Aggregation: Proxy and merge multiple MCP servers into a unified interface
- MCP Support: Compatible with MCP capabilities including:
- Prompts
- Resources
- Tools
- Logging
- Dynamic Configuration: Configure available MCP servers through a simple JSON configuration
Authentication Flow
%%{init: {'theme':'default', 'themeVariables': { 'primaryColor': '#5D8AA8', 'primaryTextColor': '#fff', 'primaryBorderColor': '#1F456E', 'lineColor': '#5D8AA8', 'secondaryColor': '#006400', 'tertiaryColor': '#fff' }}}%%
sequenceDiagram
participant Host as MCP Host(Claude/Cursor)
participant Client as MCP SSH Client
participant KeySrv as Key Server(HTTP API)
participant SSHSrv as MCP SSH Server
participant MCP as MCP Servers
Note over Client,SSHSrv: Initial Key Exchange & Authentication
Client->>Client: Generate SSH key pairif does not exist
Client->>KeySrv: GET /server_pub_key
KeySrv->>Client: Return server's public key
Client->>Client: Store server key intemporary known_hosts
Client->>KeySrv: POST /register{client_pub_key: "ssh-ed25519 AAAA..."}
KeySrv->>SSHSrv: Store client public keyin authorized keys
KeySrv->>Client: {status: "success"}
Note over Client,SSHSrv: Secure SSH Connection
Client->>SSHSrv: SSH handshake withclient key authentication
SSHSrv->>SSHSrv: Verify client keyagainst authorized keys
SSHSrv->>Client: Authentication successful
Note over Client,SSHSrv: MCP Communication
Host->>Client: JSONRPC request
Client->>SSHSrv: Forward requestover SSH tunnel
SSHSrv->>MCP: Route request toappropriate MCP server
MCP->>SSHSrv: Process and return results
SSHSrv->>Client: Send response over SSH
Client->>Host: Return JSONRPC response
Note over Client,SSHSrv: Session Management
alt Session Termination
Host->>Client: Close connection
Client->>SSHSrv: Terminate SSH session
SSHSrv->>SSHSrv: Clean up resources
end
Installation
In a uv managed python project, add to dependencies by:
설치
uvx mcp-hn설정
{
"mcpServers": {
"HackerNews": {
"command": "uvx",
"args": ["mcp-hn"]
},
"major-league-baseball": {
"command": "uvx",
"args": ["mcp_mlb_statsapi"]
}
}
}