AI SummaryCursor rules template for Bun + MCP server projects that documents Bun utility APIs and version management. Useful for developers building TypeScript projects with Bun runtime in Cursor IDE.
Install
Copy this and paste it into Claude Code, Cursor, or any AI assistant:
I want to add the "bun-mcp-server — Cursor Rules" prompt rules to my project. Repository: https://github.com/dotneet/bun-mcp-server Please read the repo to find the rules/prompt file, then: 1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type) 2. If there's an existing rules file, merge the new rules in rather than overwriting 3. Confirm what was added
Description
template for Bun + MCP server project
`Bun.version`
A string containing the version of the bun CLI that is currently running. `ts Bun.version; // => "0.6.4" `
`Bun.revision`
The git commit of Bun that was compiled to create the current bun CLI. `ts Bun.revision; // => "f02561530fda1ee9396f51c8bc99b38716e38296" `
`Bun.env`
An alias for process.env.
`Bun.main`
An absolute path to the entrypoint of the current program (the file that was executed with bun run). `ts#script.ts Bun.main; // /path/to/script.ts ` This is particular useful for determining whether a script is being directly executed, as opposed to being imported by another script. `ts if (import.meta.path === Bun.main) { // this script is being directly executed } else { // this file is being imported from another script } ` This is analogous to the require.main = module trick in Node.js.
Discussion
Health Signals
My Fox Den
Community Rating
Sign in to rate this booster
Works With
Any AI assistant that accepts custom rules or system prompts