Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Environment:0xKoda WireMCP Node JS

From Leeroopedia
Knowledge Sources
Domains Infrastructure, MCP
Last Updated 2026-10-28 00:00 GMT

Overview

Cross-platform Node.js runtime environment (v16+) with npm for dependency installation, powering the WireMCP MCP server and its JavaScript-based tool handlers.

Description

This environment provides the standard Node.js runtime required to execute the WireMCP server (`node index.js`). It is a CPU-only, JavaScript-based context — no GPU or specialized hardware is needed. The runtime loads the MCP SDK, `axios`, `child_process`, `util`, `which`, and `zod` npm dependencies declared in `package.json`. All seventeen WireMCP implementations run within this single Node.js process. The environment is OS-agnostic (macOS, Windows, or Linux), relying on Node.js's built-in modules (`fs`, `child_process`, `util`) plus the declared npm packages. No credentials are required by the runtime itself.

Usage

Use this environment for every WireMCP implementation that runs as JavaScript inside the MCP server process. It is the mandatory base prerequisite for any tool handler that does not exclusively shell out to tshark — including binary resolution (`findTshark`), HTTP fetches (`axios_urlhaus_fetch`), file validation (`fs_access_pcap_validation`), the MCP response envelope (`mcp_tool_response`), and all pattern-based data transformations.

System Requirements

Category Requirement Notes
OS macOS, Windows, or Linux Cross-platform; `findTshark` has per-OS fallback paths
Hardware Any modern CPU No GPU required; minimal RAM (~256MB free)
Disk ~50MB For `node_modules` after `npm install`
Runtime Node.js >= 16 README recommends v16+; uses `fs.promises`, `Array.findLast` (Node 18+)
Package Manager npm Bundled with Node.js; runs `npm install`

Dependencies

System Packages

  • `node` >= 16 (Node.js runtime)
  • `npm` (Node Package Manager, bundled with Node.js)

npm Packages

  • `@modelcontextprotocol/sdk` >= 1.8.0
  • `axios` >= 1.8.4
  • `child_process` >= 1.0.2
  • `util` >= 0.12.5
  • `which` >= 5.0.0
  • `zod` >= 3.24.2

Credentials

No credentials are required by the Node.js runtime environment itself. The server does not read any environment variables for secrets. (Threat-intelligence fetches hit the public URLhaus endpoint and require no API key.)

Quick Install

# Install Node.js runtime (if not already installed), then install npm dependencies
npm install

# Run the WireMCP MCP server
node index.js

Code Evidence

Runtime import of all npm dependencies from `index.js:1-10`:

const axios = require('axios');
const { exec } = require('child_process');
const { promisify } = require('util');
const which = require('which');
const fs = require('fs').promises;
const execAsync = promisify(exec);
const { McpServer } = require('@modelcontextprotocol/sdk/server/mcp.js');
const { StdioServerTransport } = require('@modelcontextprotocol/sdk/server/stdio.js');
const { z } = require('zod');

Dependency manifest from `package.json`:

{
  "name": "wiremcp",
  "version": "1.0.0",
  "main": "index.js",
  "dependencies": {
    "@modelcontextprotocol/sdk": "^1.8.0",
    "axios": "^1.8.4",
    "child_process": "^1.0.2",
    "util": "^0.12.5",
    "which": "^5.0.0",
    "zod": "^3.24.2"
  }
}

Note: `Array.prototype.findLast` is used in `plaintext_credential_reconstruction` (index.js:L422, L434, L438), which is available from Node.js 18+. While the README states v16+, full credential-extraction functionality requires Node 18+.

Common Errors

Error Message Cause Solution
`Cannot find module 'axios'` (or any dep) `npm install` not run Run `npm install` in the project root
`Cannot find module '@modelcontextprotocol/sdk'` MCP SDK not installed Run `npm install`; ensure `package.json` is present
`TypeError: ... .findLast is not a function` Node.js < 18 Upgrade to Node.js 18+ for full `extract_credentials` support
`SyntaxError: Cannot use import statement outside a module` Wrong module loader WireMCP uses CommonJS `require`; run via `node index.js`, not ESM

Compatibility Notes

  • Node.js 16 vs 18+: The README recommends v16+, but `Array.prototype.findLast` (used in credential reconstruction) requires Node 18+. On Node 16, the `extract_credentials` tool will throw on FTP/Telnet credential pairing.
  • Windows: Supported; `findTshark` includes Windows fallback paths (`C:\Program Files\Wireshark\tshark.exe`). Path separators in `execAsync` calls are handled by tshark, not Node.
  • macOS: Supported; includes Homebrew (`/opt/homebrew/bin/tshark`) and app bundle (`/Applications/Wireshark.app/.../tshark`) fallback paths.
  • Linux: Supported; fallback paths include `/usr/bin/tshark` and `/usr/local/bin/tshark`.

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment