Skip to content

Conversation

antfu
Copy link
Owner

@antfu antfu commented Mar 14, 2025

Thanks to @DannyVogel's tips and prompts in #2

This PR will bring MCP to provide prompts based on current projects setup (auto import or not, ssr or not, etc.)

@JosephAnson
Copy link
Contributor

You can also define rules via rules files, specifying where the rules apply. Defining file types for each rules block, so it's a little more restricted.

https://docs.cursor.com/context/rules-for-ai

@antfu
Copy link
Owner Author

antfu commented Mar 15, 2025

But that would be Cursor specific right? Ideally we want to build something universal. With this we might be able to have an option to dump the prompts to specific files like cursor rules or copilotinstructions.

@DannyVogel
Copy link

But that would be Cursor specific right? Ideally we want to build something universal. With this we might be able to have an option to dump the prompts to specific files like cursor rules or copilotinstructions.

I agree. With the MCP implementation I can probably reduce my own cursor rules significantly and limit them to more specific needs or personal styles instead of having to tell it how nuxt or vue works generally. In the end those rules are just additional context provided to the users prompt

@JosephAnson
Copy link
Contributor

JosephAnson commented Mar 16, 2025

I totally agree with making it universal, using prompts would make it MCP only however it would also be nice to have it setup things based around the client you're using, but that I guess would change the purpose of this package. It's also quite difficult at the moment as everyone handles rules differently .cursor/rules or .claude/claude.md, .github/copilot-instructions.md and even most clients don't support prompts at the moment: https://modelcontextprotocol.io/clients#feature-support-matrix.

I think it'll end up quite cumbersome having to remember to call the prompt before each call that's nuxt related to give the context to the llm, but it's certainly the easiest solution to maintain.

On the other side I think that right now generating the files would provide the most benefit. I was exploring creating the files using the blog here, one nice thing is if you're generating rules you can make more specific rules based around the glob allowing you to be more granular with the rules being defined. However it only really applies to cursor, which is a shame.

image

@antfu antfu marked this pull request as ready for review April 8, 2025 07:09
@antfu antfu merged commit 63d53cc into main Apr 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants