Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/onboarding.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,13 @@ gortex mcp --index . --watch

`--watch` re-indexes changed files live via fsnotify. `--cache-dir ~/.cache/gortex` (default) saves snapshots between restarts so subsequent starts are ~200ms instead of 3-5s.

To also get the web UI + HTTP server API:
To also get the HTTP server API (the UI is a separate Next.js app in `web/` that talks to it over HTTP):

```bash
gortex server --index . --web --watch
gortex server --index . --watch
```

Open `http://localhost:4747` for the force-directed graph explorer.
`gortex server` listens on `http://localhost:4747` and exposes `/v1/*` (including `/v1/graph` and `/v1/events` for force-directed rendering).

**Option B — your IDE starts it automatically.** The `.mcp.json` that `gortex init` created tells the IDE how to spawn `gortex mcp`. You don't run anything yourself. Claude Code, Cursor, and VS Code all work this way. Downside: each tool gets its own server process (memory cost scales with number of tools).

Expand Down
7 changes: 2 additions & 5 deletions internal/agents/claudecode/content.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,15 @@ package claudecode
import "github.com/zzet/gortex/internal/agents"

// ProjectMCPJSON is the starter content for a project's .mcp.json
// when no file exists yet. The --web flag is intentional: it turns
// on the HTTP status page so users can peek at the index without
// wiring anything else up.
// when no file exists yet.
const ProjectMCPJSON = `{
"mcpServers": {
"gortex": {
"command": "gortex",
"args": [
"mcp",
"--index", ".",
"--watch",
"--web"
"--watch"
],
"env": {
"GORTEX_INDEX_WORKERS": "${GORTEX_WORKERS:-8}"
Expand Down
Loading