| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Official HackMD plugin scaffold for Cursor.
This plugin provides:
.
├── .cursor-plugin/
│ └── plugin.json
├── commands/
│ └── setup-hackmd.md
├── rules/
│ └── hackmd-workflow.mdc
├── skills/
│ └── hackmd-cli/
│ └── SKILL.md
├── LICENSE
├── logo.png
├── README.md
└── .mcp.json
Cursor loads plugins from ~/.cursor/plugins/local/<plugin-name>/. The folder name should match the name field in .cursor-plugin/plugin.json (this repo: hackmd).
Recommended: copy or sync the repo into that path (avoids symlink issues some builds have):
mkdir -p ~/.cursor/plugins/local
rm -rf ~/.cursor/plugins/local/hackmd
rsync -a --delete --exclude='.git' ./ ~/.cursor/plugins/local/hackmd/From anywhere, using an absolute path to your clone:
rsync -a --delete --exclude='.git' /path/to/cursor-plugin/ ~/.cursor/plugins/local/hackmd/Alternative: symlink instead of copying:
mkdir -p ~/.cursor/plugins/local
ln -sfn "$(pwd)" ~/.cursor/plugins/local/hackmdQuit Cursor completely and reopen it (a window reload is not always enough). Then verify:
Use this repository as the plugin source in Cursor, or sync it into ~/.cursor/plugins/local/hackmd/ as in Local Testing.
The plugin entrypoint is:
.cursor-plugin/plugin.json
Do not put API tokens inside mcp.json. In Cursor, mcp.json values support interpolation: strings like ${env:VAR} are resolved from your environment when MCP loads.
The header uses the same variable as the HackMD CLI: HMD_API_ACCESS_TOKEN.
Example (no secrets in the file):
{
"mcpServers": {
"hackmd-mcp": {
"command": "npx",
"args": [
"mcp-remote@0.1.38",
"https://mcp.hackmd.io/",
"--header",
"Authorization:Bearer ${env:HMD_API_ACCESS_TOKEN}"
]
}
}
}Cursor resolves ${env:HMD_API_ACCESS_TOKEN} from the environment it inherits when it starts (not from secrets embedded in mcp.json). Set the variable in your shell profile (for example ~/.zshrc or ~/.bashrc) and fully restart Cursor, or define it in your OS user / system environment so GUI-launched Cursor sees it—same idea as Cursor’s MCP docs: use config interpolation in mcp.json and keep real values in the environment. Use the same token as in Configure HackMD CLI authentication below.
To sanity-check the remote command from a terminal (shell variable, not Cursor interpolation):
export HMD_API_ACCESS_TOKEN=YOUR_TOKEN
npx mcp-remote@0.1.38 https://mcp.hackmd.io/ --header "Authorization:Bearer $HMD_API_ACCESS_TOKEN"npm install -g @hackmd/hackmd-cliUse either interactive login:
hackmd-cli loginor an environment variable:
export HMD_API_ACCESS_TOKEN=YOUR_TOKENFor HackMD EE instances, also set:
export HMD_API_ENDPOINT_URL=https://your.hackmd-ee.endpointhackmd-cli whoami
hackmd-cli notesIn Cursor, confirm the hackmd-mcp server appears from your user MCP configuration.
Use this when working with HackMD notes via CLI, including personal notes, team notes, exports, and scripting workflows.
Use this command to guide users through:
Use this rule for HackMD-related work so Cursor prefers the HackMD CLI workflow, distinguishes personal notes from team notes, and keeps auth placeholders out of committed examples.
Upstream reference: HackMD CLI skill
| Back | FazBrowse Home | New Git URL |