Skip to content

Bootstrapping a ReScript MCP #7566

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from
Draft

Bootstrapping a ReScript MCP #7566

wants to merge 8 commits into from

Conversation

zth
Copy link
Collaborator

@zth zth commented Jun 18, 2025

This takes the first steps towards bootstrapping a dedicated ReScript MCP, with a few initial commands.

Trying it out

Very very early so far, but if you want to play around with it in a local project, do this:

  1. Clone and build this PR just like you'd normally build the compiler (check CONTRIBUTING.md if you don't know how)
  2. Make sure you have Bun installed
  3. Run yarn install in the mcp folder
  4. For example using Cursor, add + adapt this to .cursor/mcp.json in your local project:
{
  "mcpServers": {
    "rescript-mcp": {
      "command": "bun",
      "args": ["/Users/zth/OSS/rescript-compiler/mcp/server.ts"]
    }
  }
}

Now you should get the MCP as an option in Cursor.

When you make changes to the MCP, reload it in Cursor (or reload the window of Cursor entirely).

@zth zth changed the title Boostrapping a ReScript MCP Bootsrapping a ReScript MCP Jun 18, 2025
@zth zth changed the title Bootsrapping a ReScript MCP Bootstrapping a ReScript MCP Jun 18, 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.

1 participant