@pipeworx/mcp-kr-equities 0.0.0-stage → 0.1.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Mojibake Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,129 @@
1
- # Temporary Holding Version
1
+ # @pipeworx/kr-equities
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Korean listed equities: stock-code to issuer and exchange (KOSPI/KOSDAQ) identity, current quotes, daily history, valuation fundamentals, investor-type flows, market indices and market-cap rankings.
4
+
5
+ Part of [Pipeworx](https://pipeworx.io) — an MCP gateway connecting AI agents to 1866+ live data sources. This is an independent, unofficial integration — not affiliated with, endorsed by, or published by the upstream provider.
6
+
7
+ ## Tools
8
+
9
+ - `kr_search_stocks(query, limit?)` — resolve a Korean name, English name or 6-character code to the listed issuer, code and market.
10
+ - `kr_quote(code)` — price, change, range, volume, market cap, 52-week range, PER/PBR/EPS/dividend yield, foreign ownership, market status.
11
+ - `kr_price_history(code, days?)` — daily OHLCV newest first with window performance.
12
+ - `kr_investor_flows(code)` — daily net buying by foreign, institutional and individual investors.
13
+ - `kr_index(index, days?)` — KOSPI, KOSDAQ or KOSPI200 level and history.
14
+ - `kr_top_by_market_cap(market, limit?, page?)` — largest listed companies by market capitalisation.
15
+
16
+ ## Auth
17
+
18
+ Keyless.
19
+
20
+ ## Data sources
21
+
22
+ - Korea Exchange, KOSPI and KOSDAQ market data (quotes, index levels, listing identity).
23
+ - English-name lookups fall back to Yahoo Finance's listing search, used only to resolve a name to a Korean code.
24
+
25
+ Codes are 6 characters (digits, or digits plus letters for newer listings). Prices are in KRW and reflect the exchange timestamp in `as_of` (KST); `market_status` says whether the session is open. Names are returned in Korean.
26
+
27
+ ## Quick Start
28
+
29
+ Add to your MCP client (Claude Desktop, Cursor, Windsurf, etc.):
30
+
31
+ ```json
32
+ {
33
+ "mcpServers": {
34
+ "kr-equities": {
35
+ "url": "https://gateway.pipeworx.io/kr-equities/mcp"
36
+ }
37
+ }
38
+ }
39
+ ```
40
+
41
+ ### What this endpoint actually serves
42
+
43
+ `tools/list` at `https://gateway.pipeworx.io/kr-equities/mcp` returns the tools in the table
44
+ above **plus the shared Pipeworx meta-tools** — `ask_pipeworx`,
45
+ `discover_tools`, `search_within`, `remember`/`recall` and the rest of the
46
+ gateway-wide set. So the tool count you see is larger than this table: a
47
+ single-pack endpoint currently lists roughly 30 shared tools alongside the
48
+ pack's own. The connection's `initialize` response states its exact scope, and
49
+ is the authoritative answer for a given day.
50
+
51
+ This is deliberate, not multiplexing by accident. The meta-tools are what let a
52
+ scoped connection answer a question this pack does not cover — via
53
+ `ask_pipeworx`, which routes across the whole catalog — without you adding a
54
+ second MCP server. There is currently no way to mount a pack endpoint without
55
+ them; if the extra schemas cost you more context than the routing is worth,
56
+ connect to the full gateway once rather than to several pack endpoints.
57
+
58
+ Or connect to the full Pipeworx gateway to get every pack's tools listed
59
+ directly, instead of just this one's:
60
+
61
+ ```json
62
+ {
63
+ "mcpServers": {
64
+ "pipeworx": {
65
+ "url": "https://gateway.pipeworx.io/mcp"
66
+ }
67
+ }
68
+ }
69
+ ```
70
+
71
+ Both URLs reach the same gateway and the same 1866+ data sources. The
72
+ only difference is which pack's tools are listed **directly**; `ask_pipeworx`
73
+ reaches all of them from either one.
74
+
75
+ ## No MCP client? Call it over HTTP
76
+
77
+ ```bash
78
+ curl -X POST https://gateway.pipeworx.io/v1/tools/kr_search_stocks \
79
+ -H 'Content-Type: application/json' \
80
+ -d '{"query":"SK hynix"}'
81
+ ```
82
+
83
+ No account needed for the first calls. Inspect any tool: `GET https://gateway.pipeworx.io/v1/tools/kr_search_stocks`. Find one: `POST https://gateway.pipeworx.io/v1/tools/search_packs` with `{"query":"..."}`.
84
+
85
+ ## Standalone (no gateway account)
86
+
87
+ This package also runs as a local stdio MCP server — no Pipeworx account, no
88
+ gateway round-trip:
89
+
90
+ ```json
91
+ {
92
+ "mcpServers": {
93
+ "kr-equities": {
94
+ "command": "npx",
95
+ "args": ["-y", "@pipeworx/mcp-kr-equities"]
96
+ }
97
+ }
98
+ }
99
+ ```
100
+
101
+ Or run it directly to confirm it starts:
102
+
103
+ ```bash
104
+ npx -y @pipeworx/mcp-kr-equities
105
+ ```
106
+
107
+ It speaks MCP over stdin/stdout and answers `initialize`/`tools/list`/`tools/call`
108
+ for **only** this pack's tools — none of the shared meta-tools the gateway
109
+ connection above adds. Same source, same tools, no ask_pipeworx routing.
110
+
111
+ ## Using with ask_pipeworx
112
+
113
+ Instead of calling tools directly, you can ask questions in plain English —
114
+ this works on the pack endpoint above as well as on the full gateway:
115
+
116
+ ```
117
+ ask_pipeworx({ question: "your question about Kr Equities data" })
118
+ ```
119
+
120
+ The gateway picks the right tool and fills the arguments automatically.
121
+
122
+ ## More
123
+
124
+ - [Docs and guides](https://pipeworx.io/docs)
125
+ - [pipeworx.io](https://pipeworx.io)
126
+
127
+ ## License
128
+
129
+ MIT
package/bin/cli.js ADDED
@@ -0,0 +1,17 @@
1
+ #!/usr/bin/env node
2
+ //
3
+ // Entry point for `npx @pipeworx/mcp-<slug>`.
4
+ //
5
+ // Packs ship as raw TypeScript (no build step — see publish-pack.sh for why:
6
+ // tsx sidesteps every extensionless-import / bare-JSON-import edge case a
7
+ // per-pack tsc build would have to solve one pack at a time). This file
8
+ // registers tsx's ESM loader programmatically, then hands off to src/server.ts,
9
+ // which wraps the pack's {tools, callTool} export in a stdio MCP server.
10
+ //
11
+ // Copied verbatim into every published pack repo by scripts/publish-pack.sh —
12
+ // edit this file, not a per-pack copy.
13
+ import { register } from 'tsx/esm/api';
14
+
15
+ register();
16
+
17
+ await import('../src/server.ts');
package/package.json CHANGED
@@ -1,6 +1,32 @@
1
1
  {
2
2
  "name": "@pipeworx/mcp-kr-equities",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.0",
4
+ "description": "Korean equities MCP. Keyless, live per request.",
5
+ "type": "module",
6
+ "main": "src/index.ts",
7
+ "types": "src/index.ts",
8
+ "bin": {
9
+ "mcp-kr-equities": "bin/cli.js"
10
+ },
11
+ "keywords": ["mcp", "mcp-server", "model-context-protocol", "pipeworx", "kr-equities"],
12
+ "license": "MIT",
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "git+https://github.com/pipeworx-io/mcp-kr-equities.git"
16
+ },
17
+ "scripts": {
18
+ "typecheck": "tsc --noEmit"
19
+ },
20
+ "dependencies": {
21
+ "@modelcontextprotocol/sdk": "^1.30.0",
22
+ "tsx": "^4.19.0"
23
+ },
24
+ "devDependencies": {
25
+ "typescript": "^5.9.3",
26
+ "@cloudflare/workers-types": "^4.20260405.1"
27
+ },
28
+ "pipeworx": {
29
+ "sourceHash": "v1-0558c03209513ff412ba7f77fe49425364093229174f0ecfedea8aa820c8e518",
30
+ "sourceCommit": "712a5e0171ea24483214329d0cd7efdfd9b80352"
31
+ }
32
+ }
package/server.json ADDED
@@ -0,0 +1,18 @@
1
+ {
2
+ "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
3
+ "name": "io.github.pipeworx-io/kr-equities",
4
+ "title": "Kr Equities",
5
+ "description": "Korean equities MCP. Keyless, live per request.",
6
+ "version": "0.1.0",
7
+ "websiteUrl": "https://pipeworx.io/packs/kr-equities",
8
+ "repository": {
9
+ "url": "https://github.com/pipeworx-io/mcp-kr-equities",
10
+ "source": "github"
11
+ },
12
+ "remotes": [
13
+ {
14
+ "type": "streamable-http",
15
+ "url": "https://gateway.pipeworx.io/kr-equities/mcp"
16
+ }
17
+ ]
18
+ }