@cyanheads/wikipedia-mcp-server 0.1.3 → 0.1.5

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.
Files changed (30) hide show
  1. package/AGENTS.md +17 -38
  2. package/CLAUDE.md +17 -38
  3. package/README.md +2 -2
  4. package/changelog/0.1.x/0.1.4.md +15 -0
  5. package/changelog/0.1.x/0.1.5.md +26 -0
  6. package/changelog/template.md +8 -0
  7. package/dist/config/server-config.js +1 -1
  8. package/dist/index.js +1 -0
  9. package/dist/index.js.map +1 -1
  10. package/dist/mcp-server/tools/definitions/index.d.ts +8 -8
  11. package/dist/mcp-server/tools/definitions/wikipedia-get-article.tool.d.ts +2 -2
  12. package/dist/mcp-server/tools/definitions/wikipedia-get-article.tool.js +2 -2
  13. package/dist/mcp-server/tools/definitions/wikipedia-get-article.tool.js.map +1 -1
  14. package/dist/mcp-server/tools/definitions/wikipedia-get-languages.tool.d.ts +1 -1
  15. package/dist/mcp-server/tools/definitions/wikipedia-get-languages.tool.js +1 -1
  16. package/dist/mcp-server/tools/definitions/wikipedia-get-languages.tool.js.map +1 -1
  17. package/dist/mcp-server/tools/definitions/wikipedia-get-sections.tool.d.ts +1 -1
  18. package/dist/mcp-server/tools/definitions/wikipedia-get-sections.tool.js +1 -1
  19. package/dist/mcp-server/tools/definitions/wikipedia-get-sections.tool.js.map +1 -1
  20. package/dist/mcp-server/tools/definitions/wikipedia-get-summary.tool.d.ts +1 -1
  21. package/dist/mcp-server/tools/definitions/wikipedia-get-summary.tool.js +1 -1
  22. package/dist/mcp-server/tools/definitions/wikipedia-get-summary.tool.js.map +1 -1
  23. package/dist/mcp-server/tools/definitions/wikipedia-search-nearby.tool.d.ts +2 -2
  24. package/dist/mcp-server/tools/definitions/wikipedia-search-nearby.tool.js +2 -2
  25. package/dist/mcp-server/tools/definitions/wikipedia-search-nearby.tool.js.map +1 -1
  26. package/dist/mcp-server/tools/definitions/wikipedia-search.tool.d.ts +1 -1
  27. package/dist/mcp-server/tools/definitions/wikipedia-search.tool.js +1 -1
  28. package/dist/mcp-server/tools/definitions/wikipedia-search.tool.js.map +1 -1
  29. package/package.json +31 -23
  30. package/server.json +3 -3
package/AGENTS.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Developer Protocol
2
2
 
3
3
  **Server:** wikipedia-mcp-server
4
- **Version:** 0.1.3
5
- **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.9.9`
4
+ **Version:** 0.1.5
5
+ **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.9.13`
6
6
  **Engines:** Bun ≥1.3.0, Node ≥24.0.0
7
7
  **MCP SDK:** `@modelcontextprotocol/sdk` ^1.29.0
8
8
  **Zod:** ^4.4.3
@@ -37,7 +37,7 @@ Tailor suggestions to what's actually missing or stale — don't recite the full
37
37
  - **Use `ctx.state`** for tenant-scoped storage. Never access persistence directly.
38
38
  - **Check `ctx.elicit` / `ctx.sample`** for presence before calling.
39
39
  - **Secrets in env vars only** — never hardcoded.
40
- - **Close the loop on issues.** When implementing work tracked by a GitHub issue, comment on the issue with what landed before moving on. The comment is for future readers — state the concrete changes, not the conversation that produced them.
40
+ - **Close the loop on issues.** When implementing work tracked by a GitHub issue, comment on the issue with what landed and close it. Do both — a comment without a close leaves stale issues open; a close without a comment leaves no record of what shipped. The comment is for future readers — state the concrete changes, not the conversation that produced them.
41
41
 
42
42
  ---
43
43
 
@@ -165,6 +165,8 @@ Handlers throw — the framework catches, classifies, and formats.
165
165
  **Recommended: typed error contract.** Declare `errors: [{ reason, code, when, recovery, retryable? }]` on `tool()` / `resource()` to receive `ctx.fail(reason, …)` typed against the reason union. TypeScript catches typos at compile time, `data.reason` is auto-populated for observability, linter enforces conformance against the handler body. `recovery` is required descriptive metadata for the agent's next move (≥ 5 words, lint-validated); for the wire `data.recovery.hint` (mirrored into `content[]` text), pass explicitly at the throw site when dynamic context matters: `ctx.fail('reason', msg, { recovery: { hint: '...' } })`. Baseline codes (`InternalError`, `ServiceUnavailable`, `Timeout`, `ValidationError`, `SerializationError`) bubble freely and don't need declaring.
166
166
 
