docs(cursor): add Phantom + Cursor tutorial#68
Open
mvanhorn wants to merge 1 commit into
Open
Conversation
Mirrors the structure of docs/claude-code.md for Cursor users: why-this-combination, install, MCP-server-via-mcp.json (both UI and file paths), running with phantom exec, the 24 MCP tools that Cursor gains, a sample workflow (Stripe key + dev server), and a Cursor- specific troubleshooting section. Every command and config detail is sourced from the existing repo: - 'npx phantom-secrets init' and 'phantom exec --' from docs/claude-code.md - '.phantom.toml' as the local config file (per CLAUDE.md architecture notes; not '.phantom/config.json') - 'phm_' tokens + 127.0.0.1 reverse proxy for the runtime model - The MCP JSON shape from apps/web/src/components/landing/Install.tsx (canonical source of truth for the supported clients) - Both '~/.cursor/mcp.json' (global) and '.cursor/mcp.json' (project) per the issue's verification note Wires the new doc into: - README.md Links section - apps/web/public/llms.txt Documentation list - apps/web/src/app/sitemap.ts (alongside the existing claude-code.md entry, same priority/cadence)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
Adds
docs/cursor.md, a step-by-step Cursor + Phantom tutorial parallelto the existing
docs/claude-code.md. Covers install, MCP serverregistration in
~/.cursor/mcp.json/.cursor/mcp.json(both UI andfile-edit forms), running Cursor under
phantom exec, the 24 MCPtools Cursor gains, a sample workflow (adding a Stripe key without
exposing the value), and a Cursor-specific troubleshooting section
(MCP picker doesn't see the server, vault not initialised, TLS errors,
stale
phm_tokens).Closes #38.
How to verify
The new file is wired into:
README.mdLinks section (alongside the existing Claude Code link)apps/web/public/llms.txtDocumentation listapps/web/src/app/sitemap.ts(next to the existingdocs/claude-code.mdsitemap entry, same priority and changeFrequency)
Sitemap braces balance: 22/22 in
node. The TS still parses cleanlyunder the existing project structure; no new imports.
Notes for the reviewer
I read the closing comment on #41 carefully and grounded every claim
in this tutorial against repo source rather than memory:
npm install -g phantom-secretsnpx phantom-secrets initfromdocs/claude-code.mdandapps/web/public/llms.txtapps/web/src/components/landing/Install.tsx(canonical client list).phantom.toml, not.phantom/config.json.phantom.tomlphm_tokens, not auto-injectedos.getenv127.0.0.1andphm_tokens, matchingclaude-code.md's explanationphantom execandphantom login, notphantom run/phantom auth loginphantom exec,phantom doctor,phantom_*MCP tools — all fromcrates/phantom-cli/src/commands/andclaude-code.mdI deliberately did not include screenshots — the issue allows
"placeholder
if you don't have Cursor", and I'd rathership verified prose than fabricated screenshot URLs. Happy to add real
images in a follow-up once someone with a Cursor install can drop them
in
apps/web/public/docs/.The tutorial points back to
docs/claude-code.mdfor the full 24-toolcatalogue rather than duplicating that table — the contract is
identical for both clients, and a single source of truth means the
Cursor doc won't drift if the tool set changes.
Checklist
README.md,apps/web/public/llms.txt, sitemap)cargo test/cargo clippynot run — this PR touches no Rust;docs-only change