Skip to main content
Glama

PitchLense MCP

QUICK_START.mdβ€’3.44 kB
# Knowledge Graph Feature - Quick Start Guide ## βœ… Implementation Status: COMPLETE The knowledge graph feature is **fully implemented** and integrated into your Pitchlense MCP system! ## 🚨 ONE ISSUE TO FIX **Your Gemini API key is invalid.** This is the only thing preventing full functionality. ### Fix in 2 Minutes: 1. **Get new API key:** https://aistudio.google.com/app/apikey 2. **Update line 9 in `test_cloud_function.py`:** ```python os.environ["GEMINI_API_KEY"] = "YOUR_NEW_KEY_HERE" ``` 3. **Run:** `python test_cloud_function.py` ## βœ… What's Already Working The test showed these features ARE working: ``` [KG] Building knowledge graph for: CyberSwarm βœ… [KG] Identifying dependencies... βœ… [KG] Identifying dependents... βœ… [CloudFn] Knowledge graph generated successfully βœ… ``` ## πŸ“Š What You'll Get (After API Key Fix) ### Left Side (Dependencies): - NVIDIA (GPU provider) with stock data & news - AWS (Cloud) with market info - Security data feeds - ML frameworks ### Center (Root): - Your company (CyberSwarm) ### Right Side (Dependents): - Financial institutions - Healthcare providers - Enterprise customers ### Each Node Includes: - βœ… Latest news URLs - βœ… Stock prices (NVDA: $450.25) - βœ… Trade data for India, US, China - βœ… Relationship description ## πŸ“ Files Created ### Production Code: - `pitchlense_mcp/tools/knowledge_graph.py` (370 lines) - `gcp_cloud_function.py` (updated with integration) - `pitchlense_mcp/__init__.py` (exports added) ### Documentation: - `docs/KNOWLEDGE_GRAPH.md` (complete guide + D3.js code) - `KNOWLEDGE_GRAPH_IMPLEMENTATION.md` (detailed summary) ### Testing: - `test_cloud_function.py` (integration test) ## 🎯 Usage ### Option 1: Cloud Function (Automatic) Just POST to your cloud function - knowledge graph is included automatically: ```python POST /your-cloud-function-url { "startup_text": "CyberSwarm is a cybersecurity AI...", "use_mock": false } # Response includes: { "knowledge_graph": { "root": {...}, "nodes": [...], "edges": [...] } } ``` ### Option 2: Standalone ```python from pitchlense_mcp import KnowledgeGraphMCPTool, GeminiLLM kg_tool = KnowledgeGraphMCPTool() kg_tool.set_llm_client(GeminiLLM()) graph = kg_tool.generate_knowledge_graph( startup_text="Your company description...", company_name="YourCompany" ) ``` ## 🎨 Visualization Complete D3.js code is in `docs/KNOWLEDGE_GRAPH.md`: - Force-directed graph - Interactive hover tooltips - Drag & drop nodes - News links - Stock data - Trade information ## πŸ“‹ Next Steps ### Immediate: 1. βœ… Fix Gemini API key (see above) 2. βœ… Run `python test_cloud_function.py` 3. βœ… Check `test_output_text.json` for results ### Soon: 1. Implement frontend visualization (D3.js code provided) 2. Add to your main application 3. Enable real-time updates ## πŸ“– More Info - **Fix API Key:** `README_FIX_API_KEY.md` - **Status Report:** `KNOWLEDGE_GRAPH_STATUS.md` - **Full Docs:** `docs/KNOWLEDGE_GRAPH.md` - **Implementation:** `KNOWLEDGE_GRAPH_IMPLEMENTATION.md` - **Examples:** See `docs/KNOWLEDGE_GRAPH.md` for usage examples ## πŸŽ‰ Summary βœ… Feature implemented βœ… Cloud function integrated βœ… Documentation complete βœ… Tests written ❌ API key needs updating ← **ONLY ISSUE** **Action:** Update Gemini API key and you're done! πŸš€

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/connectaman/Pitchlense-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server