167
167
  ```ts
168
+ import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
169
+
168
170
  errors: [
169
171
  { reason: 'no_match', code: JsonRpcErrorCode.NotFound,
170
172
  when: 'No item matched the query',
@@ -254,9 +256,13 @@ Available skills:
254
256
  | `add-service` | Scaffold a new service integration |
255
257
  | `add-test` | Scaffold test file for a tool, resource, or service |
256
258
  | `field-test` | Exercise tools/resources/prompts with real inputs, verify behavior, report issues |
259
+ | `tool-defs-analysis` | Read-only audit of MCP definition language across the surface — voice, leaks, defaults, recovery hints, output descriptions |
257
260
  | `security-pass` | Audit server for MCP-flavored security gaps: output injection, scope blast radius, input sinks, tenant isolation |
261
+ | `code-simplifier` | Post-session cleanup against `git diff` — modernize syntax, consolidate duplication, align with the codebase |
258
262
  | `devcheck` | Lint, format, typecheck, audit |
259
263
  | `polish-docs-meta` | Finalize docs, README, metadata, and agent protocol for shipping |
264
+ | `git-wrapup` | Land working-tree changes as a versioned commit + annotated tag — version bump, changelog, verify, tag. Local only. |
265
+ | `release-and-publish` | Push + npm + MCP Registry + GH Release + Docker. Picks up from `git-wrapup` |
260
266
  | `maintenance` | Investigate changelogs, adopt upstream changes, sync skills to agent dirs |
261
267
  | `report-issue-framework` | File a bug or feature request against `@cyanheads/mcp-ts-core` via `gh` CLI |
262
268
  | `report-issue-local` | File a bug or feature request against this server's own repo via `gh` CLI |
@@ -265,6 +271,7 @@ Available skills:
265
271
  | `api-config` | AppConfig, parseConfig, env vars |
266
272
  | `api-context` | Context interface, logger, state, progress |
267
273
  | `api-errors` | McpError, JsonRpcErrorCode, error patterns |
274
+ | `api-linter` | Definition linter rule catalog — invoked by `bun run lint:mcp` and `devcheck` |
268
275
  | `api-services` | LLM, Speech, Graph services |
269
276
  | `api-testing` | createMockContext, test patterns |
270
277
  | `api-utils` | Formatting, parsing, security, pagination, scheduling, telemetry helpers |
@@ -285,7 +292,7 @@ When you complete a skill's checklist, check the boxes and add a completion time
285
292
  | `npm run rebuild` | Clean + build |
286
293
  | `npm run clean` | Remove build artifacts |
287
294
  | `npm run devcheck` | Lint + format + typecheck + security + changelog sync |
288
- | `bun run audit:refresh` | Delete `bun.lock`, reinstall, re-audit. Use when `devcheck` flags a transitive advisory — stale lockfile can mask already-patched deps. If advisory survives, it's real. |
295
+ | `bun run audit:refresh` | Delete `bun.lock`, reinstall, and re-run `bun audit`. Use when `devcheck` flags a transitive advisory — Bun's `update` is sticky on transitive resolutions, so the advisory may be a stale-lockfile false positive. If it survives the refresh, it's real. |
289
296
  | `npm run tree` | Generate directory structure doc |
290
297
  | `npm run format` | Auto-fix formatting |
291
298
  | `npm test` | Run tests |
@@ -303,40 +310,7 @@ When you complete a skill's checklist, check the boxes and add a completion time
303
310
 
304
311
  **Adding an env var requires both files:** `server.json` (registry discovery, `environmentVariables[]`) and `manifest.json` (bundle install UX, `mcp_config.env` + `user_config`). `lint:packaging` (run by `devcheck`) verifies the env var names match.
305
312
 
306
- **README install badges.** Drop these into the project README to give users one-click install paths. Fill in `<OWNER>` / `<REPO>` / `<PACKAGE_NAME>` and encode the per-server config. Cursor + VS Code badges assume the server is published to npm; Claude Desktop downloads the `.mcpb` directly so npm publishing isn't required.
307
-
308
- | Client | Mechanism |
309
- |:-------|:----------|
310
- | Claude Desktop | Browser downloads the `.mcpb` from the latest GitHub Release; OS file handler routes it to Claude Desktop, which opens the install dialog. No deep-link URL scheme yet — this is the canonical path. |
311
- | Cursor | Official `https://cursor.com/en/install-mcp` endpoint with base64 JSON config. |
312
- | VS Code / Insiders | Official `vscode:mcp/install?...` deep link, wrapped in `https://vscode.dev/redirect?url=` so GitHub-rendered markdown doesn't strip the non-HTTP scheme. |
313
- | Claude Code / Codex | CLI only (`claude mcp add` / `codex mcp add`); no URL scheme. |
314
-
315
- ```markdown
316
- [![Install in Claude Desktop](https://img.shields.io/badge/Install_in-Claude_Desktop-D97757?style=for-the-badge&logo=anthropic&logoColor=white)](https://github.com/<OWNER>/<REPO>/releases/latest/download/<PACKAGE_NAME>.mcpb)
317
- [![Install in Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en/install-mcp?name=<PACKAGE_NAME>&config=<BASE64_CONFIG>)
318
- [![Install in VS Code](https://img.shields.io/badge/VS_Code-Install_Server-0098FF?style=for-the-badge&logo=visualstudiocode&logoColor=white)](https://vscode.dev/redirect?url=vscode:mcp/install?<URLENCODED_JSON>)
319
- ```
320
-
321
- Both install links route through HTTPS endpoints (`cursor.com/en/install-mcp` and `vscode.dev/redirect`) — GitHub-rendered markdown strips non-HTTP URL schemes from anchors, so a raw `cursor://` or `vscode:` link won't click through from github.com.
322
-
323
- Generate the encoded configs (replace `<PACKAGE_NAME>` and add env vars for any required API keys):
324
-
325
- ```bash
326
- # Cursor: base64-encoded JSON. Split command/args, add env when keys are needed.
327
- echo -n '{"command":"npx","args":["-y","<PACKAGE_NAME>"],"env":{"API_KEY":"your-api-key"}}' | base64
328
- # Without env (no required keys):
329
- echo -n '{"command":"npx","args":["-y","<PACKAGE_NAME>"]}' | base64
330
-
331
- # VS Code: URL-encoded JSON. Same shape plus a `name` field.
332
- node -p 'encodeURIComponent(JSON.stringify({name:"<SHORT_NAME>",command:"npx",args:["-y","<PACKAGE_NAME>"],env:{API_KEY:"your-api-key"}}))'
333
- # Without env:
334
- node -p 'encodeURIComponent(JSON.stringify({name:"<SHORT_NAME>",command:"npx",args:["-y","<PACKAGE_NAME>"]}))'
335
- ```
336
-
337
- Both clients use the same `{command, args, env}` shape (matching `mcp.json` schema). VS Code adds a top-level `name` field. Omit `env` entirely when no API keys are needed — don't include empty objects or framework-only vars like `MCP_TRANSPORT_TYPE`.
338
-
339
- The Claude Desktop badge requires the bundle to ship with a stable filename — `bun run bundle` outputs `dist/<PACKAGE_NAME>.mcpb`, and `release-and-publish` attaches that file to the GitHub Release. `releases/latest/download/<PACKAGE_NAME>.mcpb` then redirects to the most recent release.
313
+ **README install badges** (Claude Desktop `.mcpb`, Cursor, VS Code) and the `base64` / `encodeURIComponent` config-generation commands are ship-time concerns run the `polish-docs-meta` skill, which carries the badge format, layout, and generation snippets in `skills/polish-docs-meta/references/readme.md`.
340
314
 
341
315
  ---
342
316
 
@@ -359,6 +333,8 @@ security: false # optional — true flags security fi
359
333
 
360
334
  `breaking: true` renders a `· ⚠️ Breaking` badge — use it when consumers must update code on upgrade (signature changes, removed APIs, config renames). `security: true` renders a `· 🛡️ Security` badge and pairs with a `## Security` body section. When both are set, badges render `· ⚠️ Breaking · 🛡️ Security`.
361
335
 
336
+ `agent-notes` is an optional free-form field for maintenance agents processing the release downstream. Content here won't appear in the rendered CHANGELOG — it's consumed by agents running the `maintenance` skill. Use it for adoption instructions that don't fit the human-facing sections: new files to create, fields to populate, one-time migration steps. Omit entirely when there's nothing to say.
337
+
362
338
  **Section order** (Keep a Changelog): Added, Changed, Deprecated, Removed, Fixed, Security. Include only sections with entries — don't ship empty headers.
363
339
 
364
340
  **Tag annotations** render as GitHub Release bodies via `--notes-from-tag`. They must be structured markdown — never a flat comma-separated string. Subject omits the version number (GitHub prepends it). See `changelog/template.md` for the full format reference.
@@ -391,4 +367,7 @@ import { getMyService } from '@/services/my-domain/my-service.js';
391
367
  - [ ] If wrapping external API: tests include at least one sparse payload case with omitted upstream fields
392
368
  - [ ] Registered in `createApp()` arrays (directly or via barrel exports)
393
369
  - [ ] Tests use `createMockContext()` from `@cyanheads/mcp-ts-core/testing`
370
+ - [ ] `.codex-plugin/plugin.json` populated — `name`, `version`, `description`, `repository`, `license` from `package.json`; `interface.displayName` = package name; `interface.shortDescription` from `package.json` description
371
+ - [ ] `.codex-plugin/mcp.json` updated — server name key matches `package.json` name; env vars added for any required API keys
372
+ - [ ] `.claude-plugin/plugin.json` populated — `name`, `version`, `description`, `repository`, `license` from `package.json`; inline `mcpServers` entry with server name key, env vars for any required API keys
394
373
  - [ ] `npm run devcheck` passes
package/CLAUDE.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Developer Protocol
2
2
 
3
3
  **Server:** wikipedia-mcp-server
4
- **Version:** 0.1.3
5
- **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.9.9`
4
+ **Version:** 0.1.5
5
+ **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.9.13`
6
6
  **Engines:** Bun ≥1.3.0, Node ≥24.0.0
7
7
  **MCP SDK:** `@modelcontextprotocol/sdk` ^1.29.0
8
8
  **Zod:** ^4.4.3
@@ -37,7 +37,7 @@ Tailor suggestions to what's actually missing or stale — don't recite the full
37
37
  - **Use `ctx.state`** for tenant-scoped storage. Never access persistence directly.
38
38
  - **Check `ctx.elicit` / `ctx.sample`** for presence before calling.
39
39
  - **Secrets in env vars only** — never hardcoded.
40
- - **Close the loop on issues.** When implementing work tracked by a GitHub issue, comment on the issue with what landed before moving on. The comment is for future readers — state the concrete changes, not the conversation that produced them.
40
+ - **Close the loop on issues.** When implementing work tracked by a GitHub issue, comment on the issue with what landed and close it. Do both — a comment without a close leaves stale issues open; a close without a comment leaves no record of what shipped. The comment is for future readers — state the concrete changes, not the conversation that produced them.
41
41
 
42
42
  ---
43
43
 
@@ -165,6 +165,8 @@ Handlers throw — the framework catches, classifies, and formats.
165
165
  **Recommended: typed error contract.** Declare `errors: [{ reason, code, when, recovery, retryable? }]` on `tool()` / `resource()` to receive `ctx.fail(reason, …)` typed against the reason union. TypeScript catches typos at compile time, `data.reason` is auto-populated for observability, linter enforces conformance against the handler body. `recovery` is required descriptive metadata for the agent's next move (≥ 5 words, lint-validated); for the wire `data.recovery.hint` (mirrored into `content[]` text), pass explicitly at the throw site when dynamic context matters: `ctx.fail('reason', msg, { recovery: { hint: '...' } })`. Baseline codes (`InternalError`, `ServiceUnavailable`, `Timeout`, `ValidationError`, `SerializationError`) bubble freely and don't need declaring.
166
166
 
