MCP server for Jaringan (JRG) protocol — fetch, inspect, search Jaringan pages
  • TypeScript 65.7%
  • JavaScript 34.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-09-04 14:31:13 -04:00
src Fix command injection in runBrowser(), add test script 2026-06-19 08:04:15 +00:00
tests Add cobasaja test suite (8 tests) + local devDep 2026-06-19 07:46:27 +00:00
.gitignore update version number 2026-06-19 01:12:23 -07:00
LICENSE feat: add jrg_list tool, fix URL normalization for bare paths, add LICENSE + npm metadata, fix architecture diagram 2026-06-18 02:01:14 +00:00
package-lock.json Use cobasaja from npm (^0.1.0) instead of local file: link 2026-06-19 07:53:50 +00:00
package.json update version number 2026-06-19 01:12:23 -07:00
README.md feat: add jrg_list tool, fix URL normalization for bare paths, add LICENSE + npm metadata, fix architecture diagram 2026-06-18 02:01:14 +00:00
tsconfig.json feat: initial MCP server for Jaringan JRG protocol 2026-06-18 01:43:38 +00:00

jaringan-mcp

MCP (Model Context Protocol) server for the Jaringan (JRG) protocol. Lets AI agents fetch, inspect, search, and manage Jaringan pages through structured tool calls.

Install

npm install jaringan-mcp

Usage

Standalone

npm install jaringan-mcp

# Connect to a JRG server on localhost:7080
npx jaringan-mcp --jrg-port 7080

# Read from local .jrg files instead
npx jaringan-mcp --file-root ~/wiki

# Custom host/port with browser binary
npx jaringan-mcp --jrg-host 10.0.0.1 --jrg-port 7070 --browser /usr/bin/jaringan-browser

With Hermes Agent

Add to ~/.hermes/config.yaml:

mcp_servers:
  jaringan:
    command: "npx"
    args: ["-y", "jaringan-mcp", "--jrg-port", "7080"]

Or for local file access:

mcp_servers:
  jaringan:
    command: "npx"
    args: ["-y", "jaringan-mcp", "--file-root", "/home/user/wiki"]

Restart Hermes to auto-discover the tools.

With Claude Code / Copilot / Any MCP Host

{
  "mcpServers": {
    "jaringan": {
      "command": "npx",
      "args": ["-y", "jaringan-mcp", "--jrg-port", "7080"]
    }
  }
}

Tools

Tool Description
jrg_fetch Fetch a JRG page → structured content (title, body, tags, links)
jrg_fetch_raw Fetch raw JRG protocol response (status, headers, body)
jrg_inspect Inspect a page → JSON manifest of interactive elements
jrg_search Search local .jrg pages under a root directory
jrg_auth_list List all stored Jaringan authentication tokens
jrg_view Render a page as formatted plain text
jrg_list List all available Jaringan pages (slug + title)

Options

Flag Default Description
--jrg-host localhost JRG TCP server hostname
--jrg-port 7070 JRG TCP server port
--file-root — Read from local .jrg files (instead of TCP)
--browser jaringan-browser Path to jaringan-browser binary
--tcp-timeout 5000 TCP connection timeout in ms

Architecture

AI Agent (Hermes, Claude Code, etc.)
        │
        │ MCP protocol (JSON-RPC over stdio)
        ▼
┌─────────────────────────────┐
│     jaringan-mcp server     │
│                             │
│  ┌───────────────────────┐  │
│  │  jrg-client (lib)     │──│── TCP → JRG server (port 7070/7080)
│  └───────────────────────┘  │
│  ┌───────────────────────┐  │
│  │  jaringan-browser CLI │──│── inspect / search / auth
│  └───────────────────────┘  │
│  ┌───────────────────────┐  │
│  │  Local file reader    │──│── .jrg files on disk
│  └───────────────────────┘  │
└─────────────────────────────┘

Publishing

npm run build
npm publish --access public

License

MIT