krx-cli 1.5.0 → 1.6.0
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/README.md +21 -17
- package/SKILL.md +9 -1
- package/dist/cli.js +56085 -13917
- package/dist/cli.js.map +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -291,16 +291,19 @@ mkdir -p ~/.claude/skills && cp SKILL.md ~/.claude/skills/krx-cli.md
|
|
|
291
291
|
mkdir -p ~/.cursor/skills && cp SKILL.md ~/.cursor/skills/krx-cli.md
|
|
292
292
|
```
|
|
293
293
|
|
|
294
|
-
## MCP 서버
|
|
294
|
+
## MCP 서버
|
|
295
295
|
|
|
296
|
-
CLI 외에 MCP(Model Context Protocol) 서버도 제공합니다.
|
|
296
|
+
CLI 외에 MCP(Model Context Protocol) 서버도 제공합니다. 두 가지 전송 방식을 지원합니다:
|
|
297
297
|
|
|
298
|
-
|
|
298
|
+
| 전송 방식 | 바이너리 | 지원 클라이언트 |
|
|
299
|
+
| --------------- | ----------- | --------------- |
|
|
300
|
+
| stdio | `krx-mcp` | Claude Desktop |
|
|
301
|
+
| Streamable HTTP | `krx serve` | ChatGPT 웹 |
|
|
299
302
|
|
|
300
303
|
API 키는 `krx auth set <key>`로 등록한 것이 자동으로 사용됩니다.
|
|
301
304
|
`krx-mcp`는 `npm install -g krx-cli`로 설치하면 함께 설치됩니다.
|
|
302
305
|
|
|
303
|
-
### Claude Desktop
|
|
306
|
+
### Claude Desktop (stdio)
|
|
304
307
|
|
|
305
308
|
설정 파일 위치:
|
|
306
309
|
|
|
@@ -317,24 +320,25 @@ API 키는 `krx auth set <key>`로 등록한 것이 자동으로 사용됩니다
|
|
|
317
320
|
}
|
|
318
321
|
```
|
|
319
322
|
|
|
320
|
-
|
|
323
|
+
설정 후 앱을 재시작하면 MCP 도구가 활성화됩니다.
|
|
321
324
|
|
|
322
|
-
|
|
325
|
+
### ChatGPT 웹 (Streamable HTTP)
|
|
323
326
|
|
|
324
|
-
|
|
325
|
-
- **Windows**: `%LOCALAPPDATA%\OpenAI\ChatGPT\mcp.json`
|
|
327
|
+
ChatGPT 웹은 원격 MCP 서버만 지원하므로, HTTP 서버를 실행한 뒤 ngrok으로 외부에 노출해야 합니다.
|
|
326
328
|
|
|
327
|
-
```
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
}
|
|
334
|
-
}
|
|
329
|
+
```bash
|
|
330
|
+
# 터미널 1: MCP 서버 실행
|
|
331
|
+
krx serve --port 3000 --host 0.0.0.0
|
|
332
|
+
|
|
333
|
+
# 터미널 2: ngrok으로 외부 노출
|
|
334
|
+
ngrok http 3000
|
|
335
335
|
```
|
|
336
336
|
|
|
337
|
-
|
|
337
|
+
1. ngrok 출력에서 `https://xxxx.ngrok.io` URL 복사
|
|
338
|
+
2. ChatGPT 웹 → Settings → Developer → MCP Server 추가
|
|
339
|
+
3. URL: `https://xxxx.ngrok.io/mcp`
|
|
340
|
+
|
|
341
|
+
Health check: `http://localhost:3000/health`
|
|
338
342
|
|
|
339
343
|
### 제공 Tool
|
|
340
344
|
|
package/SKILL.md
CHANGED
|
@@ -7,7 +7,7 @@ install: npm install -g krx-cli
|
|
|
7
7
|
binary: krx
|
|
8
8
|
metadata:
|
|
9
9
|
author: kyo504
|
|
10
|
-
version: "1.
|
|
10
|
+
version: "1.6.0"
|
|
11
11
|
invariants:
|
|
12
12
|
- Always use YYYYMMDD format for --date (e.g., 20260310)
|
|
13
13
|
- Data is T-1 (previous trading day), available from 2010 onwards
|
|
@@ -159,6 +159,14 @@ krx version # Show current version and check for updates
|
|
|
159
159
|
krx update # Update to the latest version (npm install -g krx-cli)
|
|
160
160
|
```
|
|
161
161
|
|
|
162
|
+
### MCP HTTP Server
|
|
163
|
+
|
|
164
|
+
```bash
|
|
165
|
+
krx serve # Start on http://127.0.0.1:3000/mcp
|
|
166
|
+
krx serve --port 8080 # Custom port
|
|
167
|
+
krx serve --host 0.0.0.0 # Bind to all interfaces (for ngrok)
|
|
168
|
+
```
|
|
169
|
+
|
|
162
170
|
### Schema (introspection)
|
|
163
171
|
|
|
164
172
|
```bash
|