Skip to content

Commit 8605ff0

Browse files
committed
feat: add MCP server configuration for enhanced documentation access
1 parent dc02224 commit 8605ff0

File tree

1 file changed

+25
-5
lines changed

1 file changed

+25
-5
lines changed

.github/workflows/claude.yml

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,31 @@ jobs:
3939
# This is an optional setting that allows Claude to read CI results on PRs
4040
additional_permissions: |
4141
actions: read
42-
42+
43+
# MCP Configuration for Terraform and Context7 documentation access
44+
mcp_config: |
45+
{
46+
"mcpServers": {
47+
"terraform": {
48+
"command": "npx",
49+
"args": [
50+
"-y",
51+
"@modelcontextprotocol/server-terraform@latest"
52+
]
53+
},
54+
"context7": {
55+
"command": "npx",
56+
"args": [
57+
"-y",
58+
"@upstash/context7-mcp@latest"
59+
]
60+
}
61+
}
62+
}
63+
64+
# Allow Bash permissions for pre-commit hooks and documentation updates + MCP tools
65+
allowed_tools: "Bash(pre-commit run --files),Bash(terraform fmt),Bash(terraform validate),Bash(terraform-docs),mcp__terraform-server__getProviderDocs,mcp__terraform-server__resolveProviderDocID,mcp__terraform-server__searchModules,mcp__terraform-server__moduleDetails,mcp__context7__resolve-library-id,mcp__context7__get-library-docs"
66+
4367
# Optional: Specify model (defaults to Claude Sonnet 4, uncomment for Claude Opus 4)
4468
# model: "claude-opus-4-20250514"
4569

@@ -49,9 +73,6 @@ jobs:
4973
# Optional: Trigger when specific user is assigned to an issue
5074
# assignee_trigger: "claude-bot"
5175

52-
# Optional: Allow Claude to run specific commands
53-
# allowed_tools: "Bash(npm install),Bash(npm run build),Bash(npm run test:*),Bash(npm run lint:*)"
54-
5576
# Optional: Add custom instructions for Claude to customize its behavior for your project
5677
# custom_instructions: |
5778
# Follow our coding standards
@@ -61,4 +82,3 @@ jobs:
6182
# Optional: Custom environment variables for Claude
6283
# claude_env: |
6384
# NODE_ENV: test
64-

0 commit comments

Comments
 (0)