How vivekmane57/greatcards-bot works
Great.cards is a credit-card advice chatbot with Streamlit and CLI interfaces. A user describes their spending or asks about cards; the bot builds a provider-specific LLM conversation, dispatches requested Great.cards MCP tools, and returns an answer with tool-call traces and warnings. Guardrails validate amounts and flag risky claims, while postchecks add caveats derived from tool data. The README documents additional tool capabilities not individually visible in the sampled bot excerpt; those are shown as external MCP operations. The MCP implementation itself is outside this repository.
Main entry points: bot.py Turn orchestrator · app.py Streamlit chat · cli.py Command-line chat · prompts.py System prompts
Components 16
User interfaces
- Streamlit chat
app.py - Command-line chat
cli.py
Assistant runtime
- Turn orchestrator
bot.py - System prompts
prompts.py
Answer safeguards
- Code guardrails
guardrails.py - Tool-data notes
postchecks.py
Other components
- Card seeker
- LLM provider
- Great.cards MCP
- Spend recommendations
- Card details
- Card comparison
- Eligibility check
- Card-name resolver
- Card listing
- Advisor context
Connections 19
- Card seeker → Streamlit chat: enters request
app.py - Card seeker → Command-line chat: enters request
cli.py - Streamlit chat → Turn orchestrator: submits turn
app.py - Command-line chat → Turn orchestrator: submits turn
cli.py - Turn orchestrator → System prompts: selects prompt
bot.py - Turn orchestrator → LLM provider: sends conversation
bot.py - LLM provider → Turn orchestrator: returns response
bot.py - Turn orchestrator → Great.cards MCP: calls tools
bot.py - Great.cards MCP → Spend recommendations: provides operation
README.md - Great.cards MCP → Card details: provides operation
README.md - Great.cards MCP → Card comparison: provides operation
README.md - Great.cards MCP → Eligibility check: provides operation
README.md - Great.cards MCP → Card-name resolver: provides operation
README.md - Great.cards MCP → Card listing: provides operation
README.md - Great.cards MCP → Advisor context: provides operation
- Turn orchestrator → Code guardrails: validates answer
README.md - Turn orchestrator → Tool-data notes: adds caveats
README.md - Turn orchestrator → Streamlit chat: returns reply and trace
app.py - Turn orchestrator → Command-line chat: returns reply and warnings
cli.py