167
167
  ```ts
168
+ import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
169
+
168
170
  errors: [
169
171
  { reason: 'no_match', code: JsonRpcErrorCode.NotFound,
170
172
  when: 'No item matched the query',
@@ -254,9 +256,13 @@ Available skills:
254
256
  | `add-service` | Scaffold a new service integration |
255
257
  | `add-test` | Scaffold test file for a tool, resource, or service |
256
258
  | `field-test` | Exercise tools/resources/prompts with real inputs, verify behavior, report issues |
259
+ | `tool-defs-analysis` | Read-only audit of MCP definition language across the surface — voice, leaks, defaults, recovery hints, output descriptions |
257
260
  | `security-pass` | Audit server for MCP-flavored security gaps: output injection, scope blast radius, input sinks, tenant isolation |
261
+ | `code-simplifier` | Post-session cleanup against `git diff` — modernize syntax, consolidate duplication, align with the codebase |
258
262
  | `devcheck` | Lint, format, typecheck, audit |
259
263
  | `polish-docs-meta` | Finalize docs, README, metadata, and agent protocol for shipping |
264
+ | `git-wrapup` | Land working-tree changes as a versioned commit + annotated tag — version bump, changelog, verify, tag. Local only. |
265
+ | `release-and-publish` | Push + npm + MCP Registry + GH Release + Docker. Picks up from `git-wrapup` |
260
266
  | `maintenance` | Investigate changelogs, adopt upstream changes, sync skills to agent dirs |
261
267
  | `report-issue-framework` | File a bug or feature request against `@cyanheads/mcp-ts-core` via `gh` CLI |
262
268
  | `report-issue-local` | File a bug or feature request against this server's own repo via `gh` CLI |
@@ -265,6 +271,7 @@ Available skills:
265
271
  | `api-config` | AppConfig, parseConfig, env vars |
266
272
  | `api-context` | Context interface, logger, state, progress |
267
273
  | `api-errors` | McpError, JsonRpcErrorCode, error patterns |
274
+ | `api-linter` | Definition linter rule catalog — invoked by `bun run lint:mcp` and `devcheck` |
268
275
  | `api-services` | LLM, Speech, Graph services |
269
276
  | `api-testing` | createMockContext, test patterns |
270
277
  | `api-utils` | Formatting, parsing, security, pagination, scheduling, telemetry helpers |
@@ -285,7 +292,7 @@ When you complete a skill's checklist, check the boxes and add a completion time
285
292
  | `npm run rebuild` | Clean + build |
286
293
  | `npm run clean` | Remove build artifacts |
287
294
  | `npm run devcheck` | Lint + format + typecheck + security + changelog sync |
288
- | `bun run audit:refresh` | Delete `bun.lock`, reinstall, re-audit. Use when `devcheck` flags a transitive advisory — stale lockfile can mask already-patched deps. If advisory survives, it's real. |
295
+ | `bun run audit:refresh` | Delete `bun.lock`, reinstall, and re-run `bun audit`. Use when `devcheck` flags a transitive advisory — Bun's `update` is sticky on transitive resolutions, so the advisory may be a stale-lockfile false positive. If it survives the refresh, it's real. |
289
296
  | `npm run tree` | Generate directory structure doc |
290
297
  | `npm run format` | Auto-fix formatting |
291
298
  | `npm test` | Run tests |
@@ -303,40 +310,7 @@ When you complete a skill's checklist, check the boxes and add a completion time
303
310
 
304
311
  **Adding an env var requires both files:** `server.json` (registry discovery, `environmentVariables[]`) and `manifest.json` (bundle install UX, `mcp_config.env` + `user_config`). `lint:packaging` (run by `devcheck`) verifies the env var names match.
305
312
 
306
- **README install badges.** Drop these into the project README to give users one-click install paths. Fill in `<OWNER>` / `<REPO>` / `<PACKAGE_NAME>` and encode the per-server config. Cursor + VS Code badges assume the server is published to npm; Claude Desktop downloads the `.mcpb` directly so npm publishing isn't required.
307
-
308
- | Client | Mechanism |
309
- |:-------|:----------|
310
- | Claude Desktop | Browser downloads the `.mcpb` from the latest GitHub Release; OS file handler routes it to Claude Desktop, which opens the install dialog. No deep-link URL scheme yet — this is the canonical path. |
311
- | Cursor | Official `https://cursor.com/en/install-mcp` endpoint with base64 JSON config. |
312
- | VS Code / Insiders | Official `vscode:mcp/install?...` deep link, wrapped in `https://vscode.dev/redirect?url=` so GitHub-rendered markdown doesn't strip the non-HTTP scheme. |
313
- | Claude Code / Codex | CLI only (`claude mcp add` / `codex mcp add`); no URL scheme. |
314
-
315
- ```markdown
316
- [![Install in Claude Desktop](https://img.shields.io/badge/Install_in-Claude_Desktop-D97757?style=for-the-badge&logo=anthropic&logoColor=white)](https://github.com/<OWNER>/<REPO>/releases/latest/download/<PACKAGE_NAME>.mcpb)
317
- [![Install in Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en/install-mcp?name=<PACKAGE_NAME>&config=<BASE64_CONFIG>)
318
- [![Install in VS Code](https://img.shields.io/badge/VS_Code-Install_Server-0098FF?style=for-the-badge&logo=visualstudiocode&logoColor=white)](https://vscode.dev/redirect?url=vscode:mcp/install?<URLENCODED_JSON>)
319
- ```
320
-
321
- Both install links route through HTTPS endpoints (`cursor.com/en/install-mcp` and `vscode.dev/redirect`) — GitHub-rendered markdown strips non-HTTP URL schemes from anchors, so a raw `cursor://` or `vscode:` link won't click through from github.com.
322
-
323
- Generate the encoded configs (replace `<PACKAGE_NAME>` and add env vars for any required API keys):
324
-
325
- ```bash
326
- # Cursor: base64-encoded JSON. Split command/args, add env when keys are needed.
327
- echo -n '{"command":"npx","args":["-y","<PACKAGE_NAME>"],"env":{"API_KEY":"your-api-key"}}' | base64
328
- # Without env (no required keys):
329
- echo -n '{"command":"npx","args":["-y","<PACKAGE_NAME>"]}' | base64
330
-
331
- # VS Code: URL-encoded JSON. Same shape plus a `name` field.
332
- node -p 'encodeURIComponent(JSON.stringify({name:"<SHORT_NAME>",command:"npx",args:["-y","<PACKAGE_NAME>"],env:{API_KEY:"your-api-key"}}))'
333
- # Without env:
334
- node -p 'encodeURIComponent(JSON.stringify({name:"<SHORT_NAME>",command:"npx",args:["-y","<PACKAGE_NAME>"]}))'
335
- ```
336
-
337
- Both clients use the same `{command, args, env}` shape (matching `mcp.json` schema). VS Code adds a top-level `name` field. Omit `env` entirely when no API keys are needed — don't include empty objects or framework-only vars like `MCP_TRANSPORT_TYPE`.
338
-
339
- The Claude Desktop badge requires the bundle to ship with a stable filename — `bun run bundle` outputs `dist/<PACKAGE_NAME>.mcpb`, and `release-and-publish` attaches that file to the GitHub Release. `releases/latest/download/<PACKAGE_NAME>.mcpb` then redirects to the most recent release.
313
+ **README install badges** (Claude Desktop `.mcpb`, Cursor, VS Code) and the `base64` / `encodeURIComponent` config-generation commands are ship-time concerns run the `polish-docs-meta` skill, which carries the badge format, layout, and generation snippets in `skills/polish-docs-meta/references/readme.md`.
340
314
 
341
315
  ---
342
316
 
@@ -359,6 +333,8 @@ security: false # optional — true flags security fi
359
333
 
360
334
  `breaking: true` renders a `· ⚠️ Breaking` badge — use it when consumers must update code on upgrade (signature changes, removed APIs, config renames). `security: true` renders a `· 🛡️ Security` badge and pairs with a `## Security` body section. When both are set, badges render `· ⚠️ Breaking · 🛡️ Security`.
361
335
 
336
+ `agent-notes` is an optional free-form field for maintenance agents processing the release downstream. Content here won't appear in the rendered CHANGELOG — it's consumed by agents running the `maintenance` skill. Use it for adoption instructions that don't fit the human-facing sections: new files to create, fields to populate, one-time migration steps. Omit entirely when there's nothing to say.
337
+
362
338
  **Section order** (Keep a Changelog): Added, Changed, Deprecated, Removed, Fixed, Security. Include only sections with entries — don't ship empty headers.
363
339
 
364
340
  **Tag annotations** render as GitHub Release bodies via `--notes-from-tag`. They must be structured markdown — never a flat comma-separated string. Subject omits the version number (GitHub prepends it). See `changelog/template.md` for the full format reference.
