ssh-mcp 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/build/index.js +2 -2
  2. package/package.json +1 -1
package/build/index.js CHANGED
@@ -1,9 +1,9 @@
1
+ #!/usr/bin/env node
1
2
  import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
3
  import { McpError, ErrorCode } from "@modelcontextprotocol/sdk/types.js";
3
4
  import { Client as SSHClient } from 'ssh2';
4
5
  import { z } from 'zod';
5
6
  import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
6
- // Parse SSH config from process.argv
7
7
  // Example usage: node build/index.js --host=1.2.3.4 --port=22 --user=root --password=pass --key=path/to/key
8
8
  function parseArgv() {
9
9
  const args = process.argv.slice(2);
@@ -37,7 +37,7 @@ function validateConfig(config) {
37
37
  validateConfig(argvConfig);
38
38
  const server = new McpServer({
39
39
  name: 'SSH MCP Server',
40
- version: '1.0.4',
40
+ version: '1.0.5',
41
41
  capabilities: {
42
42
  resources: {},
43
43
  tools: {},
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ssh-mcp",
3
3
  "license": "MIT",
4
- "version": "1.0.4",
4
+ "version": "1.0.5",
5
5
  "description": "MCP server exposing SSH control for Linux and Windows systems via Model Context Protocol.",
6
6
  "type": "module",
7
7
  "bin": {