Skip to content
Back to skills

Skillwiki Mcp

ASecurity

Use when capturing a note, idea, or bug, appending log.md, or using wiki MCP tools. Never local transcripts. Images: clip-outbox.

  • 5 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 29, 2026
ai-agentstypescriptpythongogitsecurity

Works with

  • cursor
  • cli
  • mcp

Security analysis

A100/100

Scanned November 29, 2026

npx -y skills add karlorz/llm-wiki --skill skillwiki-mcp --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Skillwiki Mcp?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Skillwiki Mcp
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/karlorz-skillwiki-mcp/badge)](https://www.skillsdirectory.com/skills/karlorz-skillwiki-mcp)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: skillwiki-mcp
description: "Use when capturing a note, idea, or bug, appending log.md, or using wiki MCP tools. Never local transcripts. Images: clip-outbox."
---

# SkillWiki HTTP MCP

Use this skill to capture a note, idea, bug, or task into the wiki, append `log.md`, or call SkillWiki HTTP MCP tools.

When this MCP namespace is loaded and available, it wins over wiki-add-task local-write steps for capture intents.

HTTP MCP captures Markdown only. There is no binary-upload MCP tool. Generated images and attachments use `using-skillwiki/references/save-attachments.md`.

SkillWiki captures are HTTP MCP only (`type: http`). Claude/Grok use `SKILLWIKI_MCP_URL` as an optional override and otherwise default to `https://wiki.karldigi.dev/mcp`. Do not start a local stdio `skillwiki mcp` / `skillwiki-mcp` server for captures.

## Codex connection selection

Read this skill before the first wiki MCP call. The local SkillWiki skills and the hosted **SkillWiki MCP** app have separate connection settings and credentials.

- Native Codex installs bundle a direct HTTP MCP declaration from `codex-mcp.json`, materialized with the same filename in the Codex plugin root. It uses the fixed `https://wiki.karldigi.dev/mcp` endpoint and Codex's `bearer_token_env_var: "SKILLWIKI_MCP_TOKEN"`. An operator supplies that variable privately before Codex starts. Installation does not issue a bearer or renew hosted OAuth. Earlier skills-only installs require a plugin refresh and a new session.
- Native Codex prefers its configured direct SkillWiki connection when advertised. Discover its actual namespaced tool names and schema; plugin server names can be qualified by the host. When only `mcp__codex_apps__skillwiki_mcp_*` tools are advertised, they belong to the hosted OAuth connector. State that route explicitly and use it when it is the configured connection.
- When both routes exist, honor the user's explicit selection. Otherwise native Codex uses direct MCP and ChatGPT web uses its hosted connector. Verify the selected connection's default vault with a read-only `wiki_context` or `wiki_status` before writing. A matching URL alone does not establish matching identity, vault access, or write permissions.
- An authentication or permission failure stops the selected route. Report the exact tool and error; obtain explicit approval before switching connections or identities. A hosted reconnect renews that app's OAuth account only. Local plugin refresh and direct bearer provisioning are separate operator actions.
- If direct MCP is unavailable, report that state before proposing setup. Native Codex uses the bundled `skillwiki_native` server and an operator-provided process environment; skip the Claude/Grok readiness script and Cursor Configure guidance below. Keep credentials private and use the supported host configuration flow. Never copy another agent's bearer, auto-write Codex configuration, or replace a failing connection with local vault writes.

## First-run readiness

Apply connection selection above, then detect in this order before any bearer or CLI probe:

1. **Live MCP tools present.** When the host already advertises SkillWiki HTTP MCP tools (`wiki_context`, `wiki_query`, `wiki_read_page`, `wiki_capture`, and the rest of the `wiki_*` namespace), use those tools. Skip `SKILLWIKI_MCP_TOKEN`, `check_readiness.py`, the CLI, and every host MCP file write.
2. **ChatGPT web / chat-only host, tools absent.** Stop. A person finishes the connector and OAuth outside the chat. Do not ask the chat to create the app, click Authorize, or type the operator password.
   - Operator path: OpenAI Admin Console **Plugins** → plus / **Add** → custom MCP server (the xaicom UI may say **Create MCP plugin**) → **Create as a plugin**. Use URL `https://wiki.karldigi.dev/mcp`, OAuth, and no custom headers.
   - Identity is GitHub at `/workspace/authorize`, then one wiki grant: **Central Wiki** unless the operator names another wiki.
   - If the new plugin is Disabled or Unavailable: Review app (tools and role access), acknowledge both risk prompts, **Publish**, then Enable. Installation policy alone does not connect member accounts.
3. **Native Codex without live tools:** stop for the operator to refresh the plugin, supply its bearer privately in the launch environment, and start a new session. Follow the Codex connection selection section above.
4. **Every other host:** continue with the bearer and readiness probe below.

### Bearer-host readiness

This path requires an operator-provided `SKILLWIKI_MCP_TOKEN` before MCP load.

- Resolve the installed plugin root from `GROK_PLUGIN_ROOT`, falling back to `CLAUDE_PLUGIN_ROOT`, and run `python3 "$PLUGIN_ROOT/scripts/check_readiness.py" --apply --json` before the first SkillWiki MCP call.
- **Cursor / Grok Bot:** the Cursor-native plugin requires `SKILLWIKI_MCP_TOKEN` under **Plugins → Configure**. Optional non-secret `SKILLWIKI_EXTRA_VAULTS` (comma-separated vault ids such as `wiki-fin`) opts the client into extra vaults on the **same** connector URL. It is not a second connector, not a secret, and not written to `~/.cursor/mcp.json` or Grok `config.toml`. Server `allowed_vaults` remains the security boundary; an extra listed here but missing from the bearer still fails closed. Omit `vault=` on tools to use the live handshake `default_vault`; specify an extra vault only when requested. Grok Bot does not inherit Mac process env or `~/.cursor/mcp.json`. `failed_to_load` with no token box means this package is missing; after this package is installed, Configure is the token field (same pattern as grok-search).
- `missing_prereq` means `SKILLWIKI_MCP_TOKEN` is absent from process environment; stop and ask for a bearer. Do not invent a stdio MCP.
- **Operator browser not on this host (SSH):** installed `.mcp.json` already sends `Authorization: Bearer ${SKILLWIKI_MCP_TOKEN}`. If the token is missing, a 401 may start MCP OAuth with `http://localhost:<port>/callback` on this host. MCP OAuth loopback binds on this host; headed vs headless is not the discriminator (DISPLAY, VNC, or local Chrome cannot complete loopback when the operator browser is on another machine), and SSH is a hint that the operator browser may not be this host. If `check_readiness.py` `warnings` contain `headless_oauth_loopback`, or the host shows an OAuth login URL over SSH: stop. Ask the operator to set `SKILLWIKI_MCP_TOKEN` (process env, Configure, or `skillwiki connect --from-file`). Do not tell the operator to click the login link on another machine. If SkillWiki tools are already connected, continue.
- A new host (a machine that should write the wiki for the first time) needs an issued host-id bearer before handshake can pass. The operator runs `skillwiki mcp-auth issue-host --host-id <id> --write` on metal (TTY required). Connector hosts put the printed value into process env or host Configure. Unknown agents (no plugin / no usable connector) ingest a chat-attached env file with `skillwiki connect --from-file` (or `--from-stdin`); do not instruct paste-into-chat. Do not auto-write `mcp.env`, `mcp.json`, or Grok `config.toml`. Do not invent a second admin skill. A local vault/FUSE mirror is optional.
- First-run order: install plugin/CLI → operator issues on metal → connector Configure **or** unknown-agent `skillwiki connect --from-file <attachment>` → **new session** → `skillwiki doctor --check-mcp` → one write (`wiki_capture`, work-item write, or page publish).
- `in_sync` means the probe has a usable URL/token decision.
- A 401 is an MCP handshake failure, not a readiness-probe status. Report that the token is missing or rejected and stop.
- Grok SessionStart cannot inject the parent MCP environment. A restart cannot supply a missing token.
- Never auto-source `mcp.env` or auto-write `~/.cursor/mcp.json`, Grok `config.toml`, or `mcp.env`.
- Never print the bearer token.

## Upgrade / migration

Remotes still on a pre-HTTP-MCP plugin or CLI must upgrade the plugin channel (and the CLI where that host has one), then start a **new session** — plugin instructions do not hot-swap. The operator check is the same `skillwiki doctor` as metal: default rows cover URL/auth presence and frozen-leaf write-path; `skillwiki doctor --check-mcp` does the live initialize handshake. Do not invent a second admin skill or HTTP MCP admin tool. `wiki_status` remains daemon health only.

## Writes

Local Mac coding agents with a valid bearer are managed read-write peers through advertised MCP tools. Remote and other agents are read-mostly; they write only when explicitly authorized and the advertised tool permits the target. On leaf hosts, wiki captures go through MCP. Do **not** write `raw/transcripts/` or `log.md` as local files.

Check the successful write receipt's `vault_id` against the intended vault before reporting any write as saved.

1. Call MCP `wiki_capture` with `kind` (`task` | `idea` | `bug` | `note`), `project`, `title`, and `content`. Optional `agent_note`. Verify its returned `path` with `wiki_read_page` in that vault.
2. Call MCP `wiki_log_append` when a structural `log.md` line is needed. Pass append-only `content` (optional `operation_id` is 64 hex). Success returns a receipt (`operation_id`, `event_path`, hashes, `s3_verified`). Verify the exact block via `wiki_read_page(event_path)`. Do not require reading `log.md`. If `log.md` is over 256 KiB, full `wiki_read_page("log.md")` returns `PAGE_TOO_LARGE`; use `tail_bytes` only to browse the newest end.
3. **Feature-detect work-item and page-publish tools**:
   - When the server advertises `wiki_workitem_write`: use it to create, mutate, or close work items under `projects/<slug>/work/**` or update `projects/<slug>/knowledge.md`, and to save Layer-3 workspace markdown. For work-item `spec.md` or goal-plan `plan.md`, pass optional `agent_role` / `agent_id`; the server stamps authenticated `host` and supplied agent identity into frontmatter. Supported workspace paths are: `projects/<slug>/README.md`, `projects/<slug>/architecture/**/*.md`, `projects/<slug>/requirements/**/*.md`, `projects/<slug>/compound/**/*.md`. Pass `path`, `content`, and `base_sha256` of existing bytes (from `wiki_read_page` or local mirror). On `FILE_CHANGED`, re-read and retry once. Deployed servers that predate the workspace-family allowlist deny those paths — treat that `PATH_DENIED` as "server predates this release"; STOP, do not fall back.
   - When the server advertises `wiki_page_publish`: use it to publish typed Layer-2 pages (`entities/`, `concepts/`, `comparisons/`, `queries/`, `meta/`) using the same CAS protocol.
   - When those tools are **absent** from the live tool list (e.g. server is captures-only): do not call them or claim they exist. If `$VAULT/.WIKI_GIT_FROZEN` exists, fall back to capturing a close note via `wiki_capture` or STOP. Work-item close remains unavailable on the frozen leaf without `wiki_workitem_write`. Do not `git commit` / `wiki-push` against `~/wiki`.
4. **`PATH_DENIED` means STOP.** Paths outside the allowlist (`projects/<slug>/history/**`, non-`.md` files such as `fleet.yaml` or `.canvas`, `AGENTS.md`/`CLAUDE.md`, raw edits, index/projection rebuilds) have no agent write path over MCP. wiki-push / `rclone copy` is **not** an agent writer: it bypasses the daemon working copy, so `wiki_read_page` cannot see those bytes until the sg01 snapshot. Never report an S3-only copy as "saved to wiki". Capture the blocked intent via `wiki_capture` and report the denial instead.

## Reads

CLI `skillwiki query` reads a local configured vault; it does not forward to HTTP MCP. On an MCP-only leaf, leave `WIKI_PATH` unset and use the advertised MCP `wiki_query` for live reads. Optional Git mirrors are read-only snapshots and may lag the live writer.

Prefer advertised HTTP MCP read tools. When the needed read tool is unavailable, ordinary file reads of an existing local mirror (`~/wiki` or `skillwiki path`) are allowed; the mirror may lag. Frozen-leaf agents should use HTTP `wiki_sources_pending`, `wiki_lint_summary`, `wiki_stale`, `wiki_compile_status`, and `wiki_reviews` instead of local CLI commands when those tools are advertised.

`wiki_query` is typed knowledge only unless `scope` is `work` or `all`. For recent progress, key projects, or to-dos, feature-detect and call `wiki_progress`; apply `project`, `host`, or `agent_role` filters when requested, and present `recent_progress`, `key_projects`, and `todos` as complete bullet lists. For queued work, doctor, plugin-drift, or MCP diagnose questions, call `wiki_context` first (active_work) or pass `scope: "work"` / `"all"`. Do not treat a top typed packet hit as the live work queue.

## Bridge diagnostics

Use a protocol SDK rather than copying a one-line SSE parser. SkillWiki diagnostic clients use the existing MCP TypeScript SDK to validate initialization, negotiate the protocol, send `notifications/initialized`, carry optional session IDs and negotiated protocol headers, and parse JSON or SSE (including multiline data). Empty HTTP 202 bodies acknowledge notifications/responses, not a successful initialize result. Doctor/connect probes have a 10-second overall deadline per connection and close their transports without terminating the server session.

Treat a missing/invalid initialize result, authentication refusal, or timeout as a failed handshake; do not proceed to tools calls merely because the HTTP status is successful. Preserve bearer redaction in all diagnostics.

## Errors

Report handshake, capture, and append failures literally. For ChatGPT web / chat-only hosts, follow the operator-connect path in First-run readiness. For bearer hosts, if tools are missing after a 401 or `missing_prereq`, stop and tell the operator to set `SKILLWIKI_MCP_TOKEN` via process env, host Configure, or `skillwiki connect --from-file` (unknown agents; never paste-into-chat), update the active plugin channel, and start a new session. Over SSH, treat an OAuth login URL the same way: report `headless_oauth_loopback` and stop. Do not fall back to local `raw/transcripts/` writes.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.