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.
- CLAUDE.mdCLAUDE.md
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
- Very specific: line 7
Keep macOS Accessibility and WeChat-specific logic in wechat_accessibility.py.
- Very specific: line 11
Run the MCP server (stdio): uv run wechat-mcp --transport stdio.
- Very specific: line 12
Run over HTTP/SSE: uv run wechat-mcp --transport streamable-http or --transport sse.
- Very specific: line 17
Use snake_case for functions/variables, PascalCase for classes, and relative imports within wechat_mcp.
- Very specific: line 18
Prefer structured logging via logging_config.logger.
- Distinctive: line 19
Keep functions small, with clear docstrings explaining interaction with macOS Accessibility APIs.
- Very specific: line 22
No formal automated test suite yet.
- Very specific: line 24
Run tests with uv run pytest.
- Distinctive: line 25
Avoid hitting real Accessibility APIs in unit tests.
- Very specific: line 28
Follow Conventional Commit style seen in history (e.g., feat:, docs:, refactor(scope):).
- Distinctive: line 29
Keep commits focused and descriptive.
- Distinctive: line 34
Keep diffs minimal and localized.
- Distinctive: line 36
Update README.md and this file when adding new tools, transports, or configuration knobs.
≈ “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.
Files
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 thewechat-mcpscript. - Logs are written under
logs/by default (configurable viaWECHAT_MCP_LOG_DIR). - Keep macOS Accessibility and WeChat-specific logic in
wechat_accessibility.py.
Build, Run & Development
- Install dependencies:
uv syncfrom the repository root. - Run the MCP server (stdio):
uv run wechat-mcp --transport stdio. - Run over HTTP/SSE:
uv run wechat-mcp --transport streamable-httpor--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_casefor functions/variables,PascalCasefor classes, and relative imports withinwechat_mcp. - Prefer structured logging via
logging_config.logger; avoidprintfor 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
pytestundertests/mirroringsrc/wechat_mcp. - Name test files
test_*.pyand test functionstest_*. - 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.logwhen 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.mdand this file when adding new tools, transports, or configuration knobs.
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
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.

