feat: add MCP server for LLM-driven linting#3631
Draft
Conversation
Adds an MCP (Model Context Protocol) server that exposes the linter as tools for LLMs: - `lint`: lint Python source code with JSON output - `lint_file`: lint a Python file on disk - `explain_rule`: get full documentation for a WPS violation rule All tools return structured JSON with violation locations, source context, and full rule explanations. Agent-Logs-Url: https://github.com/wemake-services/wemake-python-styleguide/sessions/5b895ecf-0f6c-4263-9655-ed7fb9703eaa Co-authored-by: sobolevn <4660275+sobolevn@users.noreply.github.com>
Agent-Logs-Url: https://github.com/wemake-services/wemake-python-styleguide/sessions/5b895ecf-0f6c-4263-9655-ed7fb9703eaa Co-authored-by: sobolevn <4660275+sobolevn@users.noreply.github.com>
Agent-Logs-Url: https://github.com/wemake-services/wemake-python-styleguide/sessions/5b895ecf-0f6c-4263-9655-ed7fb9703eaa Co-authored-by: sobolevn <4660275+sobolevn@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
sobolevn
April 19, 2026 08:35
View session
- Run `poetry lock` to include the new `mcp` optional dependency - Rename `result` variables to `output`/`parsed`/`first` (WPS110) - Split test_single_violation into code/location tests (WPS218) - Extract result[0] into `first` variable (WPS204) - Rename `v` to `entry` in list comprehension (WPS111) - Split TestParseViolations into Basic/Enrichment classes (WPS214) Agent-Logs-Url: https://github.com/wemake-services/wemake-python-styleguide/sessions/89e72bc3-65ef-47f4-9249-a3124fd28ebc Co-authored-by: sobolevn <4660275+sobolevn@users.noreply.github.com>
Member
|
The result quality is really low :( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
poetry lockto regenerate lock file with the newmcpoptional dependencypoetry check --lockpassesaction_requiredstatus)