Skip to main content
Glama
ggerve

Coding Standards MCP Server

by ggerve

get_style_guide

Retrieve Markdown-formatted coding style guidelines for a specified programming language to ensure adherence to best practices and standards.

Instructions

Get coding style guidelines for the specified language in Markdown format

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
languageYes

Implementation Reference

  • server.py:60-65 (handler)
    The handler function for the 'get_style_guide' tool. Decorated with @mcp.tool() which also serves as registration. It generates the template filename based on the input language and returns the content by calling the read_template helper.
    @mcp.tool() def get_style_guide(language: str) -> str: """Get coding style guidelines for the specified language in Markdown format""" filename = f"{language}_style_guide.md" return read_template(filename)
  • Helper utility function used by get_style_guide to read and return the content of the specified template file from the templates directory.
    def read_template(filename: str) -> str: """Read content from a template file""" template_path = os.path.join(os.path.dirname(__file__), "templates", filename) try: with open(template_path, "r") as f: return f.read() except FileNotFoundError: return f"Error: Template file {filename} not found" except Exception as e: return f"Error reading template {filename}: {str(e)}"

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ggerve/coding-standards-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server