agentleFS
sandraschisandraschi/gitee-mcp/AGENTS.md

gitee-mcp

AGENTS.md2 starsChanged 3 months agoMITView on GitHub

MCP server bridging Gitee (gitee.com), China's largest open-source platform: humming radar, momentum, repo intel, user/repo search, zh->en translation via local LLM, webhook feed, watchlist, ecosystem graph, GitHub mirror, README corpus. Backend FastMCP 3.4.4 + FastAPI on 11161, React webapp on 11162. Anonymous tier works out of the box (60 req/hr, cached); GITEE_TOKEN unlocks search.

  • Reads credentials
  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.

    Of the AGENTS.md files we read, the 35,337 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 repository5 other files it gives its agents.

The file

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

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Never fabricate: anonymous repo search returns auth_required, not []

    line 54

≈ “Common” is an estimate: at least 1 in 5 of the 45,344 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

gitee-mcp

MCP server bridging Gitee (gitee.com), China's largest open-source platform: humming radar, momentum, repo intel, user/repo search, zh->en translation via local LLM, webhook feed, watchlist, ecosystem graph, GitHub mirror, README corpus. Backend FastMCP 3.4.4 + FastAPI on 11161, React webapp on 11162. Anonymous tier works out of the box (60 req/hr, cached); GITEE_TOKEN unlocks search.

Reading order

  1. docs/ARCHITECTURE.md - design, radar methodology, ecosystem layer, tiers
  2. docs/TOOLS.md - full tool + REST reference
  3. SPEC.md - v0.2 ecosystem-intelligence feature spec (what/why/deferred)
  4. src/gitee_mcp/ - source map below

Directory map

src/gitee_mcp/
├── server.py        FastMCP + FastAPI app, REST routes, dual transport entry
├── server_state.py  shared FastMCP instance
├── config.py        env config, seed repos (one .env source of truth)
├── client.py        Gitee v5 client, anonymous/token tiers, activity_score
├── radar.py         humming radar (live commit/star/forks ranking)
├── cache.py         JSON TTL cache (data/cache)
├── translate.py     zh->en via Ollama + glossary fallback
├── llm.py           provider probe + chat completion proxy
├── history.py       radar snapshot history: momentum/star series/digest data (v0.2)
├── watchlist.py     persistent watchlist + change detection (v0.2)
├── stack.py         Chinese-OSS tech-stack fingerprint (v0.2)
├── release_notes.py latest-release summarizer (v0.2)
├── ecosystem.py     graph / GitHub mirror / weekly digest (v0.2)
├── corpus.py        README BM25 index (SQLite FTS5, RAG-lite) (v0.2)
├── feed.py          RSS 2.0 radar feed (v0.2)
├── search_expand.py cross-lingual query expansion (v0.2)
├── culture.py       "why it matters in CN OSS" explainer (v0.2)
├── errors.py        shared error_response() + tool annotations
├── skills/          gitee-expert SKILL.md
└── tools/           portmanteaus: explore, repo, search, translate_tool,
                     webhook_tool, watchlist_tool, ecosystem_tool,
                     corpus_tool, prefab, help_tool, shutdown_tool

Entry points

  • gitee_mcp.server:main - CLI (stdio default; --mode http)
  • gitee_mcp.server:app - ASGI app (uvicorn)
  • run_server.py - PyInstaller/MCPB entry, MCP_PORT/PORT switch

Key rules

  • Portmanteau tools with operation enums; Annotated+Field docs, no Args
  • Never fabricate: anonymous repo search returns auth_required, not []
  • Rate budget: anonymous 60 req/hr - tools default small, cache is 10 min
  • uv run python only; PowerShell 7; ASCII in scripts (no em dashes)
  • MCPB pack script wipes+recopies mcpb/src; prompts verified 3-4-100
  • Git operations via gitops/git, never fileops

Gate commands

just ci          # ruff + pyright + pytest (cov>=60) + tsc + biome
just mcpb-pack   # fresh-stage bundle
just digest      # one-shot weekly ecosystem digest

Next (reading order)

  1. src/gitee_mcp/client.py - the API truth (what works anonymously)
  2. docs/TOOLS.md - full tool + REST reference
  3. docs/CONFIGURATION.md - env vars + local data stores

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.