docs(server): disclose play_audio's file-folder walking behavior in tool description (#78)#83
Open
TumCucTom wants to merge 1 commit into
Open
Conversation
…ool description play_audio relies on process_input_file(), which automatically searches the parent directory for similar filenames when the exact path is not found. This behavior was not mentioned in the tool description, so MCP clients had no way to know up front that the server would look beyond the literal path they provided. Disclose the behavior in the tool description so clients/users can make an informed trust decision. Fixes MiniMax-AI#78. Co-authored-by: Zippy AI <tomkinsbale@icloud.com> Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
play_audiotool description to disclose thatprocess_input_filewalks the parent directory for similar filenames when the exact path is not found.Why
Issue #78: clients and users currently have no way to know that the server may look beyond the literal path they passed. Disclosing the behavior in the tool description lets MCP clients make an informed trust decision.
Changes
minimax_mcp/server.py: extended theplay_audiotooldescription=string with a sentence about the parent-directory filename walking.README.md(and/orREADME-CN.md): one-line disclosure note in any existingplay_audiosection, if present.Testing
pytest tests/still green.Fixes #78.
Generated with Claude Code