loading…
Search for a command to run...
loading…
MCP server enabling NPS chatbot interactions, summaries, topic analysis, and example comments via natural language.
MCP server enabling NPS chatbot interactions, summaries, topic analysis, and example comments via natural language.
NPS chatbot'unu MCP (Model Context Protocol) tool olarak sunan server. Claude Desktop, MCP Inspector veya on-prem MCP UI'larına entegre edilebilir.
git clone https://github.com/itu-itis22-kombak22/nps-chatbot-mcp.git
cd nps-chatbot-mcp
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
git clone https://github.com/itu-itis22-kombak22/nps-chatbot-mcp.git
cd nps-chatbot-mcp
python -m venv venv
venv\Scripts\activate
pip install -r requirements.txt
.env dosyası repoda hazır gelir. İş bilgisayarında on-prem LLM ve Oracle kullanmak için güncelle:
# On-prem LLM (GROQ_API_KEY satırını sil, bunları doldur)
OPENAI_API_KEY=your-onprem-api-key
OPENAI_BASE_URL=http://your-llm-host:port/v1
LLM_MODEL=gpt-oss120b
# Oracle DB (USE_DB=true yapınca parquet yerine Oracle'dan okur)
USE_DB=true
ORACLE_HOST=your-oracle-host
ORACLE_PORT=1521
ORACLE_SERVICE=your-service-name
ORACLE_USER=your-username
ORACLE_PASSWORD=your-password
ORACLE_NPS_TABLE=SCHEMA.TABLE_NAME
MCP Inspector, tool'ları tarayıcıdan interaktif olarak test etmeyi sağlar. Node.js kurulu olması yeterli.
Mac:
npx @modelcontextprotocol/inspector python server.py
Windows:
npx @modelcontextprotocol/inspector python server.py
Komut çalıştıktan sonra tarayıcıda http://localhost:5173 açılır.
1. Selamlama testi
nps_chatmessage: Merhaba, ne yapabilirsin?2. Haftalık özet
nps_summaryperiod: haftalık3. Kategori analizi
nps_topiccategory: Mobil Bankacılıkperiod: aylık4. Segment analizi
nps_topicsegment: Detractorperiod: haftalık5. Örnek yorum
nps_examplesegment: Detractoremotion: Kızgın6. Chatbot state machine testi
nps_chat → message: özet (DETAIL'a düşer, dönem sorar)nps_chat → message: haftalık (cevap üretir)7. Session sıfırlama
nps_reset_sessionMac — ~/Library/Application Support/Claude/claude_desktop_config.json
Windows — C:\Users\<kullanıcı>\AppData\Roaming\Claude\claude_desktop_config.json
{
"mcpServers": {
"nps-chatbot": {
"command": "python",
"args": ["/absolute/path/to/nps-chatbot-mcp/server.py"]
}
}
}
| Tool | Parametreler | Açıklama |
|---|---|---|
nps_chat |
message |
Ana chatbot — doğal dil, state machine akışı |
nps_summary |
period (haftalık/aylık/günlük) |
NPS özeti |
nps_topic |
category, segment, emotion, period |
Detay analiz |
nps_example |
segment, category, emotion, comment_type, period |
Örnek yorumlar |
nps_reset_session |
— | Konuşma geçmişini sıfırla |
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"nps-chatbot-mcp-server": {
"command": "npx",
"args": []
}
}
}