agentleFS
cubrid-labcubrid-lab/cubrid-mcp-server/AGENTS.md

cubrid-mcp-server

AGENTS.md32 starsChanged 2 months agoMITView on GitHub

Guidance for AI agents and contributors working in this repository. cubrid-mcp-server is a Model Context Protocol server for the CUBRID database. It lets LLM clients safely inspect schemas and run read-only queries via the pure-Python pycubrid driver. Version is single-sourced from cubrid_mcp_server/__init__.py → __version__ = "x.y.z" (pyproject.toml reads it dynamically; .mcpb/server.json mirrors it for the MCP Registry). Merging a reviewed release PR is the only normal way to release: prepare-release.yml opens it (dated CHANGELOG section + __version__ and .mcpb/server.json bump,…

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repositoryOne other file it gives its agents.

The file

We split this AGENTS.md into the rules it gives an agent

9 rules. About 0 are common, 3 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read-only safety is a core invariant: any change touching safety.py / query execution must preserve read-only enforcement and ship tests.

    line 29
  2. Distinctive:

    All non-trivial work MUST follow this cycle:

    line 55
  3. Very specific:

    When creating an issue in any cubrid-lab repository, assign exactly one priority: <value> label and exactly one size: <value> label at …

    line 66
  4. Distinctive:

    Use the following exact names, with one space after the colon:

    line 75
  5. Very specific:

    Do not introduce variants such as priority:high, priority-high, P1, or size:S.

    line 80
  6. Very specific:

    Assign both priority: and size: when filing the issue: If scope or impact is uncertain, use a provisional estimate, explain the …

    line 100
  7. Very specific:

    good first issue should be size: XS or size: S: If a good-first-issue grows past size: S, re-scope it or drop the good first issue …

    line 104
  8. Very specific:

    If no documentation change is needed, state the reason explicitly in the PR body as Docs: not needed - <reason> or apply the …

    line 112
  9. Distinctive:

    Do not mark work complete until code, tests, and documentation are consistent.

    line 114

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

AGENTS.md

Guidance for AI agents and contributors working in this repository.

Project Overview

cubrid-mcp-server is a Model Context Protocol server for the CUBRID database. It lets LLM clients safely inspect schemas and run read-only queries via the pure-Python pycubrid driver.

  • Package: cubrid_mcp_server/
  • Entry point: python -m cubrid_mcp_server
  • Tool surface (see README.md): schema inspection, index/serial/class-hierarchy listing, explain_query, execute_query (read-only), health_check.

Architecture

cubrid_mcp_server/
├── server.py     # MCP server + tool definitions
├── database.py   # pycubrid connection + query execution
├── safety.py     # read-only SQL enforcement / whitelist
├── config.py     # environment-variable configuration
├── context.py    # request/connection context
└── __main__.py   # module entry point

Code Conventions

  • Python 3.10+, fully typed (py.typed); keep mypy and ruff clean.
  • All logging MUST be routed to stderr. stdout is reserved for the MCP protocol stream — never print to stdout.
  • Read-only safety is a core invariant: any change touching safety.py / query execution must preserve read-only enforcement and ship tests.

Development

  • make install — install in development mode
  • make check — ruff lint + mypy typecheck
  • make test — unit tests (excludes integration)
  • make integration — integration tests (requires a live CUBRID)
  • make release-check VERSION=x.y.z — read-only release consistency gate (run by prepare-release.yml and release.yml)

Release Process

Version is single-sourced from cubrid_mcp_server/__init__.py → __version__ = "x.y.z" (pyproject.toml reads it dynamically; .mcpb/server.json mirrors it for the MCP Registry). Merging a reviewed release PR is the only normal way to release: prepare-release.yml opens it (dated CHANGELOG section + __version__ and .mcpb/server.json bump, checked by make release-check VERSION=x.y.z), and after the squash-merge release.yml detects the version change and runs consistency → full matrix → build → tag/Release/PyPI → cookbook verification (the cookbook smoke test called as a pinned reusable workflow, no token) → summary on its own. Ordinary PRs never change __version__ or date a CHANGELOG section. Never push tags or publish by hand; the only manual entry point is the narrow recovery dispatch of release.yml. Procedure, failure matrix and recovery: RELEASING.md.

Development Workflow (cubrid-lab org standard)

All non-trivial work MUST follow this cycle:

  1. Oracle Design Review — validate approach before implementation.
  2. Implementation — build with tests, following existing patterns.
  3. Documentation Update — update all affected docs (README tool table, configuration, CHANGELOG) in the same PR.
  4. Oracle Post-Implementation Review — review correctness, edge cases, and consistency before merging.

Trivial changes (typos, single-line fixes) may skip phases 1 and 4.

Issue Labeling (cubrid-lab org standard)

When creating an issue in any cubrid-lab repository, assign exactly one priority: <value> label and exactly one size: <value> label at creation time, alongside a type label (bug/enhancement/documentation/chore/ci/…) and an area: label when applicable. These must be GitHub labels, not just text in the issue title or body.

Issue titles use the same type(scope): description format as pull request titles (see CONTRIBUTING.md).

Use the following exact names, with one space after the colon:

  • Priority: priority: critical, priority: high, priority: medium, priority: low.
  • Size: size: XS, size: S, size: M, size: L, size: XL.

Do not introduce variants such as priority:high, priority-high, P1, or size:S. Reuse the repository's canonical labels; if a required label is missing, create it with the exact name above before filing the issue. This policy governs new issue creation, not bulk renaming or relabeling existing issues unless explicitly requested.

Priority reflects urgency and impact; size estimates implementation effort and helps contributors pick appropriately scoped work.

LabelMeaningRough guide
size: XSTrivial change< ~10 lines; single-file typo/config/one-liner
size: SSmall changeOne file or one focused function; a single test or doc page
size: MMedium changeA few files; a new test module, a bug fix with tests, a CI job
size: LLarge changeCross-cutting change across many files; multi-artifact (e.g. demo GIF + video + docs)
size: XLVery largeConsider splitting into smaller issues before starting

Rules:

  1. Size reflects effort, not importance — a one-line fix for a critical bug is still size: XS.
  2. Assign both priority: and size: when filing the issue. If scope or impact is uncertain, use a provisional estimate, explain the uncertainty in the body, and add status: needs triage (or the repo's equivalent). Refine the estimates during triage rather than omitting either required label.
  3. good first issue should be size: XS or size: S. If a good-first-issue grows past size: S, re-scope it or drop the good first issue label.
  4. size: XL is a signal to split, not a green light to start a sprawling change.

Documentation definition of done

Any change that affects public behavior, MCP tools, configuration/environment variables, read-only safety semantics, installation, or release semantics MUST update the matching documentation in the same PR. At minimum keep in sync: README.md (tool table + configuration) and CHANGELOG.md.

If no documentation change is needed, state the reason explicitly in the PR body as Docs: not needed - <reason> or apply the docs-not-needed label. This is enforced by the docs-sync CI check.

Do not mark work complete until code, tests, and documentation are consistent.

Commit Convention

Issue titles, pull request titles and commit subjects follow CONTRIBUTING.md - Pull request and commit titles: type(scope)!: description with types feat, fix, docs, test, perf, refactor, ci, build, chore, style, revert; English, lowercase start unless the first word is an API name, acronym, or proper noun; no trailing period, no issue numbers in pull request titles (use Closes #N / Refs #N in the body). Pull requests are squash-merged and the pull request title becomes the commit title. The PR title check enforces it.

There is no security type: security fixes use fix: plus the security label.

Related Projects

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.