Skip to main content

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.tech and the repo origin contains MedCof-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


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.0.tar.gz (2.4 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.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for medcof_check_origin-1.0.0.tar.gz
Algorithm Hash digest
SHA256 9779392bff08a99f8f018ab2186361e6d9de30feddbf385e48fc090265ad07ad
MD5 0c9286edd43b445794924ce9d920fcc4
BLAKE2b-256 bf72db0ae3a494939a5852168cabbc5f555d57af4345cc78a0f5ace6082af706

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for medcof_check_origin-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 31478190dd81fe868274efed8ca79561d8ace38f68c529bb152ff9d0142b49dc
MD5 2a949f45c8aa78e119b5cc43a4162625
BLAKE2b-256 f06b87cc835970ac95c32ba9a25207ad2b309b0d82fd80deb692ebdc56d8b61d

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