hooks_mcp.yaml•3.05 kB
# HooksMCP Configuration File for use with the hooks-mcp repo!
prompts:
- name: "test_guide.md"
description: "Guide for testing best practices in this library"
prompt-file: "agents/test_guide.md"
- name: "code_analysis"
description: "Analyze code quality"
prompt: "Please analyze the following code:\n{{CODE_SNIPPET}}\nProvide feedback."
arguments:
- name: "CODE_SNIPPET"
description: "Code snippet to analyze"
required: true
actions:
- name: "all_tests"
description: "Run all tests in the project"
command: "uv run python -m pytest ./tests/"
- name: "lint"
description: "Lint the source code, checking for errors and warnings"
command: "uvx ruff check --extend-select I,F401"
- name: "lint_fix"
description: "Lint the source code, fixing errors and warnings which it can fix. Not all errors can be fixed automatically."
command: "uvx ruff check --extend-select I,F401 --fix"
- name: "check_format"
description: "Check if the source code is formatted correctly"
command: "uvx ruff format --check ."
- name: "format"
description: "Format the source code"
command: "uvx ruff format ."
- name: "typecheck"
description: "Typecheck the source code"
command: "uv run pyright ."
- name: "test_file"
description: "Run tests in a specific file or directory"
command: "uv run python -m pytest $TEST_PATH"
parameters:
- name: "TEST_PATH"
type: "project_file_path"
description: "Path to test file or directory"
- name: "test_specific"
description: "Run a specific test by name"
command: "uv run python -m pytest $TEST_PATH -k $TEST_NAME"
parameters:
- name: "TEST_PATH"
type: "project_file_path"
description: "Path to test file or directory"
default: "./tests"
- name: "TEST_NAME"
type: "insecure_string"
description: "Name of the test to run"
# Example: Command that requires an environment variable. MCP Server will fail to start if the environment variable is not set.
# - name: "deploy"
# description: "Deploy the application (requires DEPLOY_KEY environment variable)"
# command: "echo Deploying with key $DEPLOY_KEY"
# parameters:
# - name: "DEPLOY_KEY"
# type: "required_env_var"
# description: "Deployment key for the service"
# # Example: Command with optional environment variable. MCP Server will start even if the environment variable is not set.
# - name: "build"
# description: "Build the application"
# command: "echo Building application with key $DEPLOY_KEY"
# parameters:
# - name: "DEPLOY_KEY"
# type: "optional_env_var"
# description: "Deployment key for the service"
# # Example: Command that runs from a specific directory. Useful for mono-repos.
# - name: "docs_check"
# description: "Check documentation"
# command: "echo Checking documentation in the app/webserver directory"
# run_path: "app/webserver"