Skip to main content

MCP server that validates Cursor usage is restricted to MedCof-Tech repositories

Project description

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

pip install medcof-check-repo

Or with uv:

uv add medcof-check-repo

Cursor configuration

Add to ~/.cursor/mcp.json:

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

medcof_check_origin-1.0.2.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

medcof_check_origin-1.0.2-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file medcof_check_origin-1.0.2.tar.gz.

File metadata

  • Download URL: medcof_check_origin-1.0.2.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.8

File hashes

Hashes for medcof_check_origin-1.0.2.tar.gz
Algorithm Hash digest
SHA256 96c1739756550f4340b54b6dd065ebf565fd7684c56c5e79177d6d577a2d92c7
MD5 9bbd969d892751420c15b648117a79d2
BLAKE2b-256 cd6e1906d2646b1f692d4be08d8bd8b0ff8081694ea75d46bbe3c5a85f3283d7

See more details on using hashes here.

File details

Details for the file medcof_check_origin-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for medcof_check_origin-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ea32272d5771a2a2029ea1c74e6206018b56a80a47e7b71b5b77ac6a9cdc19d7
MD5 1797f2963c78f605d9c6dcc6b1ebe32e
BLAKE2b-256 212f73582d48deb06b363876940b297a381a81c7d671db2699577dcda782861e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page