MCP Server Integration
ChatReact implementira Model Context Protocol (MCP), što vam omogućuje povezivanje vašeg ChatReact računa s AI asistentima poput Claude Desktop, Cursor i drugih alata kompatibilnih s MCP-om.
Što je MCP?
Model Context Protocol je otvoreni standard koji omogućuje AI asistentima interakciju s vanjskim servisima i izvorima podataka. S MCP integracijom u ChatReactu možete:
- Upravljati chatbotovima izravno iz vašeg AI asistenta
- Kreirati i ažurirati FAQ-ove koristeći prirodni jezik
- Pregledavati analitiku i povijest razgovora
- Kontrolirati Improvement Agent za optimizaciju chatbota
- Rukovati live chat sesijama bez napuštanja vašeg AI alata
Početak
1. Generirajte API ključ
- Idite na vaš Dashboard → Settings → API Keys
- Kliknite Create API Key
- Dajte svom ključu opisno ime (npr. "Claude Desktop")
- Kopirajte generirani ključ (počinje s
cr_)
Pohranite vaš API ključ sigurno. Ne može se dohvatiti nakon kreiranja.
2. Konfigurirajte vaš MCP klijent
Claude Desktop
Dodajte sljedeće u svoju konfiguracijsku datoteku za Claude Desktop:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\\Claude\\claude_desktop_config.json
{
"mcpServers": {
"chatreact": {
"url": "https://www.chatreact.ai/api/mcp",
"headers": {
"Authorization": "Bearer cr_your_api_key_here"
}
}
}
}
Cursor IDE
Dodajte u Vaše Cursor MCP postavke:
{
"mcpServers": {
"chatreact": {
"url": "https://www.chatreact.ai/api/mcp",
"headers": {
"Authorization": "Bearer cr_your_api_key_here"
}
}
}
}
Lokalni razvoj (stdio)
Za lokalni razvoj možete koristiti naš npm paket:
npm install -g @chatreact/mcp
Konfigurirajte u vašem MCP klijentu:
{
"mcpServers": {
"chatreact": {
"command": "chatreact-mcp",
"args": ["--api-key", "cr_your_api_key_here"]
}
}
}
3. Restart Your AI Assistant
After saving the configuration, restart Claude Desktop or Cursor to establish the connection.
Available Tools
ChatReact MCP provides over 30 tools organized into categories:
Company & Team Management
| Tool | Description |
|---|---|
company_list | Lista svih tvrtki kojima imate pristup |
company_get | Dohvati podatke o određenoj tvrtki |
company_team_list | Popis članova tima tvrtke |
Chatbot Management
| Tool | Description |
|---|---|
chatbot_list | Popis svih chatbota u tvrtki |
chatbot_get | Dohvati detalje i konfiguraciju chatbota |
chatbot_create | Kreirajte novog chatbota |
chatbot_update | Ažurirajte postavke chatbota |
chatbot_get_instructions | Dohvati osnovne upute za chatbota |
chatbot_add_instruction | Dodaj novu osnovnu uputu |
FAQ Management
| Tool | Description |
|---|---|
faq_list | Popis svih FAQ-ova za chatbota |
faq_get | Dohvati detalje FAQ-a |
faq_create | Kreirajte novi FAQ |
faq_update | Ažurirajte postojeći FAQ |
faq_delete | Izbriši FAQ |
faq_categories_list | Popis kategorija FAQ-ova |
faq_suggest | Generiraj AI-predložene FAQ-ove |
Knowledge Base
| Tool | Description |
|---|---|
knowledge_list_documents | Popis učitanih dokumenata |
knowledge_list_websites | Popis indeksiranih web-mjesta |
knowledge_crawl_website | Pokreni crawl web-mjesta |
knowledge_get_crawl_status | Provjeri napredak crawla |
Analytics
| Tool | Description |
|---|---|
analytics_overview | Dohvati ukupne metrike performansi |
analytics_chat_volume | Dohvati volumen razgovora tijekom vremena |
analytics_feedback | Dohvati povratne informacije i ocjene |
analytics_chat_history | Pregledaj chat sesije |
analytics_get_session | Dohvati detaljne podatke sesije |
Improvement Agent
| Tool | Description |
|---|---|
improvement_list_sessions | Popis sesija poboljšanja |
improvement_start_session | Pokreni novu sesiju analize |
improvement_list_proposals | Popis prijedloga za poboljšanje |
improvement_get_proposal | Dohvati detalje prijedloga |
improvement_create_proposal | Kreiraj prilagođeni prijedlog |
improvement_simulate_proposal | Pregledaj učinke prijedloga |
improvement_apply_proposal | Primijeni prijedlog |
improvement_reject_proposal | Odbaci prijedlog |
Live Chat
| Tool | Description |
|---|---|
livechat_get_queue | Dohvati čekajuće chat sesije |
livechat_get_active_sessions | Popis aktivnih sesija ljudskih agenata |
livechat_get_session | Dohvati detalje sesije |
livechat_assign_session | Dodijeli sebe sesiji |
livechat_send_message | Pošalji poruku kao agent |
livechat_close_session | Zatvori chat sesiju |
livechat_check_availability | Provjeri dostupnost agenata |
Example Workflows
Creating a New Chatbot
Ask your AI assistant:
"Create a new chatbot called 'Support Bot' for my company 'acme-corp' with a friendly, professional tone"
The assistant will use chatbot_create with appropriate parameters.
Reviewing Improvement Suggestions
"Show me all pending improvement proposals for my chatbot and explain what changes they suggest"
The assistant will:
- Use
improvement_list_proposalsto fetch proposals - Analyze and summarize each suggestion
- Help you decide which to apply
Analyzing Chat Performance
"Give me a weekly report of chat volume and customer satisfaction for my chatbot"
The assistant will use analytics_overview and analytics_feedback to compile a comprehensive report.
Security
- API keys are scoped to your user account and company access
- All requests are logged in the audit trail
- Keys can be revoked at any time from the dashboard
- Rate limits apply: 60 requests/minute
Troubleshooting
Connection Failed
- Verify your API key is correct
- Check that the key hasn't been revoked
- Ensure you have an active internet connection
- Restart your MCP client
Tool Not Found
Some tools require specific permissions. Ensure you have the appropriate role in the company (Owner, Admin, or Manager).
Rate Limited
If you see rate limit errors, wait a minute before retrying. Consider batching operations when possible.
Need help? Contact our support team →