Skip to content

feat(textlint): add --mcp option#1522

Merged
azu merged 8 commits intotextlint:masterfrom
chick-p:feat-mcp-option
Jun 8, 2025
Merged

feat(textlint): add --mcp option#1522
azu merged 8 commits intotextlint:masterfrom
chick-p:feat-mcp-option

Conversation

@chick-p
Copy link
Contributor

@chick-p chick-p commented Jun 7, 2025

This PR is adding --mcp option for textlint CLI.
Ref. #1498

Verification

I confirmed the behavior with the following steps:

  1. Build packages
     npm run build
    
  2. Install textlint locally:
    cd packages/textlint/
    npm install -g .
  3. Run MCP Inspector:
    npx -y @modelcontextprotocol/inspector npx textlint --mcp
  4. Open http://127.0.0.1:6274
  5. Click [Connect] and select [LintText]
  6. Enter values for text and stdinFilename
  7. Click [Run Tool] to execute
    127 0 0 1_6274_

Copy link
Member

@azu azu left a comment

Choose a reason for hiding this comment

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

LGTM

Is this PR still draft?

@chick-p chick-p marked this pull request as ready for review June 8, 2025 00:52
@chick-p
Copy link
Contributor Author

chick-p commented Jun 8, 2025

@azu Thanks!
I had marked it as a draft to get confirmation.
Since I received feedback that it looks good, I’ve moved it to Ready.

@azu azu merged commit bd31455 into textlint:master Jun 8, 2025
10 checks passed
@github-actions github-actions bot mentioned this pull request Jun 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Feature New Feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants