Skip to content

Conversation

@JosephAnson
Copy link
Contributor

This pull request introduces changes to the packages/nuxt-mcp module, primarily focusing on the nuxt-cli and modules.

Description

Refactoring and tool registration:

  • I've move your utils to Nuxt Runtime tools
  • Create a list of cli tools to handle calling all the options of the Nuxt CLI
  • Created a list to call https://api.nuxt.com/ to get information such as available modules from Nuxt

Additional Considerations

  • It's worth looking at the implementation I made to call the nuxt cli, maybe there's a better way to approach it.

Additional Improvements

  • Add some additional functionally to add resources to the MCP to better fetch documentation
  • As future work we can look to approach to support different nuxt modules, I've been working on mdc tools for Nuxt Content, i'm been looking into this with @farnabaz

@antfu
Copy link
Owner

antfu commented Mar 14, 2025

Thanks for the PR! I think it's a bit too risky to allow MCP to execute CLI commands. I will see how I can hook into nuxi to run the commands programmatically instead.

@antfu
Copy link
Owner

antfu commented Mar 14, 2025

Also a bit related: nuxt/nuxt#31353

@antfu antfu merged commit 6884d57 into antfu:main Mar 14, 2025
@JosephAnson JosephAnson deleted the feat/create-nuxt-tools branch March 14, 2025 20:32
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.

2 participants