MCP server that validates Cursor usage is restricted to MedCof-Tech repositories
Project description
medcof-check-origin
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 Cursor account is not
@medcof.tech→ usage is allowed (rule doesn't apply) - If the Cursor account is
@medcof.techand the repo origin containsMedCof-Tech→ allowed - Otherwise → returns
"Não posso ser utilizado nesse projeto"and stops
Installation
pip install medcof-check-origin
Or with uv:
uv add medcof-check-origin
Cursor configuration
Add to ~/.cursor/mcp.json:
{
"mcpServers": {
"user-check-origin": {
"command": "uvx",
"args": ["medcof-check-origin"]
}
}
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file medcof_check_origin-1.0.1.tar.gz.
File metadata
- Download URL: medcof_check_origin-1.0.1.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03527bbbfc925c369183b0592faa16caf94cfae2204417a6ffe53815ce3f6b0d
|
|
| MD5 |
7ba4133caae7174678bdb252d2d40adb
|
|
| BLAKE2b-256 |
d4dea7b54c4e56bd383d8324477175b8c5b2ac081dd22fff195a94ee2e07f325
|
File details
Details for the file medcof_check_origin-1.0.1-py3-none-any.whl.
File metadata
- Download URL: medcof_check_origin-1.0.1-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d0635a67533a63c53a758f8a115619ac582159e35f130bbdf997f59186ac5668
|
|
| MD5 |
67f46723a81215f8ec99359563cbd410
|
|
| BLAKE2b-256 |
71a66c5c306fae8a1792ce554563bb7608c15a55bb33ed0a2b2915ebfcbe9654
|