Feedback

Basic information

Runtime
go
Category
Ide
License
MIT license
Author
yoheimuta
Submitted by
Community
Quality
65
Stars
633

About protolint

A pluggable linter and fixer to enforce Protocol Buffer style and conventions.

protolint is a MCP client in the Ide category listed in the AddMCP.net directory, published by yoheimuta. Runtime: go. License: MIT license. The repository has 633 GitHub stars. Source code is hosted on github.com. Related topics: cli, fixer, golang, lint, linter.

protolint config

No standard config provided

This server doesn't expose a parseable MCP config block in its README. See the repository for install instructions.

Repository

protolint tools

Tool list not available yet

This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is protolint?

protolint is a pluggable linting and fixing utility for Protocol Buffer files (proto2 and proto3). It runs without a compiler, enforces the official style guide, and can automatically fix violations. protolint now includes a built-in MCP (Model Context Protocol) server, enabling AI models to lint and fix proto files directly.

How to use protolint?

Install protolint via Homebrew, pre‑built GitHub releases, Docker, source, npm, or pypi. To start the MCP server, run protolint --mcp from the command line. For standard linting, use protolint lint [files or directories]. Configuration is optional and can be provided via YAML files; most projects work out of the box.

Key features of protolint

  • Pluggable custom lint rules via plugins
  • Automatic fixing of official style guide violations
  • Comment‑based rule disabling to maintain compatibility
  • Runs fast without requiring a Protocol Buffer compiler
  • MCP server for direct interaction with AI models
  • Integrated with editors, CI systems, and GitHub Actions

Use cases of protolint

  • Enforce style guide consistency across large proto‑based projects
  • Automatically fix style violations in pre‑commit hooks or CI pipelines
  • Integrate linting into IDEs like VS Code, JetBrains, and Vim
  • Use AI assistants (via MCP) to lint and fix proto files on demand
  • Run linting in Docker for reproducible builds in any environment

Frequently asked questions

1 What is protolint and how does it differ from other proto linters?

protolint is a standalone linter that does not require the Protocol Buffer compiler. It focuses on style guide compliance, includes an auto‑fixer, and supports custom rules via plugins. It also offers an MCP server for AI tool integration.

2 How do I install protolint?

You can install it using Homebrew, download a pre‑built binary from GitHub Releases, use the Docker image yoheimuta/protolint, build from source with Go, or install via npm (npm install protolint) or pypi (protolint-bin).

3 Does protolint support MCP servers?

Yes. Run protolint --mcp to start the MCP server. This allows MCP clients such as Claude Desktop to lint and fix Protocol Buffer files.

4 Can protolint automatically fix style violations?

Yes, the -fix flag automatically corrects many style guide violations. The -auto_disable option can also insert disable comments for violations that cannot be auto‑fixed, preserving existing compatible code.

5 Is protolint available as a Docker image?

Yes. The official Docker image is yoheimuta/protolint. You can mount your workspace and run linting with a command like docker run --volume \"$(pwd):/workspace\" --workdir /workspace yoheimuta/protolint lint \x3Ctarget>.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