chat-audit-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| CHAT_ID | Yes | Identifier for the chat (for example "local:chat-01"). | |
| CHAT_NAME | Yes | Display name for the chat (for example "Imported conversation"). | |
| CHAT_PARSER | Yes | Parser to use for the export. Supported values are mock_csv, qq_csv, and qq_json. | |
| CHAT_PLATFORM | Yes | Platform label for the chat source (for example "manual-export"). | |
| CHAT_FILE_NAME | Yes | Name of the chat export file within CHAT_IMPORT_ROOT (for example "messages.csv"). | |
| CHAT_SOURCE_ID | Yes | Opaque identifier for the import source, used for QQ message IDs without content hashing. | |
| CHAT_IMPORT_ROOT | Yes | Directory containing the chat export file (for example "./imports"). Put the export at imports/messages.csv, then set CHAT_IMPORT_ROOT before running chat-audit-mcp. | |
| SOURCE_COVERAGE_END | No | End of the known source coverage interval. Set together with SOURCE_COVERAGE_START if the export provides a known interval; invalid configured intervals fail at startup. | |
| CHAT_SOURCE_TIMEZONE | Yes | IANA timezone used for naive time strings in the export (for example "Asia/Shanghai"). | |
| SOURCE_COVERAGE_START | No | Start of the known source coverage interval. Set together with SOURCE_COVERAGE_END if the export provides a known interval; invalid configured intervals fail at startup. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Read-only parser for user-exported local chat files. No network calls, decryption, .bak handling, or client memory access.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_allowed_chatsC | List the user-selected local import and its conversation. |
| get_messages_by_rangeC | Read the local export and filter the half-open interval [start, end). |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| summarize_chat_range | Summarize one chat interval using evidence-backed facts and inferences. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 2 tools
The two tools target different actions: listing allowed chats/imports vs retrieving messages in a range. There is minor ambiguity because list_allowed_chats mentions 'its conversation,' which could be confused with message retrieval, but the core distinction remains clear.
Both names use consistent snake_case and follow a clear verb_noun pattern: list_allowed_chats and get_messages_by_range. The verbs and resource nouns are predictable and readable.
Only two tools are provided, which is thin for a chat-audit server that likely needs browsing, filtering, and inspection operations. The scope is narrow enough that it is not absurd, but the surface feels underpowered.
The tools cover basic listing and range-based message retrieval, but there are notable gaps such as searching message content, fetching chat metadata, or handling pagination. Agents can perform minimal auditing but may encounter dead ends for common audit workflows.