yan
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| WXLENS_AUTO_START | No | Set to false to disable automatic startup of WxLens. Default is true. | true |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| prompts | {
"listChanged": true
} |
| resources | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_sessionsB | 列出微信会话列表(私聊/群聊),按最近活跃时间排序 |
| search_messagesA | 按关键词搜索微信聊天记录,可限定会话和时间范围 |
| get_recent_messagesB | 获取指定会话的最近 N 条聊天记录 |
| list_contactsC | 查询微信联系人信息 |
| check_new_messagesC | 检查最近有新消息的会话,或检查指定会话是否有新消息 |
| read_merged_forwardB | 读取一条微信合并转发聊天记录。使用 session_id + local_id;返回当前数据库可检索到的嵌套文本,并明确是否为完整原始记录。 |
| read_wechat_postA | 读取微信聊天中的帖子、文章、链接卡片或长文本。优先返回数据库中的可检索正文;外部网页不会自动联网抓取。 |
| list_wechat_attachmentsC | 列出微信已在本机下载的文件和附件;仅扫描本地白名单目录,不触发微信下载。 |
| extract_wechat_attachment_textB | 提取已下载微信文件正文或媒体证据。支持常见文档、表格、演示、电子书、文本、ZIP文本项、图片OCR,以及音视频本地ASR、关键帧OCR和时间戳证据。 |
| search_wechat_attachment_textA | 在微信已下载的本地文件正文中搜索关键词;只读扫描,不修改微信文件或数据库。 |
| analyze_wechat_chatA | 分页读取最多5000条指定会话消息,执行多标签分类、风险/资产提取和证据索引;可将原始JSON、分析JSON和Markdown写入本地工作区。 |
| export_wechat_packageB | 在本机导出会话证据 ZIP。附件只提取 attachment_paths 明确选定的文件;auto_link_attachments 仅列候选。包含私人正文,外发前必须检查。 |
| wechat_reader_capabilitiesB | 返回当前微信读取扩展的能力、解析器可用性和安全边界。 |
| yan_diagnoseA | 检查眼的配置、WxLens连接与可选解析器;即使没有打开微信也可运行。 |
| get_messages_by_senderA | 在一个会话的有界消息窗口中按发送者ID精确筛选;返回扫描数、游标和覆盖边界。不会把昵称相似当同一人。 |
| get_message_contextB | 按会话和localId读取消息前后语境;找不到时明确报告未覆盖,不猜测上下文。 |
| list_session_sendersA | 列出一个会话已扫描消息中的发言人及计数,供按人精确筛选;不是完整群成员名单。 |
| scan_sessionsA | 批量读取指定会话并按时间、关键词any/all、发送者ID筛选,适合多群议题、信息和资源汇总。逐群返回失败、覆盖范围和续读offset;不扫描未指定的群。 |
| extract_person_messagesB | 按准确发送者ID提取某人或指定几人在多个会话中的发言,可补前后语境。先通过联系人或发言人列表确认身份,不以昵称模糊匹配代替。 |
| prepare_chat_summaryB | 为聊天日报、周报、人物发言、项目进展、决策待办、争议风险、资源或自定义总结准备可引用证据包。提供按人/日统计和逐群规则候选;由调用AI完成有依据的自然语言总结。 |
| configure_watchlistA | 在本机保存多群关注列表。指定会话、关键词和人物;replace=true修改现有列表并重建基线,paused=true暂停。仅配置,不自动运行或发通知。 |
| list_watchlistsA | 列出眼本机保存的关注列表、暂停状态和待确认批次;不读取聊天。 |
| poll_watchlistA | 检查指定关注列表各群的新消息;首次默认建基线。待确认批次会重复返回,读完整后需ack。积压/上游故障不推进检查点。调用一次检查一轮,不在后台常驻。 |
| read_watchlist_batchC | 继续读取多群关注批次,按nextOffset连续翻页;不重新扫描微信。 |
| ack_watchlist_batchA | 读取所有分页并完成所需整理后,显式确认关注批次,提交成功群的检查点。若输出尚未保存或处理,请勿提前确认。 |
| yan_usage_guideA | 返回眼的工具选择、人物提取、多群监控、总结流程与来源引用指南,供不支持MCP resources/prompts的AI客户端使用。 |
| search_wechat_articlesB | 通过搜狗公开微信索引发现文章候选,可按账号名称与搜索索引时间过滤;不保证完整历史。返回搜索跳转链接,由正常浏览器打开并核对文章。 |
| search_wechat_articles_batchB | 高强度多轮发现公众号文章:对多个查询词和分页结果去重,保留每个候选的来源次数、运行记录和失败边界;结果仍需原文核验,不保证完整历史。 |
| search_wechat_articles_tencentA | 可选腾讯云WSA官方搜索:限定微信公众号域名和最近N天,返回候选URL及配图。需本人预先启用与安全配置凭据,可能按腾讯云服务收费;不保证公众号全量历史,不会从免费搜索自动切换。 |
| fetch_wechat_articleA | 联网读取公众号文章正文、配图清单与发布时间,并保存到本机文章库。遇验证/登录停止;不能用聊天卡片代替全文。 |
| import_wechat_articleA | 导入本人或AI浏览器已正常打开的文章HTML(标题、账号、时间、#js_content);不执行脚本、不索取Cookie。标记为调用方快照。可在HTTP要求验证后使用。 |
| get_saved_articleB | 读取本机文章库中的一篇正文和配图清单。 |
| read_article_imageB | 读取已存档公众号文章的一张配图,返回原生MCP image块供支持视觉的模型理解;客户端是否展示取决于客户端。每次一张,最多4MiB。 |
| download_article_imagesA | 下载已存档公众号文章配图到本机output/articles独占目录;返回逐图结果、SHA256和缺失范围,默认前12张。 |
| read_wechat_imageA | 读取明确选定的本机微信标准图片,返回原生MCP image;只能使用本地附件白名单路径。加密DAT不解密,路径不证明会话归属。 |
| list_shared_articlesA | 在指定会话有界分页扫描公众号文章链接,按URL去重并保留每条聊天引用;筛选时间是分享时间,不能当成文章发布时间。 |
| query_article_historyA | 按公众号biz(优先)或名称、文章发布时间筛选本机已获取文章。仅为已收集历史,不是完整公众号历史爬取;未知时间单列。 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| chat-digest | 生成有来源的群聊日报或周报 |
| person-extract | 提取指定人物在多个会话的发言 |
| group-watch | 检查多群关注列表并整理新信息 |
| topic-trace | 追踪跨群同一议题的发展 |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| yan-guide | 眼的MCP工作流与覆盖边界 |
TDQS
Scored across 37 tools
Most tools have clearly distinct purposes, with detailed descriptions that prevent confusion. A few pairs like check_new_messages vs poll_watchlist and multiple search_wechat_articles variants could be mistaken, but their scope and parameters are explicitly differentiated.
The overwhelming majority follow a verb_noun snake_case pattern (list_, get_, search_, read_, extract_, etc.), making it predictable. A handful of noun-first names (wechat_reader_capabilities, yan_usage_guide) and mixed verbs (ack_, poll_) are minor deviations that do not significantly hinder readability.
With 37 tools, this server is heavily over-scoped. While the domain (WeChat reading, attachment processing, watchlists, article archiving) is broad, the count exceeds what an agent can efficiently navigate, risking decision paralysis and increased selection error.
The tool surface comprehensively covers the core lifecycle: reading, searching, extracting, analyzing, exporting, and monitoring WeChat data, plus article discovery and archiving. Minor gaps include no explicit delete/update for watchlists (though replace exists) and no batch deletion for saved articles, but these are not critical for the primary workflows.