npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@hiq-ai/hiq-editor-mcp

v0.1.3

Published

Open local stdio MCP gateway for the HiQ LCA dataset editor — connects to the editor server's MCP endpoint, re-exposes its tools, and adds local UPR-template / file tools.

Readme

@hiq-ai/hiq-editor-mcp

Open local stdio MCP gateway for the HiQ LCA dataset editor. It runs on the host machine (Cortex Desktop / Claude Code spawns it over stdio), connects to the editor server's MCP endpoint (Streamable HTTP) as an MCP client, dynamically re-exposes the server's tools over stdio, and adds local file capabilities — parsing UPR .xlsx templates and exporting process detail to disk — that a remote server cannot do.

Apache-2.0. The proprietary parts (database schema, SQL, write/business logic, SSO internals) live in a separate closed server; this gateway only knows the server's MCP endpoint URL and forwards the caller's SSO token to it.

Architecture

┌──────────────────────────────────────┐  HTTPS   ┌────────────────────────────┐
│  @hiq-ai/hiq-editor-mcp  (this, open) │  + SSO   │  editor server  (closed)   │
│  • stdio MCP server (gateway)         │ ───────> │  • /mcp/editor             │
│  • re-exposes remote tools 1:1        │  token   │    (Streamable HTTP MCP)   │
│  • LOCAL: parse_upr_template,         │ <─────── │  • SQL reads + writes + SSO│
│           export_process              │  result  │                            │
└──────────────────────────────────────┘          └────────────────────────────┘

The gateway connects to the server's single /mcp/editor Streamable-HTTP endpoint as an MCP client (Bearer SSO token). On tools/list it returns the remote server's tools verbatim (names, descriptions, and JSON schemas straight from the server — no duplication) plus the 2 local tools. On tools/call it runs the 2 local tools locally and passes every other call through to the remote endpoint, relaying the result content. This eliminates schema duplication and reuses the server's existing MCP endpoint.

Connecting — two ways

The editor server exposes one Streamable-HTTP MCP endpoint (https://x.hiqlcd.com/mcp/editor). You can reach it directly or through this gateway — pick based on whether you need local file tools.

A. Remote HTTP MCP — direct, no install

Any host that supports remote (Streamable HTTP) MCP can connect to the endpoint directly with a HiQ-issued API key. Zero install, but you get only the server's business tools — not the local file tools (parse_upr_template / export_process), which need a process on your machine.

# e.g. Claude Code
claude mcp add --transport http editor https://x.hiqlcd.com/mcp/editor \
  --header "X-API-Key: <your HiQ API key>"

Request an API key from HiQ. (Cortex Desktop users don't need one — it uses the gateway below with the signed-in session.)

B. Local stdio gateway — this package

Spawn it over stdio from your MCP host (Cortex Desktop, Claude Code, …). It adds the local file tools and handles authentication for you (it forwards the SSO token the host supplies) — so the host config only needs the token:

{
  "mcpServers": {
    "editor": {
      "command": "npx",
      "args": ["-y", "@hiq-ai/hiq-editor-mcp"],
      "env": {
        "HIQ_EDITOR_TOKEN": "<your SSO token>"
      }
    }
  }
}

HIQ_EDITOR_SERVER_URL overrides the endpoint (defaults to https://x.hiqlcd.com/mcp/editor).

Authentication

The only credential is the SSO token, supplied by the host through the HIQ_EDITOR_TOKEN environment variable (there is no login tool). The client forwards it verbatim as Authorization: Bearer <token>; the server resolves the user and tenant from it. The token is never written to disk or logs.

Tool surface

Business tools (re-exposed from the editor server)

These come straight from the server's MCP endpoint — the gateway returns them verbatim, so the live list is whatever the server publishes. At time of writing:

Reads:

| Tool | What it does | |---|---| | list_datasources | List available datasources for the current user. | | list_my_processes | List processes in my workspace (paginated). | | list_all_processes | List all processes in the datasource (admin view). | | get_process_detail_tool | Full process detail (basic info, units, data items, exchanges). | | get_process_status_tool | Workflow status (approvals, calc tasks, releases). | | search_flows_tool | Search flows (ELEMENTARY_FLOW / PRODUCT_FLOW / WASTE_FLOW). | | search_backgrounds_tool | Search the background dataset catalog. | | list_calculations | View calculation tasks and status. | | list_versions | View database versions and release status. |

Writes:

| Tool | What it does | |---|---| | create_process_tool | Create a new unit process dataset (UPR). | | add_exchange_tool | Add a data item (exchange) to a process. | | update_exchange_tool | Update a data item's value / unit / formula. | | match_background_tool | Match a data item to a background database process. | | submit_review_tool | Submit a process for expert review. | | calculate_process_tool | Run trial calculation (试算) for one process. | | run_batch_calculation_tool | Create a version-level batch calculation task. |

Local tools (run on the host filesystem)

| Tool | What it does | |---|---| | parse_upr_template | Read a local UPR .xlsx, extract 基本信息 fields + data-item rows to drive create_process_tool + add_exchange_tool. | | export_process | Fetch a process's detail and write it to a local file. |

Both local tools require absolute file paths.

CLI

A generic gateway CLI makes the same tools scriptable from a shell:

The CLI binary is hiq-editor (shipped by the @hiq-ai/hiq-editor-mcp package — select it with npx -p):

export HIQ_EDITOR_TOKEN=<your SSO token>

# List the tools the gateway exposes (remote + local).
npx -p @hiq-ai/hiq-editor-mcp hiq-editor list

# Invoke any tool by name, passing args as a JSON object.
npx -p @hiq-ai/hiq-editor-mcp hiq-editor call list_datasources
npx -p @hiq-ai/hiq-editor-mcp hiq-editor call get_process_detail_tool --args '{"process_id":"12345"}'
npx -p @hiq-ai/hiq-editor-mcp hiq-editor call parse_upr_template --args '{"file_path":"/abs/path/UPR.xlsx"}'

--args defaults to {}. Tool names are the server's native (snake_case) names.

Development

npm install
npm run build     # tsc → dist/
npm run dev       # stdio MCP server via tsx

See CONTRIBUTING.md and SECURITY.md.

License

Apache-2.0. See NOTICE.