Skip to content

Change Request: MCP Server #19588

@nzakas

Description

@nzakas

ESLint version

HEAD

What problem do you want to solve?

The Model Context Protocol is the way that AIs interact with different tools. In order to allow AIs to interact with ESLint, we can provide an MCP server.

What do you think is the correct solution?

We can provide an MCP server as part of the eslint package. There's an SDK that provides the basics. To start, I think it would make sense to provide a tool to lint files (linting text is challenging because we won't have the configuration file or a directory to pull from).

This could either be an existing flag (npx eslint --mcp) or a new binary (npx eslint-mcp).

Participation

  • I am willing to submit a pull request for this change.

Additional comments

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedThere is consensus among the team that this change meets the criteria for inclusioncoreRelates to ESLint's core APIs and featuresenhancementThis change enhances an existing feature of ESLint

    Type

    No type

    Projects

    Status

    Complete

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions