Nykst

Developer setup

Use Nykst inside your AI coding agent

Before your agent edits a file, it can ask Nykst what that change will affect: which files import it, which pages and API routes it reaches, which tests cover it, and which database tables and services it touches. Setup takes a few minutes and works with any editor or assistant that supports MCP.

1

Map a repository

Nykst can only answer about repositories you have mapped. Connect GitHub, choose a repository and press Start mapping. You choose which repositories Nykst can read, and it never writes to them.

2

Create an access token

The token lets your assistant read the map of the repositories you connected, and nothing else. You can revoke it here at any time.

Checking your GitHub connection…

3

Add Nykst to your agent

Pick your tool.

Claude Code

One command. Nykst is then available in every project.

The snippets below use YOUR_NYKST_TOKEN. Create a token in step 2 and they fill in automatically.

  1. Make sure Claude Code is installed: running claude --version in a terminal should print a version.
  2. Run the command below in any terminal (macOS, Linux, Windows PowerShell or Command Prompt).
  3. Start Claude Code and type /mcp. nykst should be listed as connected.
Run in a terminal
Terminal
claude mcp add --transport http --scope user nykst https://nykst.unifies.codes/api/mcp --header "Authorization: Bearer YOUR_NYKST_TOKEN"

--scope user makes it available in all your projects. Drop it to add Nykst to the current project only.

File content, not a terminal command
Share with your team: .mcp.json in the repo root
{
  "mcpServers": {
    "nykst": {
      "type": "http",
      "url": "https://nykst.unifies.codes/api/mcp",
      "headers": {
        "Authorization": "Bearer ${NYKST_TOKEN}"
      }
    }
  }
}

Commit this file, not your token. Each teammate creates their own token and exports NYKST_TOKEN in their shell.

Check it worked: claude mcp list shows nykst as ✔ Connected, or type /mcp inside a session.

4

Try it

Run any tool below against the example repository, or ask your assistant in plain English.

The full tool list is available at /api/mcp/schema.

  • get_impact“What breaks if I change src/lib/billing.ts?”

    Files, page and API routes, and tests affected by changing the paths you give it, with exact import lines and recent history.

  • find_usages“Which code reads or writes the users table?”

    Every file and line that touches a database table, an external service, or an environment variable.

  • get_architecture“Give me an overview of this repo's architecture.”

    Overview of the repo: areas, external services, data, most depended-on files, circular imports.

  • search_files“Find the file that exports createCheckoutSession.”

    Find files by path or exported symbol name, with parameter arity and type properties.

  • list_repositories“Which repositories does Nykst know about?”

    The repositories you have mapped in Nykst.

  • search_memory“Search memory for architectural decisions about authentication.”

    Search evidence-backed memory records extracted from ADRs, Mermaid diagrams, SQL migrations, and images.

  • get_federation“Which repositories call our OpenAPI or gRPC endpoints?”

    See which of your repositories use the same API contracts, and which endpoints call which.

  • run_safe_code_loop“Check my replacement for src/lib/auth.ts.”

    Check a complete replacement file against architecture and supported in-memory checks, without writing to the repository.

  • get_trace_overlay“Overlay these OTLP spans on the repository graph.”

    Overlay OpenTelemetry (OTLP) spans onto the static import graph to compare observed runtime latency and edges.

  • simulate_change“Simulate deleting src/lib/legacy.ts and show what breaks.”

    Preview file writes or deletions on an in-memory copy of the map before touching disk.

  • generate_fix_patch“Generate a verified fix patch for unresolved imports in src/routes/graph.tsx.”

    Generate a unified remediation diff for unresolved imports, verified against an in-memory graph clone.

Try a tool · search_files

This sandbox runs on the Nykst example project only, never on your repository. It shows the answer your assistant would receive. To ask about your own project, create a token above and use it in your AI tool.

Choose a tool above and press Run to see the answer for this repository.
5

Make your agent check Nykst automatically

Agents call a tool when their instructions say to. Add this to your repository's instruction file so every change starts with an impact check.

Paste into your instruction file
Add to your agent's instruction file
## Nykst (code impact)
Before changing code, use the Nykst MCP tools:
- Call get_impact with the files you plan to edit. Read the direct importers, the affected routes and the tests it lists.
- Call find_usages for any database table, external service or environment variable you touch.
After the change, run the tests Nykst listed and mention anything it flagged in your summary.
  • CLAUDE.md for Claude Code
  • AGENTS.md for Codex, Cursor, Windsurf and others
  • .cursor/rules/nykst.mdc for Cursor
  • .github/copilot-instructions.md for GitHub Copilot

Troubleshooting and safety

Error 401, or “token” in the message
Nykst tells you what is wrong: no token was sent, the sample value was left in place, or the token was revoked. Create a new token in step 2 and paste it in place of the sample value. A key can be deleted at any time.
“command not found” or the command does nothing
The tool itself isn't installed yet. Check with claude --version, codex --version or gemini --version. On Windows, open a new terminal after installing, and use PowerShell: the export command only exists on macOS and Linux, so use the Windows PowerShell snippet where there is one.
An error in VS Code
Run MCP: List Servers from the command palette, choose nykst, and pick Show Output. It prints the exact reason. Send that text to us if it isn't clear.
“No repository has been analyzed yet”
Map a repository first (step 1). If Nykst says the repository was mapped with an older version, open the map and press Re-check this project now.
The answers look out of date
Nykst answers from the last time you mapped the repository. Press Re-check this project now in the map after you push changes.
What can the token do?
Read the analysis of repositories you mapped: file paths, names of functions and exports, import connections, commit and pull request titles. It cannot read file contents or change anything on GitHub. Revoke it above whenever you want.