Skip to content

Add Rails WebMCP example with Stimulus controllers#7

Merged
MiguelsPizza merged 2 commits intomainfrom
claude/rails-webmcp-example-01UdzyMDyBC7XmV7KtQ7xZGJ
Dec 6, 2025
Merged

Add Rails WebMCP example with Stimulus controllers#7
MiguelsPizza merged 2 commits intomainfrom
claude/rails-webmcp-example-01UdzyMDyBC7XmV7KtQ7xZGJ

Conversation

@MiguelsPizza
Copy link
Contributor

Introduces a bookmarks management application demonstrating WebMCP
integration with Ruby on Rails using Stimulus controllers:

  • Stimulus controller with 6 AI-callable tools (add, delete, update,
    list, search, stats)
  • Pure business logic separated into lib/bookmarks.ts
  • Sample ERB view with custom event handling for real-time updates
  • Reference Rails model and controller implementations
  • Compatible with Vite, importmaps, or esbuild bundlers
  • Follows Rails 7+ conventions with app/javascript structure

Updates CI workflow matrix and documentation to include the new example.

Introduces a bookmarks management application demonstrating WebMCP
integration with Ruby on Rails using Stimulus controllers:

- Stimulus controller with 6 AI-callable tools (add, delete, update,
  list, search, stats)
- Pure business logic separated into lib/bookmarks.ts
- Sample ERB view with custom event handling for real-time updates
- Reference Rails model and controller implementations
- Compatible with Vite, importmaps, or esbuild bundlers
- Follows Rails 7+ conventions with app/javascript structure

Updates CI workflow matrix and documentation to include the new example.
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

- Fix tool cleanup example in README to match actual implementation
- Simplify application.ts entry point
- Clarify controller registration comment in index.ts
- Remove unnecessary console.log and comments
@MiguelsPizza MiguelsPizza merged commit bccc8c4 into main Dec 6, 2025
6 checks passed
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