The MCP server knowledge base is configurable via YAML files. This allows you to customize what documentation and templates are loaded into the Q CLI integration.
The default configuration is in mcp-config.yaml at the repository root:
docs:
- path: README.md
description: Main project documentation
- path: docs/
description: All documentation files
recursive: true
include: ['*.md', '*.pdf']
templates:
cicd_pipelines:
- path: examples/
description: Pipeline manifest examples
include: ['*pipeline*.yaml']
github_workflows:
- path: .github/workflows/
description: GitHub Actions workflows
include: ['*.yml', '*.yaml']
airflow_workflows:
- path: examples/workflows/
description: Airflow DAG examples
include: ['*.py']
exclude: ['__pycache__/', '*.pyc']Defines documentation files to include in the knowledge base:
path: File or directory path (relative to repository root)description: Human-readable descriptionrecursive: (Optional) Search subdirectoriesinclude: (Optional) File patterns to include (glob patterns)
Organized by category with multiple template sources:
- cicd_pipelines: Pipeline manifest templates
- github_workflows: GitHub Actions workflow templates
- airflow_workflows: Airflow DAG templates
Each template source supports:
path: Directory or file pathdescription: Human-readable descriptioninclude: File patterns to includeexclude: Patterns to exclude
aws-smus-cicd-cli integrate qcli --configure my-config.yamldocs:
- path: README.md
- path: docs/
recursive: true
include: ['*.md']
- path: internal-docs/
recursive: true
include: ['*.md', '*.txt']
templates:
cicd_pipelines:
- path: my-templates/pipelines/
include: ['*.yaml']
github_workflows:
- path: .github/workflows/
include: ['*.yml']
airflow_workflows:
- path: dags/
include: ['*.py']
exclude: ['test_*.py', '__pycache__/']
custom_scripts:
- path: scripts/
include: ['*.sh', '*.py']The configuration path is passed via the SMUS_MCP_CONFIG environment variable to the MCP server.
Once configured, use Q CLI to query:
q chat
You: Show me a pipeline example
You: What GitHub workflows are available?
You: How do I configure Airflow workflows?The MCP server will search across all configured docs and templates.