Commit 76881e5
Changed files (1)
pkg
git
pkg/git/server.go
@@ -63,7 +63,7 @@ func (gs *Server) setupResourceHandling() {
// ListResources dynamically discovers and returns git resources
func (gs *Server) ListResources() []mcp.Resource {
- var resources []mcp.Resource
+ resources := make([]mcp.Resource, 0)
// Check if this is a git repository
gitDir := filepath.Join(gs.repoPath, ".git")