atxtechbro / atxtechbro/dotfiles

Add company-notes protection to git/GitHub MCP servers

Open
#921 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
27
Forks
2
PR merge metrics
No merged PRs in 30d

Description

## Problem

Company-specific notes can bypass gitignore when using explicit paths:

```bash
git add company-notes/config.sh # bypasses gitignore
```

This could theoretically happen with any `*-notes/` directory (e.g., flywire-notes, client-notes, etc.).

## Solution

Add validation to git and GitHub MCP servers to block `*-notes/*` operations.

- Git MCP: Block `git_add` on company-notes patterns
- GitHub MCP: Block pushes containing company-notes files
- Error: "Cannot commit *-notes/ files (no-leaks principle)"

Simple security improvement to prevent accidental company data exposure.

May create sub-issues for implementation.

Contributor guide

No contributing guide indexed for this repository

Research direction

No file or test paths are named. Locate the Git MCP git_add handler and the GitHub MCP push path, then trace how explicit paths and pushed files are validated. Done means both servers block *-notes/ files and return the specified no-leaks error.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, github, shell
Domain
devtools, security
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.