stockmatrix-mcp 0.1.2 → 0.1.3
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/dist/fetch-helper.js +5 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/fetch-helper.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
const BASE_URL = process.env.STOCKMATRIX_API_URL || 'https://stockmatrix.co.kr';
|
|
2
|
+
const MCP_USER_AGENT = `stockmatrix-mcp/0.1.3`;
|
|
2
3
|
// 시작 시 URL 유효성 검증
|
|
3
4
|
try {
|
|
4
5
|
new URL(BASE_URL);
|
|
@@ -36,7 +37,10 @@ export const fetchApi = async (path, params) => {
|
|
|
36
37
|
}
|
|
37
38
|
try {
|
|
38
39
|
const response = await fetch(url.toString(), {
|
|
39
|
-
headers: {
|
|
40
|
+
headers: {
|
|
41
|
+
Accept: 'application/json',
|
|
42
|
+
'User-Agent': MCP_USER_AGENT,
|
|
43
|
+
},
|
|
40
44
|
signal: AbortSignal.timeout(FETCH_TIMEOUT_MS),
|
|
41
45
|
});
|
|
42
46
|
if (!response.ok) {
|
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import { registerGetStockTheme } from './tools/get-stock-theme.js';
|
|
|
9
9
|
const createServer = () => {
|
|
10
10
|
const s = new McpServer({
|
|
11
11
|
name: 'stockmatrix-mcp',
|
|
12
|
-
version: '0.1.
|
|
12
|
+
version: '0.1.3',
|
|
13
13
|
});
|
|
14
14
|
registerGetThemeRanking(s);
|
|
15
15
|
registerGetThemeDetail(s);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stockmatrix-mcp",
|
|
3
3
|
"mcpName": "io.github.MongLong0214/stockmatrix-mcp",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.3",
|
|
5
5
|
"description": "StockMatrix MCP Server - Korean stock market theme lifecycle analysis for AI agents",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/index.js",
|