[BUG] fakechat MCP server silently drops all but the first file when multiple attachments are passed to reply tool
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
In external_plugins/fakechat/server.ts, the reply tool's input schema declares files as an array of strings, but the handler only ever processes files[0]. Any files at index 1 and beyond are silently ignored — no error, no warning.
The tool description says "Pass reply_to for quote-reply, files for attachments" implying multiple files are supported, but the implementation contradicts this.
What Should Happen?
All file paths passed in the files array should be processed and delivered. If only one file is supported, the schema should use maxItems: 1 and the description should say so explicitly.
Error Messages/Logs
No error is thrown. Files beyond index 0 are silently dropped.
Steps to Reproduce
- Start the fakechat MCP server
- Call the
replytool with multiple files:
{ "text": "here are two files", "files": ["/path/a.txt", "/path/b.txt"] }
- Observe the fakechat UI — only the first file appears
- No error is returned; the tool reports success
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
Claude Sonnet 4.6
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Windows Terminal
Additional Information
Affected file: external_plugins/fakechat/server.ts
The fix is to loop over all entries in files[] instead of only checking files[0].
The Discord and Telegram server.ts counterparts handle this correctly via a for-loop.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