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.
This pull request introduces a new project,
stimulus-mcp-server
, which is a basic MCP server implementation for Stimulus.Currently, it bootstraps a few MCP tools for asking Stimulus-related questions about your application:
check-stimulus-usage
- Checks if a given app uses Stimulus.jsget-javascript-bundling-approach
- Checks what kind of JavaScript bundling a Ruby on Rails application is using.get-stimulus-application-file-path
- Get the path of the Stimulus application fileget-stimulus-application-file-content
- Get the content of the Stimulus application fileget-stimulus-controller-index-file-path
- Get the path of the Stimulus controller index fileget-stimulus-controller-file-content
- Get the content of a Stimulus controller fileget-stimulus-controller-file-path
- Get the path of a Stimulus controller fileget-stimulus-controller-target-names
- Get the Stimulus target names of a Stimulus controllerget-stimulus-controller-action-names
- Get the Stimulus action names of a Stimulus controllerget-stimulus-controller-value-names
- Get the Stimulus value names and types of a Stimulus controllerget-stimulus-controller-classes
- Get the Stimulus classes of a Stimulus controllerget-stimulus-controller-possible-html-attributes
- Get all possible and valid HTML attributes of a Stimulus controllerstimulus-controller-example-usage-documentation
- Get the example usage documentation of a Stimulus controllercheck-if-stimulus-controller-exists
- Check if a Stimulus controller existscheck-if-stimulus-controller-is-registered-on-stimulus-application
- Check if a Stimulus controller is registered on a Stimulus applicationcreate-stimulus-controller
- Create a new Stimulus controllerregister-stimulus-controller-on-stimulus-application
- Register a Stimulus controller on a Stimulus applicationget-stimulus-controller-identifiers
- Get a list of valid controller identifiers in an app/project that uses StimulusSetup
Setting it up with Claude Desktop
Update
~/Library/Application\ Support/Claude/claude_desktop_config.json
using the output from therealpath dist/index.js
from above:Setting it up with Cursor:
Update
~/.cursor/mcp.json
using the output from therealpath dist/index.js
from above: