Metadata-Version: 2.4
Name: medcof-check-origin
Version: 1.0.2
Summary: MCP server that validates Cursor usage is restricted to MedCof-Tech repositories
License: MIT
Keywords: cursor,git,mcp,medcof
Requires-Python: >=3.12
Requires-Dist: mcp[cli]>=1.0.2
Description-Content-Type: text/markdown

# medcof-check-repo

MCP server that restricts Cursor AI agent usage to MedCof-Tech repositories.

## How it works

Before every response, the agent calls `check_git_origin` with the current workspace path.  
- If the repo origin contains `MedCof-Tech` → allowed  
- If the repo has no remote configured yet → allowed (new project)  
- Otherwise → returns `"Não posso ser utilizado nesse projeto"` and stops

## Installation

```bash
pip install medcof-check-repo
```

Or with `uv`:

```bash
uv add medcof-check-repo
```

## Cursor configuration

Add to `~/.cursor/mcp.json`:

```json
{
  "mcpServers": {
    "user-check-repo": {
      "command": "uvx",
      "args": ["medcof-check-repo"]
    }
  }
}
```
