pi-rustxng
RustXNG web search and page reading through native MCP in Pi and oh-my-pi
Package details
Install pi-rustxng from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:pi-rustxng- Package
pi-rustxng- Version
0.2.0- Published
- Nov 8, 2026
- Downloads
- 476/mo · 476/wk
- Author
- hokupod-npm
- License
- AGPL-3.0-or-later
- Types
- extension
- Size
- 96.7 KB
- Dependencies
- 0 dependencies · 0 peers
Pi manifest JSON
{
"extensions": [
"./src/extension.mjs"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
pi-rustxng
Use RustXNG web search and page reading in Pi and Oh My Pi (OMP). Each host uses its native MCP support. OMP's built-in web_search remains a separate tool.
Install in Pi
You need Node.js 22 or later and a Pi version that provides pi.registerMcpServer.
Install the extension.
pi install git:github.com/hokupod/pi-rustxngStart Pi, or run
/reloadin an existing session.Run
/rustxng-installin Pi without arguments. This command downloads and verifies RustXNG v0.30.0, LICENSE, and NOTICE from the official GitHub release.Open
/mcpand check therustxngconnection. A registration notification does not guarantee a successful connection.Ask Pi to search with RustXNG and read a page from the results.
Loading the extension does not download anything. If RustXNG is missing, the extension loads and explains how to install it. After installation, it registers the MCP server.
To install from a local checkout, run:
git clone https://github.com/hokupod/pi-rustxng.git
cd pi-rustxng
node scripts/install-rustxng.mjs
pi install .
The binary is stored at ~/.local/share/pi-rustxng/v0.30.0/rustxng. Windows uses rustxng.exe in the same .local/share/pi-rustxng/v0.30.0 directory under your home directory.
Install in OMP
OMP support starts with pi-rustxng@0.2.0. Version 0.1.1 does not include it. You need Node.js 22 or later and OMP 18.13.2.
Once version
0.2.0is published to npm, install it with:omp plugin install pi-rustxng@0.2.0To use a local checkout instead, link its absolute path:
omp plugin link /absolute/path/to/pi-rustxngYou can also use
omp plugin install /absolute/path/to/pi-rustxng. These commands do not provide a project-local installation in OMP 18.13.2.Start or restart OMP to load the new extension.
Run
/rustxng-installwithout arguments to download and verify the managed binary.Restart OMP after installation, then check
rustxngin/mcp. You can also try/mcp reload; restart if it does not restore the connection. Plugin installation and binary installation do not prove that MCP connected.Ask OMP to search with RustXNG, then read a result in the same connection. The tools are
mcp__rustxng_searchandmcp__rustxng_read_page. Withtools.xdev, OMP may expose them through tool discovery.
Loading the OMP extension or starting its MCP launcher does not install RustXNG. The extension provides the installer command; OMP owns the MCP connection through the package's .mcp.json. No manual MCP settings changes are required.
Use an existing binary
Set PI_RUSTXNG_BIN before starting either host:
PI_RUSTXNG_BIN="/absolute/path with spaces/rustxng" pi
PI_RUSTXNG_BIN="/absolute/path with spaces/rustxng" omp
The extension accepts an absolute path to an executable file. It does not search PATH. It rejects relative paths, empty values, directories, and non-executable files. You manage the version and integrity of this binary. The extension does not verify its hash.
While PI_RUSTXNG_BIN is set, /rustxng-install does not install the managed binary. To use the managed binary again, unset the variable and restart the host.
Update or remove
RustXNG is pinned to v0.30.0. There is no automatic update or postinstall script. Running /rustxng-install again verifies and reuses the existing binary, LICENSE, and NOTICE.
The installer does not overwrite an incomplete or modified installation. Exit Pi and OMP, move the version directory shown in the error aside, and run the installer again.
To remove the Pi extension, run:
pi remove git:github.com/hokupod/pi-rustxng
For a local installation, pass the path shown by pi list to pi remove. After exiting both hosts, remove ~/.local/share/pi-rustxng/v0.30.0 if you no longer need the binary.
Development
Follow the development setup to install locked tools and enable repository-local checks. Run node scripts/check.mjs before publishing.
The runtime has no package dependencies. After installing the development dependencies, tests run with node --test without network access. Live search and page reading require separate integration checks in Pi and OMP.
Documentation and license
- Behavior and limits covers supported targets, processes, configuration, and data sent to external services.
- License and distribution explains the AGPL-3.0-or-later license and why binaries are downloaded rather than bundled.
Acknowledgements
Thanks to sahenjp for RustXNG, which provides this extension's web search and page-reading tools.