agentleFS
BiboyQGBiboyQG/WeChat-MCP/AGENTS.md

WeChat-MCP

AGENTS.md271 starsChanged 12 months agoMITView on GitHub

  • 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,736 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

Show its rules and text

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

13 rules. About 0 are common, 5 are distinctive, and 8 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 8

    Very specific

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

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

    Keep macOS Accessibility and WeChat-specific logic in wechat_accessibility.py.

    line 7
  2. Very specific:

    Run the MCP server (stdio): uv run wechat-mcp --transport stdio.

    line 11
  3. Very specific:

    Run over HTTP/SSE: uv run wechat-mcp --transport streamable-http or --transport sse.

    line 12
  4. Very specific:

    Use snake_case for functions/variables, PascalCase for classes, and relative imports within wechat_mcp.

    line 17
  5. Very specific:

    Prefer structured logging via logging_config.logger.

    line 18
  6. Distinctive:

    Keep functions small, with clear docstrings explaining interaction with macOS Accessibility APIs.

    line 19
  7. Very specific:

    No formal automated test suite yet.

    line 22
  8. Very specific:

    Run tests with uv run pytest.

    line 24
  9. Distinctive:

    Avoid hitting real Accessibility APIs in unit tests.

    line 25
  10. Very specific:

    Follow Conventional Commit style seen in history (e.g., feat:, docs:, refactor(scope):).

    line 28
  11. Distinctive:

    Keep commits focused and descriptive.

    line 29
  12. Distinctive:

    Keep diffs minimal and localized.

    line 34
  13. Distinctive:

    Update README.md and this file when adding new tools, transports, or configuration knobs.

    line 36

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

Repository Guidelines

Project Structure & Modules

  • Core code lives in src/wechat_mcp (MCP server, accessibility helpers, logging).
  • Entry point is wechat_mcp.mcp_server:main, exposed as the wechat-mcp script.
  • Logs are written under logs/ by default (configurable via WECHAT_MCP_LOG_DIR).
  • Keep macOS Accessibility and WeChat-specific logic in wechat_accessibility.py.

Build, Run & Development

  • Install dependencies: uv sync from the repository root.
  • Run the MCP server (stdio): uv run wechat-mcp --transport stdio.
  • Run over HTTP/SSE: uv run wechat-mcp --transport streamable-http or --transport sse.
  • Enable protocol debugging: uv run wechat-mcp --mcp-debug --transport stdio.

Coding Style & Naming

  • Python 3.12+, PEP 8 style, 4-space indentation, type hints where practical.
  • Use snake_case for functions/variables, PascalCase for classes, and relative imports within wechat_mcp.
  • Prefer structured logging via logging_config.logger; avoid print for runtime behavior.
  • Keep functions small, with clear docstrings explaining interaction with macOS Accessibility APIs.

Testing Guidelines

  • No formal automated test suite yet; new tests should use pytest under tests/ mirroring src/wechat_mcp.
  • Name test files test_*.py and test functions test_*.
  • Run tests with uv run pytest.
  • Avoid hitting real Accessibility APIs in unit tests; isolate them behind helper functions and use fakes where possible.

Commit & Pull Request Guidelines

  • Follow Conventional Commit style seen in history (e.g., feat:, docs:, refactor(scope):).
  • Keep commits focused and descriptive; explain behavior changes, not just code moves.
  • PRs should include: summary, motivation, how to reproduce/verify, and any macOS/WeChat version specifics.
  • Attach relevant log snippets from logs/wechat_mcp.log when debugging Accessibility issues.

Agent-Specific Instructions

  • Keep diffs minimal and localized; avoid large refactors unless explicitly requested.
  • Preserve existing logging, error handling, and transport behavior when extending features.
  • Update README.md and this file when adding new tools, transports, or configuration knobs.

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.