investbuddy-mcp-server 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +6 -6
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -108,11 +108,11 @@ const TOOLS = [
|
|
|
108
108
|
* Map MCP tool names to API endpoints and methods
|
|
109
109
|
*/
|
|
110
110
|
const TOOL_ENDPOINTS = {
|
|
111
|
-
'get_stock_prediction': { path: '/mcp/predict', method: 'POST' },
|
|
112
|
-
'get_market_regime': { path: '/mcp/market-regime', method: 'GET' },
|
|
113
|
-
'discover_stocks': { path: '/mcp/discover', method: 'POST' },
|
|
114
|
-
'analyze_portfolio': { path: '/mcp/analyze-portfolio', method: 'POST' },
|
|
115
|
-
'batch_predict': { path: '/mcp/batch-predict', method: 'POST' }
|
|
111
|
+
'get_stock_prediction': { path: '/api/mcp/predict', method: 'POST' },
|
|
112
|
+
'get_market_regime': { path: '/api/mcp/market-regime', method: 'GET' },
|
|
113
|
+
'discover_stocks': { path: '/api/mcp/discover', method: 'POST' },
|
|
114
|
+
'analyze_portfolio': { path: '/api/mcp/analyze-portfolio', method: 'POST' },
|
|
115
|
+
'batch_predict': { path: '/api/mcp/batch-predict', method: 'POST' }
|
|
116
116
|
};
|
|
117
117
|
|
|
118
118
|
/**
|
|
@@ -134,7 +134,7 @@ function callAPI(tool, args) {
|
|
|
134
134
|
method: endpoint.method,
|
|
135
135
|
headers: {
|
|
136
136
|
'Content-Type': 'application/json',
|
|
137
|
-
'
|
|
137
|
+
'Authorization': `Bearer ${API_KEY}`
|
|
138
138
|
}
|
|
139
139
|
};
|
|
140
140
|
|