@cyanheads/finnhub-mcp-server 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/AGENTS.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Developer Protocol
2
2
 
3
3
  **Server:** finnhub-mcp-server
4
- **Version:** 0.1.2
4
+ **Version:** 0.1.3
5
5
  **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.12.3`
6
6
  **Engines:** Bun ≥1.3.0, Node ≥24.0.0
7
7
  **MCP SDK:** `@modelcontextprotocol/server` 2.0.0
package/CLAUDE.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Developer Protocol
2
2
 
3
3
  **Server:** finnhub-mcp-server
4
- **Version:** 0.1.2
4
+ **Version:** 0.1.3
5
5
  **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.12.3`
6
6
  **Engines:** Bun ≥1.3.0, Node ≥24.0.0
7
7
  **MCP SDK:** `@modelcontextprotocol/server` 2.0.0
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  <div align="center">
9
9
 
10
- [![Version](https://img.shields.io/badge/Version-0.1.2-blue.svg?style=flat-square)](./CHANGELOG.md) [![License](https://img.shields.io/badge/License-Apache%202.0-orange.svg?style=flat-square)](./LICENSE) [![Docker](https://img.shields.io/badge/Docker-ghcr.io-2496ED?style=flat-square&logo=docker&logoColor=white)](https://github.com/users/cyanheads/packages/container/package/finnhub-mcp-server) [![MCP SDK](https://img.shields.io/badge/MCP%20SDK-2.0.0-green.svg?style=flat-square)](https://modelcontextprotocol.io/) [![npm](https://img.shields.io/npm/v/@cyanheads/finnhub-mcp-server?style=flat-square&logo=npm&logoColor=white)](https://www.npmjs.com/package/@cyanheads/finnhub-mcp-server) [![TypeScript](https://img.shields.io/badge/TypeScript-^7.0.2-3178C6.svg?style=flat-square)](https://www.typescriptlang.org/) [![Bun](https://img.shields.io/badge/Bun-v1.3.0-blueviolet.svg?style=flat-square)](https://bun.sh/)
10
+ [![Version](https://img.shields.io/badge/Version-0.1.3-blue.svg?style=flat-square)](./CHANGELOG.md) [![License](https://img.shields.io/badge/License-Apache%202.0-orange.svg?style=flat-square)](./LICENSE) [![Docker](https://img.shields.io/badge/Docker-ghcr.io-2496ED?style=flat-square&logo=docker&logoColor=white)](https://github.com/users/cyanheads/packages/container/package/finnhub-mcp-server) [![MCP SDK](https://img.shields.io/badge/MCP%20SDK-2.0.0-green.svg?style=flat-square)](https://modelcontextprotocol.io/) [![npm](https://img.shields.io/npm/v/@cyanheads/finnhub-mcp-server?style=flat-square&logo=npm&logoColor=white)](https://www.npmjs.com/package/@cyanheads/finnhub-mcp-server) [![TypeScript](https://img.shields.io/badge/TypeScript-^7.0.2-3178C6.svg?style=flat-square)](https://www.typescriptlang.org/) [![Bun](https://img.shields.io/badge/Bun-v1.3.0-blueviolet.svg?style=flat-square)](https://bun.sh/)
11
11
 
12
12
  </div>
13
13
 
@@ -27,7 +27,7 @@ Six tools, name-first: `finnhub_search_symbols` resolves a company name to a US
27
27
 
28
28
  | Tool | Description |
29
29
  |:---|:---|
30
- | `finnhub_search_symbols` | Resolve a company name or partial ticker to US stock symbols, best US match first. The entry point for every other tool. |
30
+ | `finnhub_search_symbols` | Resolve a company name or partial ticker to stock symbols, best likely-US match first. The entry point for every other tool. |
31
31
  | `finnhub_get_quote` | Real-time price quote for one US symbol, paired with live market-status so the response states whether the price is live or the prior close. |
32
32
  | `finnhub_get_company` | Full company context in one call — profile, headline fundamentals (P/E, EPS, margins, growth), and sector peers. |
33
33
  | `finnhub_get_earnings` | Earnings in two modes: a symbol's past quarters with actual-vs-estimate surprises (`history`), or market-wide upcoming releases in a date window (`calendar`). |
@@ -38,8 +38,9 @@ Six tools, name-first: `finnhub_search_symbols` resolves a company name to a US
38
38
 
39
39
  Resolve a company name, partial name, or ticker fragment to Finnhub stock symbols. Run this first when you have a name, not a ticker — the rest of the surface needs a symbol.
40
40
 
41
- - Full-text match across symbols and descriptions; US Common Stock matches surfaced first
42
- - Each result carries `isLikelyUS` (a dot-suffix heuristic — `.SS`, `.T`, `.L` are international) so an agent can avoid spending a call on a symbol the free tier can't reach
41
+ - Full-text match across symbols and descriptions; likely-US Common Stock matches surfaced first
42
+ - `query` accepts 1–20 characters; use a shorter company name or ticker fragment when needed
43
+ - Each result carries `isLikelyUS`, a symbol-format heuristic: plain tickers and `.A`/`.B` class shares are likely US, while exchange suffixes such as `.SS`, `.T`, and `.L` are not. Quote and profile responses remain authoritative
43
44
  - `limit` (1–50, default 10); reports the total match count and discloses truncation when more matched than returned
44
45
 
45
46
  ---
@@ -124,7 +125,7 @@ Agent-friendly output:
124
125
 
125
126
  - Honest sparsity — every fundamental is nullable and absent values stay null; Finnhub's thinly-covered names are surfaced as-is, never zero-filled or fabricated
126
127
  - Two distinct "not available" signals — `symbol_not_found` (unknown US ticker, detected from the all-zero quote / empty profile sentinel) vs. `not_us_or_paid` (international or paid-only, HTTP 403) — so an agent can tell them apart and recover
127
- - Typed error contracts with recovery hints on every failure, plus `isLikelyUS` on search results so an agent avoids burning a call on an unreachable symbol
128
+ - Typed error contracts with recovery hints on every failure, plus the `isLikelyUS` search heuristic so an agent can prioritize likely free-tier symbols
128
129
  - Capped lists report their total count and disclose truncation, so an agent knows when more data exists
129
130
 
130
131
  ## Getting started
@@ -193,7 +194,7 @@ Or with Docker:
193
194
  For Streamable HTTP, set the transport and start the server:
194
195
 
195
196
  ```sh
196
- MCP_TRANSPORT_TYPE=http MCP_HTTP_PORT=3010 FINNHUB_API_KEY=... bun run start:http
197
+ MCP_TRANSPORT_TYPE=http MCP_SESSION_MODE=stateless MCP_HTTP_PORT=3010 FINNHUB_API_KEY=... bun run start:http
197
198
  # Server listens at http://localhost:3010/mcp
198
199
  ```
199
200
 
@@ -240,6 +241,7 @@ All configuration is validated at startup via Zod schemas in `src/config/server-
240
241
  | `MCP_TRANSPORT_TYPE` | Transport: `stdio` or `http`. | `stdio` |
241
242
  | `MCP_HTTP_PORT` | Port for the HTTP server. | `3010` |
242
243
  | `MCP_HTTP_ENDPOINT_PATH` | HTTP endpoint path where the MCP server is mounted. | `/mcp` |
244
+ | `MCP_SESSION_MODE` | Session handling: `auto`, `stateful`, or `stateless`. This project's `.env.example` and Docker image explicitly select `stateless`; an explicit environment value takes precedence. When unset, the framework defaults to `auto`, which currently resolves to `stateful`. | `auto` when unset; project example uses `stateless` |
243
245
  | `MCP_AUTH_MODE` | Auth mode: `none`, `jwt`, or `oauth`. | `none` |
244
246
  | `MCP_LOG_LEVEL` | Log level (RFC 5424: `debug`, `info`, `notice`, `warning`, `error`). | `info` |
245
247
  | `STORAGE_PROVIDER_TYPE` | Storage backend: `in-memory`, `filesystem`, `supabase`, `cloudflare-kv/r2/d1`. | `in-memory` |
@@ -0,0 +1,21 @@
1
+ ---
2
+ summary: "Search now identifies US class-share symbols and rejects overlong queries before calling Finnhub; configuration examples explicitly choose stateless HTTP sessions."
3
+ breaking: false
4
+ security: false
5
+ ---
6
+
7
+ # 0.1.3 — 2026-08-30
8
+
9
+ ## Changed
10
+
11
+ - **`isLikelyUS`** — recognizes `.A` and `.B` US class-share symbols and ranks likely-US Common Stock results first; the documented flag remains a symbol-format heuristic, not an availability guarantee. (#1)
12
+ - **`MCP_SESSION_MODE`** — the environment example, HTTP launch example, and configuration reference explicitly select `stateless`; an unset value still follows the framework's `auto` behavior. (#8)
13
+
14
+ ## Fixed
15
+
16
+ - **`finnhub_search_symbols.query`** — rejects inputs longer than Finnhub's 20-character search limit before making an upstream request. (#3)
17
+
18
+ ## Dependencies
19
+
20
+ - `@biomejs/biome` `2.5.9` → `2.5.11`
21
+ - `@types/node` `26.2.0` → `26.4.0`
@@ -1 +1 @@
1
- {"version":3,"file":"search-symbols.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/search-symbols.tool.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAGjD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;EAqHxB,CAAC"}
1
+ {"version":3,"file":"search-symbols.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/search-symbols.tool.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAMjD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;EA0HxB,CAAC"}
@@ -6,21 +6,26 @@
6
6
  */
7
7
  import { tool, z } from '@cyanheads/mcp-ts-core';
8
8
  import { getFinnhubService } from '../../../services/finnhub/finnhub-service.js';
9
+ /** Finnhub uses `.A` and `.B` for US class-share symbols as well as dots for exchanges. */
10
+ const US_CLASS_SHARE_SYMBOL = /^[A-Z]+\.[AB]$/;
9
11
  export const searchSymbols = tool('finnhub_search_symbols', {
10
- description: 'Resolve a company name or partial ticker to Finnhub stock symbols. The entry point for every other tool — users say "Microsoft", the rest of the surface needs "MSFT". Returns matched symbols with display symbol, description, and security type, best US match first. Each result carries isLikelyUS so an agent can avoid spending a call on an international symbol the free tier cannot reach.',
12
+ description: 'Resolve a company name or partial ticker to Finnhub stock symbols. The entry point for every other tool — users say "Microsoft", the rest of the surface needs "MSFT". Returns matched symbols with display symbol, description, and security type, best likely-US match first. Each result carries isLikelyUS, a symbol-format heuristic for likely free-tier availability; quote and profile responses remain authoritative.',
11
13
  annotations: { readOnlyHint: true, openWorldHint: true },
12
14
  input: z.object({
13
15
  query: z
14
16
  .string()
15
17
  .min(1)
16
- .describe('Company name (e.g., "Apple"), partial name ("micro"), or ticker fragment. Finnhub full-text matches across symbols and descriptions. Use this first when you have a company name, not a ticker — the rest of the tools need a symbol.'),
18
+ .max(20, {
19
+ message: 'Finnhub search queries are limited to 20 characters. Use a shorter company name or ticker fragment.',
20
+ })
21
+ .describe('Company name (e.g., "Apple"), partial name ("micro"), or ticker fragment, up to 20 characters. Finnhub full-text matches across symbols and descriptions. Use this first when you have a company name, not a ticker — the rest of the tools need a symbol.'),
17
22
  limit: z
18
23
  .number()
19
24
  .int()
20
25
  .min(1)
21
26
  .max(50)
22
27
  .default(10)
23
- .describe('Max symbols to return (Finnhub often returns 10–50 matches for a common word). Default 10. US Common Stock matches are surfaced first.'),
28
+ .describe('Max symbols to return (Finnhub often returns 10–50 matches for a common word). Default 10. Likely-US Common Stock matches are surfaced first.'),
24
29
  }),
25
30
  output: z.object({
26
31
  results: z
@@ -38,10 +43,10 @@ export const searchSymbols = tool('finnhub_search_symbols', {
38
43
  .describe('Security type (e.g., "Common Stock", "ETP", "ETF"). Empty string when Finnhub omits it.'),
39
44
  isLikelyUS: z
40
45
  .boolean()
41
- .describe('Heuristic: symbol has no exchange suffix (no dot) — i.e., a plain US ticker reachable on the free tier. Suffixed symbols (".SS", ".T", ".L") are international and 403 on quote/profile.'),
46
+ .describe('Symbol-format heuristic for likely US free-tier availability. Plain tickers and `.A`/`.B` class-share symbols are likely US; recognized exchange suffixes such as `.SS`, `.T`, and `.L` are not. Quote and profile responses remain authoritative.'),
42
47
  })
43
48
  .describe('A single matched symbol.'))
44
- .describe('Matched symbols, US Common Stock first, then by Finnhub order.'),
49
+ .describe('Matched symbols, likely-US Common Stock first, then by Finnhub order.'),
45
50
  }),
46
51
  enrichment: {
47
52
  totalCount: z
@@ -62,12 +67,11 @@ export const searchSymbols = tool('finnhub_search_symbols', {
62
67
  displaySymbol: match.displaySymbol,
63
68
  description: match.description,
64
69
  type: match.type,
65
- isLikelyUS: !match.symbol.includes('.'),
70
+ isLikelyUS: !match.symbol.includes('.') || US_CLASS_SHARE_SYMBOL.test(match.symbol),
66
71
  }));
67
72
  /**
68
- * Stable sort: US Common Stock first, preserving Finnhub's order within
69
- * each group. The dot-suffix → non-US mapping is how Finnhub namespaces
70
- * exchanges (honest signal, not a fabricated score).
73
+ * Stable sort: likely-US Common Stock first, preserving Finnhub's order
74
+ * within each group. ETFs and ETPs deliberately retain Finnhub's rank.
71
75
  */
72
76
  const rank = (r) => r.isLikelyUS && r.type === 'Common Stock' ? 0 : 1;
73
77
  const sorted = [...mapped].sort((a, b) => rank(a) - rank(b));
@@ -91,7 +95,9 @@ export const searchSymbols = tool('finnhub_search_symbols', {
91
95
  return [{ type: 'text', text: 'No matching symbols.' }];
92
96
  }
93
97
  const lines = result.results.map((r) => {
94
- const region = r.isLikelyUS ? 'likely US (free tier)' : 'international';
98
+ const region = r.isLikelyUS
99
+ ? 'likely US (symbol heuristic)'
100
+ : 'not likely US (exchange-suffix heuristic)';
95
101
  const type = r.type || 'Unknown type';
96
102
  return `**${r.symbol}** — ${r.description} (${type}, ${region}) · display: ${r.displaySymbol}`;
97
103
  });
@@ -1 +1 @@
1
- {"version":3,"file":"search-symbols.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/search-symbols.tool.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAE1E,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,CAAC,wBAAwB,EAAE;IAC1D,WAAW,EACT,sYAAsY;IACxY,WAAW,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE;IACxD,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,KAAK,EAAE,CAAC;aACL,MAAM,EAAE;aACR,GAAG,CAAC,CAAC,CAAC;aACN,QAAQ,CACP,uOAAuO,CACxO;QACH,KAAK,EAAE,CAAC;aACL,MAAM,EAAE;aACR,GAAG,EAAE;aACL,GAAG,CAAC,CAAC,CAAC;aACN,GAAG,CAAC,EAAE,CAAC;aACP,OAAO,CAAC,EAAE,CAAC;aACX,QAAQ,CACP,wIAAwI,CACzI;KACJ,CAAC;IACF,MAAM,EAAE,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AC,KAAK;YAClB,KAAK;YACL,QAAQ,EAAE,OAAO,CAAC,MAAM;SACzB,CAAC,CAAC;QAEH,OAAO,EAAE,OAAO,EAAE,CAAC;IACrB,CAAC;IAED,MAAM,EAAE,CAAC,MAAM,EAAE,EAAE;QACjB,IAAI,MAAM,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAChC,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,sBAAsB,EAAE,CAAC,CAAC;QAC1D,CAAC;QACD,MAAM,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;YACrC,MAAM,MAAM,GAAG,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAAC,eAAe,CAAC;YACxE,MAAM,IAAI,GAAG,CAAC,CAAC,IAAI,IAAI,cAAc,CAAC;YACtC,OAAO,KAAK,CAAC,CAAC,MAAM,QAAQ,CAAC,CAAC,WAAW,KAAK,IAAI,KAAK,MAAM,gBAAgB,CAAC,CAAC,aAAa,EAAE,CAAC;QACjG,CAAC,CAAC,CAAC;QACH,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACpD,CAAC;CACF,CAAC,CAAC"}
1
+ {"version":3,"file":"search-symbols.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/search-symbols.tool.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAE1E,2FAA2F;AAC3F,MAAM,qBAAqB,GAAG,gBAAgB,CAAC;AAE/C,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,CAAC,wBAAwB,EAAE;IAC1D,WAAW,EAC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Aa,EAAE,CAAC;QACjG,CAAC,CAAC,CAAC;QACH,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACpD,CAAC;CACF,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cyanheads/finnhub-mcp-server",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "mcpName": "io.github.cyanheads/finnhub-mcp-server",
5
5
  "description": "Real-time US-equity quotes, company fundamentals, earnings, analyst trends, and financial news via Finnhub. STDIO or Streamable HTTP.",
6
6
  "type": "module",
@@ -84,9 +84,9 @@
84
84
  "zod": "^4.4.3"
85
85
  },
86
86
  "devDependencies": {
87
- "@biomejs/biome": "2.5.9",
87
+ "@biomejs/biome": "2.5.11",
88
88
  "@socketsecurity/bun-security-scanner": "^1.1.2",
89
- "@types/node": "26.2.0",
89
+ "@types/node": "26.4.0",
90
90
  "depcheck": "^1.4.7",
91
91
  "ignore": "^7.0.6",
92
92
  "tsc-alias": "^1.9.2",
package/server.json CHANGED
@@ -6,14 +6,14 @@
6
6
  "url": "https://github.com/cyanheads/finnhub-mcp-server",
7
7
  "source": "github"
8
8
  },
9
- "version": "0.1.2",
9
+ "version": "0.1.3",
10
10
  "packages": [
11
11
  {
12
12
  "registryType": "npm",
13
13
  "registryBaseUrl": "https://registry.npmjs.org",
14
14
  "identifier": "@cyanheads/finnhub-mcp-server",
15
15
  "runtimeHint": "node",
16
- "version": "0.1.2",
16
+ "version": "0.1.3",
17
17
  "packageArguments": [
18
18
  {
19
19
  "type": "positional",
@@ -55,7 +55,7 @@
55
55
  "registryBaseUrl": "https://registry.npmjs.org",
56
56
  "identifier": "@cyanheads/finnhub-mcp-server",
57
57
  "runtimeHint": "node",
58
- "version": "0.1.2",
58
+ "version": "0.1.3",
59
59
  "packageArguments": [
60
60
  {
61
61
  "type": "positional",