npx claudepluginhub sinch/sinch-plugins --plugin sinch-claude-pluginconfig/Guide the user through setting up Sinch Conversation API credentials.
This plugin uses the Sinch Conversation API MCP server (defined in .mcp.json) to send messages via SMS and RCS channels. To use these commands, you need to add your Sinch credentials as environment variables in Claude Code's settings.
For more details about the underlying MCP server and tools, see Sinch MCP Server
You need to obtain and configure the following 5 variables:
CONVERSATION_PROJECT_ID - Your Sinch project IDCONVERSATION_KEY_ID - Your API key IDCONVERSATION_KEY_SECRET - Your API key secretCONVERSATION_REGION - Your Sinch region (e.g., us, eu, br)CONVERSATION_APP_ID - Your Conversation app IDVisit the Sinch Conversation API documentation for instructions to:
Ask: "How would you like to configure your Sinch credentials?"
Offer these options:
Generate this bash script from the template @./init_mcp_cred.sh that bundled with this command. Save the generated script to the current terminal location. If not possible, save it to user home directory. Don't need to display the whole script content unless user requests it so it don't clutter the output.
If saving is not possible, ask the user to choose A: "Display the script for manual copy-paste" or B: "Switch to manual instructions". If they choose A, display the script content in a code block. Then tell the user:
nano ~/sinch-setup.sh
Paste the script, then save (Ctrl+O, Enter, Ctrl+X)
chmod +x ~/sinch-setup.sh
bash ~/sinch-setup.sh
Restart Claude Code to load the new environment variables
Run /sinch-claude-plugin:api:messages:send to verify the connection
If they choose B, proceed to manual instructions below.
Tell the user:
~/.claude/settings.json: mkdir -p ~/.claude
[[ -f ~/.claude/settings.json ]] || echo '{}' > ~/.claude/settings.json
nano ~/.claude/settings.json
env block with your credentials:{
"env": {
"CONVERSATION_PROJECT_ID": "your-project-id",
"CONVERSATION_KEY_ID": "your-api-key",
"CONVERSATION_KEY_SECRET": "your-api-secret",
"CONVERSATION_REGION": "your-app-region (e.g., us, eu, br)",
"CONVERSATION_APP_ID": "your-app-id"
}
}
If your file already has other content in the env block, add the 5 CONVERSATION_* keys without removing existing values.
Save the file.
Restart Claude Code.
Run /sinch-claude-plugin:api:messages:send to verify the connection.
~/.claude/settings.json to version control