Skip to content

Commit e16f3d7

Browse files
Tom Wentworthclaude
authored andcommitted
Remove debug code and development artifacts
- Remove all debug print statements from production code - Delete debug/test command directories (mcp-debug, mcp-server-old, etc.) - Remove debug shell scripts - Add CLAUDE.md project documentation - Add enhanced create incident tool with auto-fetching defaults - Add test files for incidents functionality - Run go fmt to ensure consistent code formatting - Clean up unused imports This cleanup improves code quality and removes development-only artifacts from the production codebase. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent eee0859 commit e16f3d7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+1031
-1391
lines changed

.claude/settings.local.json

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,22 @@
2525
"Bash(then echo \"=== ~/mcp-debug.log ===\")",
2626
"Bash(./test_update_incident.sh:*)",
2727
"Bash(go run:*)",
28-
"Bash(./test_pause.sh:*)"
28+
"Bash(./test_pause.sh:*)",
29+
"Bash(make:*)",
30+
"mcp__incidentio-golang__list_severities",
31+
"mcp__incidentio-golang__list_incident_statuses",
32+
"mcp__incidentio-golang__create_incident",
33+
"mcp__incidentio-golang__list_incidents",
34+
"Bash(ls:*)",
35+
"mcp__incidentio-golang__list_alerts",
36+
"mcp__incidentio-alert__send_alert",
37+
"mcp__incidentio-golang__get_alert",
38+
"Bash(diff:*)",
39+
"Bash(mv:*)",
40+
"Bash(rg:*)",
41+
"Bash(./start-mcp-server.sh:*)"
2942
],
3043
"deny": []
31-
}
44+
},
45+
"enableAllProjectMcpServers": false
3246
}

CLAUDE.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Project Overview
2+
- This is an MCP (Model Context Protocol) server for incident.io API integration
3+
- Written in Go, following standard Go conventions
4+
- Provides tools for incident management, alerts, and workflow automation
5+
6+
# Development Standards
7+
- Use Go 1.21+ features and idioms
8+
- Follow standard Go formatting (gofmt)
9+
- Use meaningful variable and function names
10+
- Handle errors explicitly, don't ignore them
11+
12+
# Testing Commands
13+
- Run tests: `go test ./...`
14+
- Run specific package tests: `go test ./internal/incidentio/...`
15+
- Lint code: `golangci-lint run` (if available)
16+
- Format code: `go fmt ./...`
17+
18+
# Build and Run
19+
- Build server: `go build -o bin/mcp-server ./cmd/mcp-server`
20+
- Run server: `./start-mcp-server.sh`
21+
- Debug mode: `./debug-mcp.sh`
22+
23+
# Project Structure
24+
- `/cmd/` - Entry points for different server configurations
25+
- `/internal/incidentio/` - incident.io API client implementation
26+
- `/internal/tools/` - MCP tool implementations
27+
- `/internal/server/` - MCP server logic
28+
29+
# Environment Variables
30+
- INCIDENTIO_API_KEY - Required for API authentication
31+
- INCIDENTIO_ENDPOINT - Optional, defaults to https://api.incident.io

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ Add to your Claude configuration:
195195
{
196196
"mcpServers": {
197197
"incidentio": {
198-
"command": "/path/to/incidentio-mcp-golang/bin/mcp-server-clean",
198+
"command": "/path/to/incidentio-mcp-golang/bin/mcp-server",
199199
"env": {
200200
"INCIDENT_IO_API_KEY": "your-api-key"
201201
}
@@ -245,7 +245,7 @@ To enable debug logging, use the wrapper script:
245245
cat > mcp-debug-wrapper.sh << 'EOF'
246246
#!/bin/bash
247247
LOG_FILE="/tmp/mcp-incidentio-debug-$(date +%Y%m%d).log"
248-
exec /path/to/bin/mcp-server-clean 2>>"$LOG_FILE"
248+
exec /path/to/bin/mcp-server 2>>"$LOG_FILE"
249249
EOF
250250

251251
chmod +x mcp-debug-wrapper.sh

cmd/mcp-debug/main.go

Lines changed: 0 additions & 133 deletions
This file was deleted.

0 commit comments

Comments
 (0)