@@ -391,4 +367,7 @@ import { getMyService } from '@/services/my-domain/my-service.js';
391
367
  - [ ] If wrapping external API: tests include at least one sparse payload case with omitted upstream fields
392
368
  - [ ] Registered in `createApp()` arrays (directly or via barrel exports)
393
369
  - [ ] Tests use `createMockContext()` from `@cyanheads/mcp-ts-core/testing`
370
+ - [ ] `.codex-plugin/plugin.json` populated — `name`, `version`, `description`, `repository`, `license` from `package.json`; `interface.displayName` = package name; `interface.shortDescription` from `package.json` description
371
+ - [ ] `.codex-plugin/mcp.json` updated — server name key matches `package.json` name; env vars added for any required API keys
372
+ - [ ] `.claude-plugin/plugin.json` populated — `name`, `version`, `description`, `repository`, `license` from `package.json`; inline `mcpServers` entry with server name key, env vars for any required API keys
394
373
  - [ ] `npm run devcheck` passes
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.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/wikipedia-mcp-server) [![MCP SDK](https://img.shields.io/badge/MCP%20SDK-^1.29.0-green.svg?style=flat-square)](https://modelcontextprotocol.io/) [![npm](https://img.shields.io/npm/v/@cyanheads/wikipedia-mcp-server?style=flat-square&logo=npm&logoColor=white)](https://www.npmjs.com/package/@cyanheads/wikipedia-mcp-server) [![TypeScript](https://img.shields.io/badge/TypeScript-^5.9.3-3178C6.svg?style=flat-square)](https://www.typescriptlang.org/) [![Bun](https://img.shields.io/badge/Bun-v1.3.11-blueviolet.svg?style=flat-square)](https://bun.sh/)
10
+ [![Version](https://img.shields.io/badge/Version-0.1.5-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/wikipedia-mcp-server) [![MCP SDK](https://img.shields.io/badge/MCP%20SDK-^1.29.0-green.svg?style=flat-square)](https://modelcontextprotocol.io/) [![npm](https://img.shields.io/npm/v/@cyanheads/wikipedia-mcp-server?style=flat-square&logo=npm&logoColor=white)](https://www.npmjs.com/package/@cyanheads/wikipedia-mcp-server) [![TypeScript](https://img.shields.io/badge/TypeScript-^6.0.3-3178C6.svg?style=flat-square)](https://www.typescriptlang.org/) [![Bun](https://img.shields.io/badge/Bun-v1.3.11-blueviolet.svg?style=flat-square)](https://bun.sh/)
11
11
 
12
12
  </div>
13
13
 
@@ -217,7 +217,7 @@ cp .env.example .env
217
217
 
218
218
  | Variable | Description | Default |
219
219
  |:---------|:------------|:--------|
220
- | `WIKIPEDIA_USER_AGENT` | User-Agent header sent with every Wikimedia API request. Customize for your deployment. | `wikipedia-mcp-server/0.1.3 (https://github.com/cyanheads/wikipedia-mcp-server)` |
220
+ | `WIKIPEDIA_USER_AGENT` | User-Agent header sent with every Wikimedia API request. Customize for your deployment. | `wikipedia-mcp-server/0.1.5 (https://github.com/cyanheads/wikipedia-mcp-server)` |
221
221
  | `WIKIPEDIA_BASE_URL` | Base Wikipedia URL. Language selection is per-call — not a global language setting. | `https://en.wikipedia.org` |
222
222
  | `MCP_TRANSPORT_TYPE` | Transport: `stdio` or `http`. | `stdio` |
223
223
  | `MCP_HTTP_PORT` | Port for HTTP server. | `3010` |
@@ -0,0 +1,15 @@
1
+ ---
2
+ summary: "Drop tsx, align all scripts to bun-native execution; add funding block"
3
+ breaking: false
4
+ security: false
5
+ ---
6
+
7
+ # 0.1.4 — 2026-05-24
8
+
9
+ ## Changed
10
+
11
+ - **Build scripts** — all `scripts/*` invocations switched from `tsx` to `bun run`, matching the Bun-native gold standard across the ecosystem.
12
+ - **`test` script** — changed from `vitest run` to `bunx vitest run` for explicit runtime resolution.
13
+ - **`start:stdio` / `start:http`** — changed from `node dist/index.js` to `bun ./dist/index.js`; removed bare `start` alias.
14
+ - **`funding` block** — added GitHub Sponsors and Buy Me a Coffee entries to `package.json`.
15
+ - **`tsx`** — removed from `devDependencies` (no longer needed).
@@ -0,0 +1,26 @@
1
+ ---
2
+ summary: "mcp-ts-core ^0.9.9 → ^0.9.13: HTTP body cap, session-init gate, quieter auth-error logs, GET /mcp keywords; error code corrections; dep refresh"
3
+ breaking: false
4
+ security: false
5
+ ---
6
+
7
+ # 0.1.5 — 2026-05-28
8
+
9
+ ## Changed
10
+
11
+ - **`@cyanheads/mcp-ts-core`** `^0.9.9 → ^0.9.13` — framework adoption:
12
+ - **`MCP_HTTP_MAX_BODY_BYTES`** — configurable inbound request-body cap (default 1 MiB); oversized requests rejected with HTTP 413 before the SDK parses the body.
13
+ - **HTTP session-init gate** — stateful HTTP mode now rejects non-`initialize` requests missing `Mcp-Session-Id` with HTTP 400.
14
+ - **Auth-error log quieting** — 401, 403, 400, 404 responses now log at `warning` level instead of triggering the full error pipeline with stack traces.
15
+ - **`GET /mcp` keywords** — `package.json` `keywords` surfaced in the status JSON response alongside name, version, and description.
16
+ - **`landing.requireAuth: false`** — added explicitly in `createApp()` to preserve public-catalog inventory serving after framework default changed to gated-by-auth when `MCP_AUTH_MODE` is `jwt`/`oauth`.
17
+ - **Error codes** — `invalid_section`, `invalid_coordinates`, and `invalid_language` error contracts corrected from `JsonRpcErrorCode.InvalidParams` to `JsonRpcErrorCode.ValidationError` across 6 tool definitions.
18
+
19
+ ## Dependencies
20
+
21
+ - `wtf_wikipedia` ^10.4.1 → ^10.4.2
22
+ - `@biomejs/biome` ^2.4.7 → ^2.4.16
23
+ - `@types/node` ^25.6.0 → ^25.9.1
24
+ - `tsc-alias` ^1.8.16 → ^1.8.17
25
+ - `typescript` ^5.9.3 → ^6.0.3
26
+ - `vitest` ^4.1.0 → ^4.1.7
@@ -19,6 +19,14 @@ breaking: false
19
19
  # `## Security` section below. Flagged as `Security` in the rollup so
20
20
  # users can triage upgrade urgency at a glance.
21
21
  security: false
22
+
23
+ # Optional free-form notes for maintenance agents processing this release.
24
+ # Not rendered in CHANGELOG — consumed by agents running `maintenance` on
25
+ # downstream servers. Use for adoption instructions that don't fit the
26
+ # human-facing sections: new files to create, fields to populate, one-time
27
+ # migration steps. Omit the field entirely when there's nothing to say.
28
+ # agent-notes: |
29
+ # <instructions for downstream maintenance agents>
22
30
  ---
23
31
 
24
32
  # <version> — YYYY-MM-DD
@@ -11,7 +11,7 @@ const ServerConfigSchema = z.object({
11
11
  .describe('Base Wikipedia URL — language selection is per-call, not global'),
12
12
  userAgent: z
13
13
  .string()
14
- .default('wikipedia-mcp-server/0.1.3 (https://github.com/cyanheads/wikipedia-mcp-server)')
14
+ .default('wikipedia-mcp-server/0.1.5 (https://github.com/cyanheads/wikipedia-mcp-server)')
15
15
  .describe('User-Agent header sent with every request per Wikimedia policy'),
16
16
  });
17
17
  let _config;
package/dist/index.js CHANGED
@@ -17,6 +17,7 @@ await createApp({
17
17
  - Use wikipedia_get_sections then wikipedia_get_article with section_index for targeted section reads — much smaller than full articles.
18
18
  - All tools support a language parameter (default "en") for multi-language workflows.
19
19
  - wikipedia_get_summary returns page_type: "disambiguation" for disambiguation pages — follow up with wikipedia_search.`,
20
+ landing: { requireAuth: false },
20
21
  setup(core) {
21
22
  const serverConfig = getServerConfig();
22
23
  initWikipediaService(core.config, core.storage, serverConfig.userAgent);
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA;;;GAGG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AAEjF,MAAM,SAAS,CAAC;IACd,KAAK,EAAE,kBAAkB;IACzB,SAAS,EAAE,EAAE;IACb,OAAO,EAAE,EAAE;IACX,YAAY,EAAE;;;;;wHAKwG;IACtH,KAAK,CAAC,IAAI;QACR,MAAM,YAAY,GAAG,eAAe,EAAE,CAAC;QACvC,oBAAoB,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,EAAE,YAAY,CAAC,SAAS,CAAC,CAAC;IAC1E,CAAC;CACF,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA;;;GAGG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AAEjF,MAAM,SAAS,CAAC;IACd,KAAK,EAAE,kBAAkB;IACzB,SAAS,EAAE,EAAE;IACb,OAAO,EAAE,EAAE;IACX,YAAY,EAAE;;;;;wHAKwG;IACtH,OAAO,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE;IAC/B,KAAK,CAAC,IAAI;QACR,MAAM,YAAY,GAAG,eAAe,EAAE,CAAC;QACvC,oBAAoB,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,EAAE,YAAY,CAAC,SAAS,CAAC,CAAC;IAC1E,CAAC;CACF,CAAC,CAAC"}
@@ -20,12 +20,12 @@ export declare const allToolDefinitions: (import("@cyanheads/mcp-ts-core").ToolD
20
20
  readonly recovery: "Use wikipedia_search to discover the correct article title and try again.";
21
21
  }, {
22
22
  readonly reason: "invalid_section";
23
- readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.InvalidParams;
23
+ readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
24
24
  readonly when: "The section_index is out of range for this article.";
25
25
  readonly recovery: "Call wikipedia_get_sections first to obtain valid section_index values.";
26
26
  }, {
27
27
  readonly reason: "invalid_language";
28
- readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.InvalidParams;
28
+ readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
29
29
  readonly when: "The language code is not a valid BCP 47 code.";
30
30
  readonly recovery: "Use a valid BCP 47 language code such as \"fr\", \"de\", or \"ja\".";
31
31
  }]> | import("@cyanheads/mcp-ts-core").ToolDefinition<import("zod").ZodObject<{
@@ -52,7 +52,7 @@ export declare const allToolDefinitions: (import("@cyanheads/mcp-ts-core").ToolD
52
52
  readonly recovery: "The article may be too new or too regional to have been translated yet.";
53
53
  }, {
54
54
  readonly reason: "invalid_language";
55
- readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.InvalidParams;
55
+ readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
56
56
  readonly when: "The language code is not a valid BCP 47 code.";
57
57
  readonly recovery: "Use a valid BCP 47 language code such as \"fr\", \"de\", or \"ja\".";
58
58
  }]> | import("@cyanheads/mcp-ts-core").ToolDefinition<import("zod").ZodObject<{
@@ -81,7 +81,7 @@ export declare const allToolDefinitions: (import("@cyanheads/mcp-ts-core").ToolD
81
81
  readonly recovery: "Use wikipedia_get_article without section_index to read the full short article.";
82
82
  }, {
83
83
  readonly reason: "invalid_language";
84
- readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.InvalidParams;
84
+ readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
85
85
  readonly when: "The language code is not a valid BCP 47 code.";
86
86
  readonly recovery: "Use a valid BCP 47 language code such as \"fr\", \"de\", or \"ja\".";
87
87
  }]> | import("@cyanheads/mcp-ts-core").ToolDefinition<import("zod").ZodObject<{
@@ -103,7 +103,7 @@ export declare const allToolDefinitions: (import("@cyanheads/mcp-ts-core").ToolD
103
103
  readonly recovery: "Use wikipedia_search to discover the correct article title and try again.";
104
104
  }, {
105
105
  readonly reason: "invalid_language";
106
- readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.InvalidParams;
106
+ readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
107
107
  readonly when: "The language code is not a valid BCP 47 code.";
108
108
  readonly recovery: "Use a valid BCP 47 language code such as \"fr\", \"de\", or \"ja\".";
109
109
  }]> | import("@cyanheads/mcp-ts-core").ToolDefinition<import("zod").ZodObject<{
@@ -127,7 +127,7 @@ export declare const allToolDefinitions: (import("@cyanheads/mcp-ts-core").ToolD
127
127
  readonly recovery: "Broaden the query or try different keywords and search again.";
128
128
  }, {
129
129
  readonly reason: "invalid_language";
130
- readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.InvalidParams;
130
+ readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
131
131
  readonly when: "The language code is not a valid BCP 47 code.";
132
132
  readonly recovery: "Use a valid BCP 47 language code such as \"fr\", \"de\", or \"ja\".";
133
133
  }]> | import("@cyanheads/mcp-ts-core").ToolDefinition<import("zod").ZodObject<{
@@ -156,12 +156,12 @@ export declare const allToolDefinitions: (import("@cyanheads/mcp-ts-core").ToolD
156
156
  readonly recovery: "Increase radius_meters or verify the coordinates are correct and retry.";
157
157
  }, {
158
158
  readonly reason: "invalid_coordinates";
159
- readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.InvalidParams;
159
+ readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
160
160
  readonly when: "Latitude or longitude is outside valid WGS 84 range.";
161
161
  readonly recovery: "Latitude must be between −90 and 90; longitude between −180 and 180.";
162
162
  }, {
163
163
  readonly reason: "invalid_language";
164
- readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.InvalidParams;
164
+ readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
165
165
  readonly when: "The language code is not a valid BCP 47 code.";
166
166
  readonly recovery: "Use a valid BCP 47 language code such as \"fr\", \"de\", or \"ja\".";
167
167
  }]>)[];
@@ -22,12 +22,12 @@ export declare const wikipediaGetArticle: import("@cyanheads/mcp-ts-core").ToolD
22
22
  readonly recovery: "Use wikipedia_search to discover the correct article title and try again.";
23
23
  }, {
24
24
  readonly reason: "invalid_section";
25
- readonly code: JsonRpcErrorCode.InvalidParams;
25
+ readonly code: JsonRpcErrorCode.ValidationError;
26
26
  readonly when: "The section_index is out of range for this article.";
27
27
  readonly recovery: "Call wikipedia_get_sections first to obtain valid section_index values.";
28
28
  }, {
29
29
  readonly reason: "invalid_language";
30
- readonly code: JsonRpcErrorCode.InvalidParams;
30
+ readonly code: JsonRpcErrorCode.ValidationError;
31
31
  readonly when: "The language code is not a valid BCP 47 code.";
32
32
  readonly recovery: "Use a valid BCP 47 language code such as \"fr\", \"de\", or \"ja\".";
33
33
  }]>;
@@ -45,13 +45,13 @@ export const wikipediaGetArticle = tool('wikipedia_get_article', {
45
45
  },
46
46
  {
47
47
  reason: 'invalid_section',
48
- code: JsonRpcErrorCode.InvalidParams,
48
+ code: JsonRpcErrorCode.ValidationError,
49
49
  when: 'The section_index is out of range for this article.',
50
50
  recovery: 'Call wikipedia_get_sections first to obtain valid section_index values.',
51
51
  },
52
52
  {
53
53
  reason: 'invalid_language',
54
- code: JsonRpcErrorCode.InvalidParams,
54
+ code: JsonRpcErrorCode.ValidationError,
55
55
  when: 'The language code is not a valid BCP 47 code.',
56
56
  recovery: 'Use a valid BCP 47 language code such as "fr", "de", or "ja".',
57
57
  },
@@ -1 +1 @@
1
- {"version":3,"file":"wikipedia-get-article.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/wikipedia-get-article.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAEhF,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,CAAC,uBAAuB,EAAE;IAC/D,KAAK,EAAE,uBAAuB;IAC9B,WAAW,EACT,kUAAkU;IACpU,WAAW,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE;IACxD,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,uDAAuD,CAAC;QACnF,aAAa,EAAE,CAAC;aACb,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CACP,uIAAuI,CACx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ACZ,CAAC;QACD,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,iBAAiB,EAAE;YAC9B,KAAK,EAAE,MAAM,CAAC,KAAK;YACnB,aAAa,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM;SACrC,CAAC,CAAC;QACH,OAAO;YACL,KAAK,EAAE,MAAM,CAAC,KAAK;YACnB,MAAM,EAAE,MAAM,CAAC,MAAM;YACrB,OAAO,EAAE,MAAM,CAAC,OAAO;YACvB,YAAY,EAAE,cAAc;YAC5B,QAAQ;SACT,CAAC;IACJ,CAAC;IAED,MAAM,EAAE,CAAC,MAAM,EAAE,EAAE;QACjB,MAAM,KAAK,GAAa,EAAE,CAAC;QAC3B,KAAK,CAAC,IAAI,CAAC,KAAK,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC;QAChC,KAAK,CAAC,IAAI,CACR,aAAa,MAAM,CAAC,YAAY,oBAAoB,MAAM,CAAC,QAAQ,EAAE;YACnE,CAAC,MAAM,CAAC,MAAM,IAAI,IAAI,CAAC,CAAC,CAAC,mBAAmB,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CACpE,CAAC;QACF,IAAI,MAAM,CAAC,aAAa;YAAE,KAAK,CAAC,IAAI,CAAC,gBAAgB,MAAM,CAAC,aAAa,EAAE,CAAC,CAAC;QAC7E,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACf,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAC3B,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":"wikipedia-get-article.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/wikipedia-get-article.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,IAAI,EAAE,C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,CAAC,CAAC,EAAE,CAAC,CACpE,CAAC;QACF,IAAI,MAAM,CAAC,aAAa;YAAE,KAAK,CAAC,IAAI,CAAC,gBAAgB,MAAM,CAAC,aAAa,EAAE,CAAC,CAAC;QAC7E,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACf,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAC3B,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACpD,CAAC;CACF,CAAC,CAAC"}
@@ -28,7 +28,7 @@ export declare const wikipediaGetLanguages: import("@cyanheads/mcp-ts-core").Too
28
28
  readonly recovery: "The article may be too new or too regional to have been translated yet.";
29
29
  }, {
30
30
  readonly reason: "invalid_language";
31
- readonly code: JsonRpcErrorCode.InvalidParams;
31
+ readonly code: JsonRpcErrorCode.ValidationError;
32
32
  readonly when: "The language code is not a valid BCP 47 code.";
33
33
  readonly recovery: "Use a valid BCP 47 language code such as \"fr\", \"de\", or \"ja\".";
34
34
  }]>;
@@ -45,7 +45,7 @@ export const wikipediaGetLanguages = tool('wikipedia_get_languages', {
45
45
  },
46
46
  {
47
47
  reason: 'invalid_language',
48
- code: JsonRpcErrorCode.InvalidParams,
48
+ code: JsonRpcErrorCode.ValidationError,
49
49
  when: 'The language code is not a valid BCP 47 code.',
50
50
  recovery: 'Use a valid BCP 47 language code such as "fr", "de", or "ja".',
51
51
  },
@@ -1 +1 @@
1
- {"version":3,"file":"wikipedia-get-languages.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/wikipedia-get-languages.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EAAE,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,IAAI,CAAC,KAAK,KAAK,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC;QAC1E,CAAC;QACD,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":"wikipedia-get-languages.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/wikipedia-get-languages.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAEhF,MAAM,CAAC,MAAM,qBAAqB,GAAG,IAAI,CAAC,yBAAyB,EAAE;IACnE,KAAK,EAAE,iCAAiC;IACxC,WAAW,EACT,+TAA+T;IACjU,WAAW,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE;IACxD,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,+CAA+C,CAAC;QAC3E,QAAQ,EAAE,CAAC;aACR,MAAM,EAAE;aACR,OAAO,CAAC,IAAI,CAAC;aACb,QAAQ,CACP,sFAAsF,CACvF;KACJ,CAAC;IACF,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC;QACf,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,+CAA+C,CAAC;QAClF,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,wCAAwC,CAAC;QAC9E,SAAS,EAAE,CAAC;aACT,KAAK,CACJ,CAAC;aACE,MAAM,CAAC;YACN,aAAa,EAAE,CAAC,CAAC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AC;gBAC/B,aAAa,EAAE,CAAC,CAAC,YAAY;gBAC7B,KAAK,EAAE,CAAC,CAAC,KAAK;gBACd,GAAG,EAAE,CAAC,CAAC,GAAG;aACX,CAAC,CAAC;YACH,eAAe,EAAE,SAAS,CAAC,MAAM;SAClC,CAAC;IACJ,CAAC;IAED,MAAM,EAAE,CAAC,MAAM,EAAE,EAAE;QACjB,MAAM,KAAK,GAAa;YACtB,6BAA6B,MAAM,CAAC,YAAY,MAAM,MAAM,CAAC,eAAe,GAAG;YAC/E,KAAK,MAAM,CAAC,eAAe,0BAA0B;SACtD,CAAC;QACF,KAAK,MAAM,IAAI,IAAI,MAAM,CAAC,SAAS,EAAE,CAAC;YACpC,KAAK,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC,aAAa,QAAQ,IAAI,CAAC,KAAK,KAAK,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC;QAC1E,CAAC;QACD,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACpD,CAAC;CACF,CAAC,CAAC"}
@@ -30,7 +30,7 @@ export declare const wikipediaGetSections: import("@cyanheads/mcp-ts-core").Tool
30
30
  readonly recovery: "Use wikipedia_get_article without section_index to read the full short article.";
31
31
  }, {
32
32
  readonly reason: "invalid_language";
33
- readonly code: JsonRpcErrorCode.InvalidParams;
33
+ readonly code: JsonRpcErrorCode.ValidationError;
34
34
  readonly when: "The language code is not a valid BCP 47 code.";
35
35
  readonly recovery: "Use a valid BCP 47 language code such as \"fr\", \"de\", or \"ja\".";
36
36
  }]>;
@@ -49,7 +49,7 @@ export const wikipediaGetSections = tool('wikipedia_get_sections', {
49
49
  },
50
50
  {
51
51
  reason: 'invalid_language',
52
- code: JsonRpcErrorCode.InvalidParams,
52
+ code: JsonRpcErrorCode.ValidationError,
53
53
  when: 'The language code is not a valid BCP 47 code.',
54
54
  recovery: 'Use a valid BCP 47 language code such as "fr", "de", or "ja".',
55
55
  },
@@ -1 +1 @@
1
- {"version":3,"file":"wikipedia-get-sections.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/wikipedia-get-sections.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAEhF,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,CAAC,wBAAwB,EAAE;IACjE,KAAK,EAAE,gCAAgC;IACvC,WAAW,EACT,oTAAoT;IACtT,WAAW,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE;IACxD,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,uDAAuD,CAAC;QACnF,QAAQ,EAAE,CAAC;aACR,MAAM,EAAE;aACR,OAAO,CAAC,IAAI,CAAC;aACb,QAAQ,CAAC,6EAA6E,CAAC;KAC3F,CAAC;IACF,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC;QACf,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,yCAAyC,CAAC;QACrE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,8CAA8C,CAAC;QACtF,QAAQ,EAAE,CAAC;aACR,KAAK,CACJ,CAAC;aACE,MAAM,CAAC;YACN,KAAK,EAAE,CAAC;iBACL,MAAM,EAAE;iBACR,QAAQ,CAAC,iEAAiE,CAAC;YAC9E,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,0DAA0D,CAAC;YACvF,KAAK,EAAE,CAAC,CAAC,M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AM,EAAE,CAAC,MAAM,EAAE,EAAE;QACjB,MAAM,KAAK,GAAa;YACtB,0BAA0B,MAAM,CAAC,KAAK,KAAK,MAAM,CAAC,QAAQ,GAAG;YAC7D,GAAG,MAAM,CAAC,cAAc,WAAW;gBACjC,CAAC,MAAM,CAAC,MAAM,IAAI,IAAI,CAAC,CAAC,CAAC,eAAe,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YAC/D,EAAE;SACH,CAAC;QACF,KAAK,MAAM,CAAC,IAAI,MAAM,CAAC,QAAQ,EAAE,CAAC;YAChC,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC;YACrD,KAAK,CAAC,IAAI,CAAC,GAAG,MAAM,GAAG,CAAC,CAAC,MAAM,OAAO,CAAC,CAAC,KAAK,cAAc,CAAC,CAAC,KAAK,YAAY,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC;QAC5F,CAAC;QACD,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":"wikipedia-get-sections.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/wikipedia-get-sections.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAEhF,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,CAAC,wBAAwB,EAAE;IACjE,KAAK,EAAE,gCAAgC;IACvC,WAAW,EACT,oTAA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K,GAAG,CAAC,CAAC,CAAC,CAAC;YACrD,KAAK,CAAC,IAAI,CAAC,GAAG,MAAM,GAAG,CAAC,CAAC,MAAM,OAAO,CAAC,CAAC,KAAK,cAAc,CAAC,CAAC,KAAK,YAAY,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC;QAC5F,CAAC;QACD,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACpD,CAAC;CACF,CAAC,CAAC"}
@@ -23,7 +23,7 @@ export declare const wikipediaGetSummary: import("@cyanheads/mcp-ts-core").ToolD
23
23
  readonly recovery: "Use wikipedia_search to discover the correct article title and try again.";
24
24
  }, {
25
25
  readonly reason: "invalid_language";
26
- readonly code: JsonRpcErrorCode.InvalidParams;
26
+ readonly code: JsonRpcErrorCode.ValidationError;
27
27
  readonly when: "The language code is not a valid BCP 47 code.";
28
28
  readonly recovery: "Use a valid BCP 47 language code such as \"fr\", \"de\", or \"ja\".";
29
29
  }]>;
@@ -45,7 +45,7 @@ export const wikipediaGetSummary = tool('wikipedia_get_summary', {
45
45
  },
46
46
  {
47
47
  reason: 'invalid_language',
48
- code: JsonRpcErrorCode.InvalidParams,
48
+ code: JsonRpcErrorCode.ValidationError,
49
49
  when: 'The language code is not a valid BCP 47 code.',
50
50
  recovery: 'Use a valid BCP 47 language code such as "fr", "de", or "ja".',
51
51
  },
@@ -1 +1 @@
1
- {"version":3,"file":"wikipedia-get-summary.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/wikipedia-get-summary.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAEhF,MAA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C;QACf,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAC3B,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":"wikipedia-get-summary.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/wikipedia-get-summary.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAEhF,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,CAAC,uBAAuB,EAAE;IAC/D,KAAK,EAAE,uBAAuB;IAC9B,WAAW,EACT,ghBAAghB;IAClhB,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,QAAQ,CAAC,oEAAoE,CAAC;QACjF,QAAQ,EAAE,CAAC;aACR,MAAM,EAAE;aACR,OAAO,CAAC,IAAI,CAAC;aACb,QAAQ,CAAC,6EAA6E,CAAC;KAC3F,CAAC;IACF,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC;QACf,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,+DAA+D,CAAC;QAC3F,SAAS,EAAE,CAAC;aACT,MAAM,EAAE;aACR,QAAQ,CACP,8OAA8O,CAC/O;QACH,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,kDAAkD,CAAC;QAC1F,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I,CAAC,IAAI,MAAM,CAAC,WAAW,GAAG,CAAC,CAAC;QAC9D,KAAK,CAAC,IAAI,CAAC,aAAa,MAAM,CAAC,SAAS,oBAAoB,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC/E,IAAI,MAAM,CAAC,MAAM,IAAI,IAAI;YAAE,KAAK,CAAC,IAAI,CAAC,gBAAgB,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC;QACvE,IAAI,MAAM,CAAC,aAAa;YAAE,KAAK,CAAC,IAAI,CAAC,qBAAqB,MAAM,CAAC,aAAa,EAAE,CAAC,CAAC;QAClF,IAAI,MAAM,CAAC,aAAa;YAAE,KAAK,CAAC,IAAI,CAAC,kBAAkB,MAAM,CAAC,aAAa,EAAE,CAAC,CAAC;QAC/E,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACf,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAC3B,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACpD,CAAC;CACF,CAAC,CAAC"}
@@ -30,12 +30,12 @@ export declare const wikipediaSearchNearby: import("@cyanheads/mcp-ts-core").Too
30
30
  readonly recovery: "Increase radius_meters or verify the coordinates are correct and retry.";
31
31
  }, {
32
32
  readonly reason: "invalid_coordinates";
33
- readonly code: JsonRpcErrorCode.InvalidParams;
33
+ readonly code: JsonRpcErrorCode.ValidationError;
34
34
  readonly when: "Latitude or longitude is outside valid WGS 84 range.";
35
35
  readonly recovery: "Latitude must be between −90 and 90; longitude between −180 and 180.";
36
36
  }, {
37
37
  readonly reason: "invalid_language";
38
- readonly code: JsonRpcErrorCode.InvalidParams;
38
+ readonly code: JsonRpcErrorCode.ValidationError;
39
39
  readonly when: "The language code is not a valid BCP 47 code.";
40
40
  readonly recovery: "Use a valid BCP 47 language code such as \"fr\", \"de\", or \"ja\".";
41
41
  }]>;
@@ -56,13 +56,13 @@ export const wikipediaSearchNearby = tool('wikipedia_search_nearby', {
56
56
  },
57
57
  {
58
58
  reason: 'invalid_coordinates',
59
- code: JsonRpcErrorCode.InvalidParams,
59
+ code: JsonRpcErrorCode.ValidationError,
60
60
  when: 'Latitude or longitude is outside valid WGS 84 range.',
61
61
  recovery: 'Latitude must be between −90 and 90; longitude between −180 and 180.',
62
62
  },
63
63
  {
64
64
  reason: 'invalid_language',
65
- code: JsonRpcErrorCode.InvalidParams,
65
+ code: JsonRpcErrorCode.ValidationError,
66
66
  when: 'The language code is not a valid BCP 47 code.',
67
67
  recovery: 'Use a valid BCP 47 language code such as "fr", "de", or "ja".',
68
68
  },
@@ -1 +1 @@
1
- {"version":3,"file":"wikipedia-search-nearby.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/wikipedia-search-nearby.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAEhF,MAAM,CAAC,MAAM,qBAAqB,GAAG,IAAI,CAAC,yBAAyB,EAAE;IACnE,KAAK,EAAE,yBAAyB;IAChC,WAAW,EACT,qXAAqX;IACvX,WAAW,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE;IACxD,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,wDAAwD,CAAC;QACvF,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,2DAA2D,CAAC;QAC3F,aAAa,EAAE,CAAC;aACb,MAAM,EAAE;aACR,GAAG,EAAE;aACL,GAAG,CAAC,CAAC,CAAC;aACN,OAAO,CA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AE,QAAQ,EAAE,CAAC,CAAC;QAEzE,OAAO;YACL,OAAO;YACP,aAAa,EAAE,OAAO,CAAC,MAAM;YAC7B,cAAc,EAAE,KAAK,CAAC,QAAQ;YAC9B,eAAe,EAAE,KAAK,CAAC,SAAS;YAChC,kBAAkB,EAAE,YAAY;YAChC,QAAQ;SACT,CAAC;IACJ,CAAC;IAED,MAAM,EAAE,CAAC,MAAM,EAAE,EAAE;QACjB,MAAM,KAAK,GAAa;YACtB,KAAK,MAAM,CAAC,aAAa,qBAAqB,MAAM,CAAC,cAAc,KAAK,MAAM,CAAC,eAAe,YAAY,MAAM,CAAC,kBAAkB,MAAM,MAAM,CAAC,QAAQ,KAAK;SAC9J,CAAC;QACF,KAAK,MAAM,IAAI,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;YAClC,KAAK,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;YAChC,KAAK,CAAC,IAAI,CACR,gBAAgB,IAAI,CAAC,MAAM,oBAAoB,IAAI,CAAC,eAAe,oBAAoB,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAC,SAAS,GAAG,CAC3H,CAAC;QACJ,CAAC;QACD,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":"wikipedia-search-nearby.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/wikipedia-search-nearby.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAEhF,MAAM,CAAC,MAAM,qBAAqB,GAAG,IAAI,CAAC,yB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K,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACpD,CAAC;CACF,CAAC,CAAC"}
@@ -25,7 +25,7 @@ export declare const wikipediaSearch: import("@cyanheads/mcp-ts-core").ToolDefin
25
25
  readonly recovery: "Broaden the query or try different keywords and search again.";
26
26
  }, {
27
27
  readonly reason: "invalid_language";
28
- readonly code: JsonRpcErrorCode.InvalidParams;
28
+ readonly code: JsonRpcErrorCode.ValidationError;
29
29
  readonly when: "The language code is not a valid BCP 47 code.";
30
30
  readonly recovery: "Use a valid BCP 47 language code such as \"fr\", \"de\", or \"ja\".";
31
31
  }]>;
@@ -46,7 +46,7 @@ export const wikipediaSearch = tool('wikipedia_search', {
46
46
  },
47
47
  {
48
48
  reason: 'invalid_language',
49
- code: JsonRpcErrorCode.InvalidParams,
49
+ code: JsonRpcErrorCode.ValidationError,
50
50
  when: 'The language code is not a valid BCP 47 code.',
51
51
  recovery: 'Use a valid BCP 47 language code such as "fr", "de", or "ja".',
52
52
  },
@@ -1 +1 @@
1
- {"version":3,"file":"wikipedia-search.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/wikipedia-search.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAEhF,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,CAAC,kBAAkB,EAAE;IACtD,KAAK,EAAE,kBAAkB;IACzB,WAAW,EACT,gVAAgV;IAClV,WAAW,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE;IACxD,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,oDAAoD,CAAC;QAChF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,EAAE,CAAC,CAAC;QAEnF,OAAO;YACL,OAAO;YACP,aAAa,EAAE,YAAY;YAC3B,UAAU,EAAE,KAAK,CAAC,KAAK;YACvB,QAAQ;SACT,CAAC;IACJ,CAAC;IAED,MAAM,EAAE,CAAC,MAAM,EAAE,EAAE;QACjB,MAAM,KAAK,GAAa;YACtB,KAAK,MAAM,CAAC,OAAO,CAAC,MAAM,OAAO,MAAM,CAAC,aAAa,mBAAmB,MAAM,CAAC,UAAU,MAAM,MAAM,CAAC,QAAQ,KAAK;SACpH,CAAC;QACF,KAAK,MAAM,IAAI,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;YAClC,KAAK,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;YAChC,KAAK,CAAC,IAAI,CAAC,gBAAgB,IAAI,CAAC,MAAM,iBAAiB,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC;YACzE,IAAI,IAAI,CAAC,OAAO;gBAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7C,CAAC;QACD,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":"wikipedia-search.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/wikipedia-search.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAEhF,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,CAAC,kBAAkB,EAAE;IACtD,KAAK,EAAE,kBAAkB;IACzB,WAAW,EACT,gVAAgV;IAClV,WAA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,mDAAmD,KAAK,CAAC,KAAK,IAAI,EAAE;aACvF,CACF,CAAC;QACJ,CAAC;QAED,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,iBAAiB,EAAE,EAAE,KAAK,EAAE,OAAO,CAAC,MAAM,EAAE,YAAY,EAAE,QAAQ,EAAE,CAAC,CAAC;QAEnF,OAAO;YACL,OAAO;YACP,aAAa,EAAE,YAAY;YAC3B,UAAU,EAAE,KAAK,CAAC,KAAK;YACvB,QAAQ;SACT,CAAC;IACJ,CAAC;IAED,MAAM,EAAE,CAAC,MAAM,EAAE,EAAE;QACjB,MAAM,KAAK,GAAa;YACtB,KAAK,MAAM,CAAC,OAAO,CAAC,MAAM,OAAO,MAAM,CAAC,aAAa,mBAAmB,MAAM,CAAC,UAAU,MAAM,MAAM,CAAC,QAAQ,KAAK;SACpH,CAAC;QACF,KAAK,MAAM,IAAI,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;YAClC,KAAK,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;YAChC,KAAK,CAAC,IAAI,CAAC,gBAAgB,IAAI,CAAC,MAAM,iBAAiB,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC;YACzE,IAAI,IAAI,CAAC,OAAO;gBAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7C,CAAC;QACD,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/wikipedia-mcp-server",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "Search Wikipedia articles, read summaries and full text, target sections, find nearby pages, and list language editions via MCP. STDIO or Streamable HTTP.",
5
5
  "mcpName": "io.github.cyanheads/wikipedia-mcp-server",
6
6
  "type": "module",
@@ -20,23 +20,22 @@
20
20
  "server.json"
21
21
  ],
22
22
  "scripts": {
23
- "build": "tsx scripts/build.ts",
24
- "rebuild": "tsx scripts/clean.ts && tsx scripts/build.ts",
25
- "clean": "tsx scripts/clean.ts",
26
- "devcheck": "tsx scripts/devcheck.ts",
23
+ "build": "bun run scripts/build.ts",
24
+ "rebuild": "bun run scripts/clean.ts && bun run build",
25
+ "clean": "bun run scripts/clean.ts",
26
+ "devcheck": "bun run scripts/devcheck.ts",
27
27
  "audit:refresh": "rm -f bun.lock && bun install && bun audit",
28
- "tree": "tsx scripts/tree.ts",
29
- "list-skills": "tsx scripts/list-skills.ts",
28
+ "tree": "bun run scripts/tree.ts",
29
+ "list-skills": "bun run scripts/list-skills.ts",
30
30
  "format": "biome check --write --unsafe .",
31
- "lint:mcp": "tsx scripts/lint-mcp.ts",
32
- "lint:packaging": "tsx scripts/lint-packaging.ts",
31
+ "lint:mcp": "bun run scripts/lint-mcp.ts",
32
+ "lint:packaging": "bun run scripts/lint-packaging.ts",
33
33
  "bundle": "bun run build && npx -y @anthropic-ai/mcpb pack . dist/wikipedia-mcp-server.mcpb",
34
- "changelog:build": "tsx scripts/build-changelog.ts",
35
- "changelog:check": "tsx scripts/build-changelog.ts --check",
36
- "test": "vitest run",
37
- "start": "node dist/index.js",
38
- "start:stdio": "MCP_TRANSPORT_TYPE=stdio node dist/index.js",
39
- "start:http": "MCP_TRANSPORT_TYPE=http node dist/index.js"
34
+ "changelog:build": "bun run scripts/build-changelog.ts",
35
+ "changelog:check": "bun run scripts/build-changelog.ts --check",
36
+ "test": "bunx vitest run",
37
+ "start:stdio": "MCP_TRANSPORT_TYPE=stdio bun ./dist/index.js",
38
+ "start:http": "MCP_TRANSPORT_TYPE=http bun ./dist/index.js"
40
39
  },
41
40
  "keywords": [
42
41
  "mcp",
@@ -58,6 +57,16 @@
58
57
  "url": "https://github.com/cyanheads/wikipedia-mcp-server/issues"
59
58
  },
60
59
  "author": "cyanheads <casey@caseyjhand.com> (https://github.com/cyanheads/wikipedia-mcp-server#readme)",
60
+ "funding": [
61
+ {
62
+ "type": "github",
63
+ "url": "https://github.com/sponsors/cyanheads"
64
+ },
65
+ {
66
+ "type": "buy_me_a_coffee",
67
+ "url": "https://www.buymeacoffee.com/cyanheads"
68
+ }
69
+ ],
61
70
  "license": "Apache-2.0",
62
71
  "packageManager": "bun@1.3.11",
63
72
  "engines": {
@@ -68,19 +77,18 @@
68
77
  "access": "public"
69
78
  },
70
79
  "dependencies": {
71
- "@cyanheads/mcp-ts-core": "^0.9.9",
80
+ "@cyanheads/mcp-ts-core": "^0.9.13",
72
81
  "pino-pretty": "^13.1.3",
73
- "wtf_wikipedia": "^10.4.1",
82
+ "wtf_wikipedia": "^10.4.2",
74
83
  "zod": "^4.4.3"
75
84
  },
76
85
  "devDependencies": {
77
- "@biomejs/biome": "^2.4.7",
78
- "@types/node": "^25.6.0",
86
+ "@biomejs/biome": "^2.4.16",
87
+ "@types/node": "^25.9.1",
79
88
  "depcheck": "^1.4.7",
80
89
  "ignore": "^7.0.5",
81
- "tsc-alias": "^1.8.16",
82
- "tsx": "^4.19.0",
83
- "typescript": "^5.9.3",
84
- "vitest": "^4.1.0"
90
+ "tsc-alias": "^1.8.17",
91
+ "typescript": "^6.0.3",
92
+ "vitest": "^4.1.7"
85
93
  }
86
94
  }
package/server.json CHANGED
@@ -6,14 +6,14 @@
6
6
  "url": "https://github.com/cyanheads/wikipedia-mcp-server",
7
7
  "source": "github"
8
8
  },
9
- "version": "0.1.3",
9
+ "version": "0.1.5",
10
10
  "packages": [
11
11
  {
12
12
  "registryType": "npm",
13
13
  "registryBaseUrl": "https://registry.npmjs.org",
14
14
  "identifier": "@cyanheads/wikipedia-mcp-server",
15
15
  "runtimeHint": "bun",
16
- "version": "0.1.3",
16
+ "version": "0.1.5",
17
17
  "packageArguments": [
18
18
  {
19
19
  "type": "positional",
@@ -42,7 +42,7 @@
42
42
  "registryBaseUrl": "https://registry.npmjs.org",
43
43
  "identifier": "@cyanheads/wikipedia-mcp-server",
44
44
  "runtimeHint": "bun",
45
- "version": "0.1.3",
45
+ "version": "0.1.5",
46
46
  "packageArguments": [
47
47
  {
48
48
  "type": "positional",