feat: expose avatar parameter in send_message tool - #1
Open
Zernio-Elean wants to merge 1 commit into
Open
Conversation
The Crisp REST API and the internal crisp-client already support sending messages with a custom avatar URL via user.avatar, but the send_message MCP tool did not expose this field. This adds avatar as an optional parameter so operators can send messages that display their real profile photo in Crisp. Combined with get_operators (which returns avatar URLs), messages sent via the MCP server now appear with the operator's actual identity.
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
Expose
avataras an optional parameter in thesend_messageMCP tool so messages can be sent with the operator's real profile photo.The Crisp REST API and the internal
crisp-client.tsalready supportuser.avatarinSendMessageOptions, but the tool schema didn't expose it. This wires it up.Changes
src/index.ts(+9, -1):avataras optional string property insend_messageinputSchemaavatarfrom args and passes it in theuserobject tocrispClient.sendMessage()No changes needed in
crisp-client.tssinceSendMessageOptionsalready supportsuser.avatar.Usage
Test plan
npm run build)