/passageway:passageway-connectfrom passageway
Connect Claude Code to a running passageway server: set its URL and password once, so the prompt hook adds relevant passages from the user's sources automatically and the recall MCP tool is registered. Use when the user wants to connect, check or remove the passageway hook or MCP server in Claude Code.
Ships in passageway. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
passageway is a retrieval server next to the user's sources (docs: https://getpassageway.com/). It indexes them and answers "do the sources know something about this?" in milliseconds. Once connected, Claude Code gets two things:
UserPromptSubmit, shipped with this plugin) that sends each prompt to the server and adds up to three short passages to the context when something relevant exists, and nothing otherwise;recall MCP tool (server name passageway), for searching on purpose mid-task.Documentation: the index https://getpassageway.com/llms.txt lists every page with its markdown address; the whole documentation is one file, https://getpassageway.com/llms-full.txt. Before you act on something this skill only names (a connector's settings, a configuration key, a deploy step), fetch its page and work from it, not from memory.
The connection is two pieces, both written by this skill: the hook's config file passageway.json in the plugin data folder, and the MCP server registration. Never print the password.
There is no hook and no claude CLI there. Add a custom connector (Customize → Connectors → Add custom connector) with the server's public HTTPS URL ending in /mcp. claude.ai opens the server's login page; the password is the server's PASSAGEWAY_LOGIN_PASSWORD. This needs PASSAGEWAY_BASE_URL set on the server: without it, the connector gets a 401 and no login page. Everything below applies to Claude Code.
Free text (a URL, a folder, a space key, a name) is asked in the chat, never through a choice prompt; a choice prompt is only for real alternatives (which source, which operation).
Several instances. A machine may run several passageway servers side by side, one per Claude setup (https://getpassageway.com/configuration/#several-instances). Instance <name> lives in ~/.config/passageway-<name>/ (its passageway.toml, password and env), listens on its own port, runs as the service de.marceltov.passageway.<name> (macOS, log ~/Library/Logs/passageway-<name>.log) or passageway-<name> (Linux), and /health names it under instance. Wherever this skill says ~/.config/passageway, the service, the log or port 8082, use the instance's. ls -d ~/.config/passageway*/ lists them. Connect this Claude to the instances the user names (with several and no name, ask); one Claude may use several. Each connected instance is one hook file and one MCP server: passageway.json and passageway for the default instance, passageway-<name>.json and passageway-<name> for instance <name>. The hook asks every one of them and joins their passages. All of it lives in this Claude's own CLAUDE_CONFIG_DIR, so other Claude setups keep theirs; which Claude sees which instance is the user's choice, and this skill connects only what the user named.
Add (default), check, or remove.
Ask for the server URL (for example http://127.0.0.1:8082 for a local server, or https://passageway.example for a sidecar, no path) and the PASSAGEWAY_LOGIN_PASSWORD the server was started with. A local server set up with passageway init keeps it in ~/.config/passageway/password: read it from there with a command, do not ask the user to paste it. If the user does not know it, it is in the server's environment (its compose file or secret store).
Check it: curl -s <url>/health. Expect JSON with "status": "ok" (or "indexing" while the first index build runs). "error" names the misconfiguration; stop and report it. Nothing listening on a local URL means the server is not installed or not running: run /passageway-install, which installs it and runs it as a service (launchd or systemd) that reads the password from the file, then come back here. A passageway.toml without a [[connector]] serves an empty index: /passageway-add-source adds one.
Write the hook config, readable only by the user, into ${CLAUDE_CONFIG_DIR:-$HOME/.claude}/plugin-data/passageway/ (the hook reads this folder as well as the plugin's own data folder). Put the password in a file first (passageway init already did, at ~/.config/passageway/password), and read it from there, so that it is never typed:
dir="${CLAUDE_CONFIG_DIR:-$HOME/.claude}/plugin-data/passageway"
(umask 077 && mkdir -p "$dir" && python3 -c 'import json,sys; json.dump({"url": sys.argv[1], "token": open(sys.argv[2]).read().strip()}, open(sys.argv[3], "w"))' "<url>" "$HOME/.config/passageway/password" "$dir/passageway.json" && chmod 600 "$dir/passageway.json")
For instance <name>: the password from ~/.config/passageway-<name>/password, the file $dir/passageway-<name>.json. Writing it leaves the other instances' files alone.
Register the MCP server (user scope), again reading the password from the file:
claude mcp add --transport http passageway "<url>/mcp" -H "Authorization: Bearer $(cat ~/.config/passageway/password)" -s user
For instance <name>: the server name passageway-<name> and its password file.
Tell the user: the hook works from the next prompt in a new session; recall is available as a tool right away. A trilium-recall hook config (plugin-data/trilium-recall/recall.json) keeps working until it is replaced.
curl -s <url>/health for each server; ls "$dir"/passageway*.json for the hook files (do not print them); claude mcp list shows passageway and each passageway-<name>. Run bash "${CLAUDE_PLUGIN_ROOT}/scripts/test-recall-hook.sh" to check the hook itself against a stub.
Delete $dir/passageway.json and run claude mcp remove passageway -s user; for instance <name>, $dir/passageway-<name>.json and passageway-<name>. The server keeps running; this only disconnects this Claude from it.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub getpassageway/passageway --plugin passageway7 skills in this plugin
/create-passageway-connectorCreate a passageway connector, a small program that lists the items of a source and prints their text as JSON Lines. Use when the user wants passageway to index a new source such as a folder, an API, a database or a wiki./passagewayRetrieval for Claude over MCP. Use when the user wants to install, configure, run or extend passageway: index their sources with connectors, ask the recall tool a question, or write a new connector./passageway-add-sourceAdd a source to a running passageway: write the [[connector]] for a folder of markdown, Trilium, Confluence or Wikipedia into passageway.toml, with secrets as env: references, then restart and check /health. Use when the user wants passageway to index something, or when the index is empty after connecting Claude Code.Other plugins' skills for the same job