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.1.tar.gz (2.1 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.1-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

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

Hashes for medcof_check_origin-1.0.1.tar.gz
Algorithm Hash digest
SHA256 03527bbbfc925c369183b0592faa16caf94cfae2204417a6ffe53815ce3f6b0d
MD5 7ba4133caae7174678bdb252d2d40adb
BLAKE2b-256 d4dea7b54c4e56bd383d8324477175b8c5b2ac081dd22fff195a94ee2e07f325

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for medcof_check_origin-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d0635a67533a63c53a758f8a115619ac582159e35f130bbdf997f59186ac5668
MD5 67f46723a81215f8ec99359563cbd410
BLAKE2b-256 71a66c5c306fae8a1792ce554563bb7608c15a55bb33ed0a2b2915ebfcbe9654

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