Oxlint代码分析服务

Oxlint-mcp是一个为编辑器/代理客户端配置的MCP服务器,提供Oxlint代码分析功能。

  • by seo-rii
  • JavaScript
  • 本地部署
  • 1 星标
  • 更新于
在 GitHub 查看 seo-rii/oxlint-mcp

使用说明

oxlint mcp

Oxlint的MCP服务器。

类似于 @eslint/mcp,但与 oxlint!

MCP设置

此包旨在在编辑器/代理客户端中配置为MCP服务器。

VS Code

创建 .vscode/mcp.json 在您的项目中:

{
  "servers": {
    "Oxlint": {
      "type": "stdio",
      "command": "npx",
      "args": ["oxlint-mcp@latest"]
    }
  }
}

光标

创建 .cursor/mcp.json 在您的项目中:

{
  "mcpServers": {
    "oxlint": {
      "command": "npx",
      "args": ["oxlint-mcp@latest"],
      "env": {}
    }
  }
}

可选全局配置: ~/.cursor/mcp.json

帆板运动

将此添加到 ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "oxlint": {
      "command": "npx",
      "args": ["oxlint-mcp@latest"],
      "env": {}
    }
  }
}

故障排除

  • 在VS Code中,运行 MCP: List Servers 并检查服务器日志 Show Output.
  • 跑 npx oxlint-mcp@latest 直接在终端中确认服务器可以启动。
  • 确保Node.js和 npx 在与MCP客户端相同的环境中可用。

许可证

阿帕奇-2.0