@cyanheads/wikipedia-mcp-server 0.1.4 → 0.1.6
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 +19 -39
- package/CLAUDE.md +19 -39
- package/README.md +2 -2
- package/changelog/0.1.x/0.1.5.md +26 -0
- package/changelog/0.1.x/0.1.6.md +18 -0
- package/changelog/template.md +9 -1
- package/dist/config/server-config.js +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/mcp-server/tools/definitions/index.d.ts +24 -30
- package/dist/mcp-server/tools/definitions/index.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/wikipedia-get-article.tool.d.ts +3 -3
- package/dist/mcp-server/tools/definitions/wikipedia-get-article.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/wikipedia-get-article.tool.js +2 -2
- package/dist/mcp-server/tools/definitions/wikipedia-get-article.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/wikipedia-get-languages.tool.d.ts +2 -2
- package/dist/mcp-server/tools/definitions/wikipedia-get-languages.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/wikipedia-get-languages.tool.js +1 -1
- package/dist/mcp-server/tools/definitions/wikipedia-get-languages.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/wikipedia-get-sections.tool.d.ts +2 -2
- package/dist/mcp-server/tools/definitions/wikipedia-get-sections.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/wikipedia-get-sections.tool.js +1 -1
- package/dist/mcp-server/tools/definitions/wikipedia-get-sections.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/wikipedia-get-summary.tool.d.ts +2 -2
- package/dist/mcp-server/tools/definitions/wikipedia-get-summary.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/wikipedia-get-summary.tool.js +1 -1
- package/dist/mcp-server/tools/definitions/wikipedia-get-summary.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/wikipedia-search-nearby.tool.d.ts +9 -12
- package/dist/mcp-server/tools/definitions/wikipedia-search-nearby.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/wikipedia-search-nearby.tool.js +23 -31
- package/dist/mcp-server/tools/definitions/wikipedia-search-nearby.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/wikipedia-search.tool.d.ts +6 -9
- package/dist/mcp-server/tools/definitions/wikipedia-search.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/wikipedia-search.tool.js +16 -23
- package/dist/mcp-server/tools/definitions/wikipedia-search.tool.js.map +1 -1
- package/package.json +11 -9
- 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.
|
|
5
|
-
**Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.9.
|
|
4
|
+
**Version:** 0.1.6
|
|
5
|
+
**Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.9.16`
|
|
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
|
|
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,9 +292,10 @@ 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
|
|
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
|
-
| `npm run format` | Auto-fix formatting |
|
|
297
|
+
| `npm run format` | Auto-fix formatting (safe fixes only) |
|
|
298
|
+
| `npm run format:unsafe` | Also apply Biome's unsafe autofixes — review the diff; they can change behavior |
|
|
291
299
|
| `npm test` | Run tests |
|
|
292
300
|
| `npm run start:stdio` | Production mode (stdio) |
|
|
293
301
|
| `npm run start:http` | Production mode (HTTP) |
|
|
@@ -303,40 +311,7 @@ When you complete a skill's checklist, check the boxes and add a completion time
|
|
|
303
311
|
|
|
304
312
|
**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
313
|
|
|
306
|
-
**README install badges
|
|
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
|
-
[](https://github.com/<OWNER>/<REPO>/releases/latest/download/<PACKAGE_NAME>.mcpb)
|
|
317
|
-
[](https://cursor.com/en/install-mcp?name=<PACKAGE_NAME>&config=<BASE64_CONFIG>)
|
|
318
|
-
[](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.
|
|
314
|
+
**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
315
|
|
|
341
316
|
---
|
|
342
317
|
|
|
@@ -359,6 +334,8 @@ security: false # optional — true flags security fi
|
|
|
359
334
|
|
|
360
335
|
`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
336
|
|
|
337
|
+
`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.
|
|
338
|
+
|
|
362
339
|
**Section order** (Keep a Changelog): Added, Changed, Deprecated, Removed, Fixed, Security. Include only sections with entries — don't ship empty headers.
|
|
363
340
|
|
|
364
341
|
**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 +368,7 @@ import { getMyService } from '@/services/my-domain/my-service.js';
|
|
|
391
368
|
- [ ] If wrapping external API: tests include at least one sparse payload case with omitted upstream fields
|
|
392
369
|
- [ ] Registered in `createApp()` arrays (directly or via barrel exports)
|
|
393
370
|
- [ ] Tests use `createMockContext()` from `@cyanheads/mcp-ts-core/testing`
|
|
371
|
+
- [ ] `.codex-plugin/plugin.json` populated — `name`, `version`, `description`, `repository`, `license` from `package.json`; `interface.displayName` = package name; `interface.shortDescription` from `package.json` description
|
|
372
|
+
- [ ] `.codex-plugin/mcp.json` updated — server name key matches `package.json` name; env vars added for any required API keys
|
|
373
|
+
- [ ] `.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
374
|
- [ ] `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.
|
|
5
|
-
**Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.9.
|
|
4
|
+
**Version:** 0.1.6
|
|
5
|
+
**Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.9.16`
|
|
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
|
|
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,9 +292,10 @@ 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
|
|
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
|
-
| `npm run format` | Auto-fix formatting |
|
|
297
|
+
| `npm run format` | Auto-fix formatting (safe fixes only) |
|
|
298
|
+
| `npm run format:unsafe` | Also apply Biome's unsafe autofixes — review the diff; they can change behavior |
|
|
291
299
|
| `npm test` | Run tests |
|
|
292
300
|
| `npm run start:stdio` | Production mode (stdio) |
|
|
293
301
|
| `npm run start:http` | Production mode (HTTP) |
|
|
@@ -303,40 +311,7 @@ When you complete a skill's checklist, check the boxes and add a completion time
|
|
|
303
311
|
|
|
304
312
|
**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
313
|
|
|
306
|
-
**README install badges
|
|
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
|
-
[](https://github.com/<OWNER>/<REPO>/releases/latest/download/<PACKAGE_NAME>.mcpb)
|
|
317
|
-
[](https://cursor.com/en/install-mcp?name=<PACKAGE_NAME>&config=<BASE64_CONFIG>)
|
|
318
|
-
[](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.
|
|
314
|
+
**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
315
|
|
|
341
316
|
---
|
|
342
317
|
|
|
@@ -359,6 +334,8 @@ security: false # optional — true flags security fi
|
|
|
359
334
|
|
|
360
335
|
`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
336
|
|
|
337
|
+
`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.
|
|
338
|
+
|
|
362
339
|
**Section order** (Keep a Changelog): Added, Changed, Deprecated, Removed, Fixed, Security. Include only sections with entries — don't ship empty headers.
|
|
363
340
|
|
|
364
341
|
**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 +368,7 @@ import { getMyService } from '@/services/my-domain/my-service.js';
|
|
|
391
368
|
- [ ] If wrapping external API: tests include at least one sparse payload case with omitted upstream fields
|
|
392
369
|
- [ ] Registered in `createApp()` arrays (directly or via barrel exports)
|
|
393
370
|
- [ ] Tests use `createMockContext()` from `@cyanheads/mcp-ts-core/testing`
|
|
371
|
+
- [ ] `.codex-plugin/plugin.json` populated — `name`, `version`, `description`, `repository`, `license` from `package.json`; `interface.displayName` = package name; `interface.shortDescription` from `package.json` description
|
|
372
|
+
- [ ] `.codex-plugin/mcp.json` updated — server name key matches `package.json` name; env vars added for any required API keys
|
|
373
|
+
- [ ] `.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
374
|
- [ ] `npm run devcheck` passes
|
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
<div align="center">
|
|
9
9
|
|
|
10
|
-
[](./CHANGELOG.md) [](./LICENSE) [](https://github.com/users/cyanheads/packages/container/package/wikipedia-mcp-server) [](https://modelcontextprotocol.io/) [](https://www.npmjs.com/package/@cyanheads/wikipedia-mcp-server) [](https://www.typescriptlang.org/) [](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.
|
|
220
|
+
| `WIKIPEDIA_USER_AGENT` | User-Agent header sent with every Wikimedia API request. Customize for your deployment. | `wikipedia-mcp-server/0.1.6 (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,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
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
summary: "enrichment on wikipedia_search and wikipedia_search_nearby: query/filter echoes, result totals, and empty-result guidance in a typed enrichment block reaching both structuredContent and content[]; mcp-ts-core ^0.9.13 → ^0.9.16"
|
|
3
|
+
breaking: false
|
|
4
|
+
security: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# 0.1.6 — 2026-05-30
|
|
8
|
+
|
|
9
|
+
## Changed
|
|
10
|
+
|
|
11
|
+
- **`wikipedia_search`** — agent-facing enrichment block added: `effectiveQuery` echoes the query sent, `totalCount` reports total matching results in Wikipedia, `notice` surfaces empty-result guidance when no articles matched. `total_results` and `query_used` removed from `output` (values now in `enrichment`). Empty-result condition no longer throws; handler returns with enrichment notice instead.
|
|
12
|
+
- **`wikipedia_search_nearby`** — agent-facing enrichment block added: `queryLatitude`, `queryLongitude`, `radiusMetersUsed` echo search parameters, `totalResults` reports the result count, `notice` surfaces guidance when no geotagged articles were found. `total_results`, `query_latitude`, `query_longitude`, `radius_meters_used` removed from `output` (values now in `enrichment` under camelCase keys). Empty-result condition no longer throws.
|
|
13
|
+
- **`@cyanheads/mcp-ts-core`** `^0.9.13 → ^0.9.16`
|
|
14
|
+
|
|
15
|
+
## structuredContent
|
|
16
|
+
|
|
17
|
+
- `wikipedia_search`: `total_results` → `enrichment.totalCount`, `query_used` → `enrichment.effectiveQuery` (values preserved in both channels; keys renamed)
|
|
18
|
+
- `wikipedia_search_nearby`: `total_results` → `enrichment.totalResults`, `query_latitude` → `enrichment.queryLatitude`, `query_longitude` → `enrichment.queryLongitude`, `radius_meters_used` → `enrichment.radiusMetersUsed` (values preserved in both channels; keys renamed and moved to enrichment)
|
package/changelog/template.md
CHANGED
|
@@ -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
|
|
@@ -35,7 +43,7 @@ security: false
|
|
|
35
43
|
name the symbol, state what changed, stop. Use a second sentence only when
|
|
36
44
|
it carries weight. If a bullet feels long, it is.
|
|
37
45
|
|
|
38
|
-
Cut: mechanism walkthroughs (those belong in JSDoc, AGENTS.md, or the
|
|
46
|
+
Cut: mechanism walkthroughs (those belong in JSDoc, CLAUDE.md/AGENTS.md, or the
|
|
39
47
|
relevant skill), ceremonial framings ("This release introduces…",
|
|
40
48
|
backwards-compat paragraphs), file-by-file test enumerations, internal
|
|
41
49
|
implementation notes. Prefer code/symbol names over English re-explanations.
|
|
@@ -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.
|
|
14
|
+
.default('wikipedia-mcp-server/0.1.6 (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,15 +20,15 @@ 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.
|
|
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.
|
|
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
|
-
}]> | import("@cyanheads/mcp-ts-core").ToolDefinition<import("zod").ZodObject<{
|
|
31
|
+
}], undefined> | import("@cyanheads/mcp-ts-core").ToolDefinition<import("zod").ZodObject<{
|
|
32
32
|
title: import("zod").ZodString;
|
|
33
33
|
language: import("zod").ZodDefault<import("zod").ZodString>;
|
|
34
34
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
@@ -52,10 +52,10 @@ 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.
|
|
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
|
-
}]> | import("@cyanheads/mcp-ts-core").ToolDefinition<import("zod").ZodObject<{
|
|
58
|
+
}], undefined> | import("@cyanheads/mcp-ts-core").ToolDefinition<import("zod").ZodObject<{
|
|
59
59
|
title: import("zod").ZodString;
|
|
60
60
|
language: import("zod").ZodDefault<import("zod").ZodString>;
|
|
61
61
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
@@ -81,10 +81,10 @@ 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.
|
|
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
|
-
}]> | import("@cyanheads/mcp-ts-core").ToolDefinition<import("zod").ZodObject<{
|
|
87
|
+
}], undefined> | import("@cyanheads/mcp-ts-core").ToolDefinition<import("zod").ZodObject<{
|
|
88
88
|
title: import("zod").ZodString;
|
|
89
89
|
language: import("zod").ZodDefault<import("zod").ZodString>;
|
|
90
90
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
@@ -103,10 +103,10 @@ 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.
|
|
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
|
-
}]> | import("@cyanheads/mcp-ts-core").ToolDefinition<import("zod").ZodObject<{
|
|
109
|
+
}], undefined> | import("@cyanheads/mcp-ts-core").ToolDefinition<import("zod").ZodObject<{
|
|
110
110
|
query: import("zod").ZodString;
|
|
111
111
|
limit: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
112
112
|
language: import("zod").ZodDefault<import("zod").ZodString>;
|
|
@@ -117,20 +117,17 @@ export declare const allToolDefinitions: (import("@cyanheads/mcp-ts-core").ToolD
|
|
|
117
117
|
snippet: import("zod").ZodString;
|
|
118
118
|
wordcount: import("zod").ZodNumber;
|
|
119
119
|
}, import("zod/v4/core").$strip>>;
|
|
120
|
-
total_results: import("zod").ZodNumber;
|
|
121
|
-
query_used: import("zod").ZodString;
|
|
122
120
|
language: import("zod").ZodString;
|
|
123
121
|
}, import("zod/v4/core").$strip>, readonly [{
|
|
124
|
-
readonly reason: "no_results";
|
|
125
|
-
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.NotFound;
|
|
126
|
-
readonly when: "Search returned zero results for the query.";
|
|
127
|
-
readonly recovery: "Broaden the query or try different keywords and search again.";
|
|
128
|
-
}, {
|
|
129
122
|
readonly reason: "invalid_language";
|
|
130
|
-
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.
|
|
123
|
+
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
|
|
131
124
|
readonly when: "The language code is not a valid BCP 47 code.";
|
|
132
125
|
readonly recovery: "Use a valid BCP 47 language code such as \"fr\", \"de\", or \"ja\".";
|
|
133
|
-
}]
|
|
126
|
+
}], {
|
|
127
|
+
readonly effectiveQuery: import("zod").ZodString;
|
|
128
|
+
readonly totalCount: import("zod").ZodNumber;
|
|
129
|
+
readonly notice: import("zod").ZodOptional<import("zod").ZodString>;
|
|
130
|
+
}> | import("@cyanheads/mcp-ts-core").ToolDefinition<import("zod").ZodObject<{
|
|
134
131
|
latitude: import("zod").ZodNumber;
|
|
135
132
|
longitude: import("zod").ZodNumber;
|
|
136
133
|
radius_meters: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
@@ -144,25 +141,22 @@ export declare const allToolDefinitions: (import("@cyanheads/mcp-ts-core").ToolD
|
|
|
144
141
|
longitude: import("zod").ZodNumber;
|
|
145
142
|
distance_meters: import("zod").ZodNumber;
|
|
146
143
|
}, import("zod/v4/core").$strip>>;
|
|
147
|
-
total_results: import("zod").ZodNumber;
|
|
148
|
-
query_latitude: import("zod").ZodNumber;
|
|
149
|
-
query_longitude: import("zod").ZodNumber;
|
|
150
|
-
radius_meters_used: import("zod").ZodNumber;
|
|
151
144
|
language: import("zod").ZodString;
|
|
152
145
|
}, import("zod/v4/core").$strip>, readonly [{
|
|
153
|
-
readonly reason: "no_results";
|
|
154
|
-
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.NotFound;
|
|
155
|
-
readonly when: "No geotagged articles found within the search radius.";
|
|
156
|
-
readonly recovery: "Increase radius_meters or verify the coordinates are correct and retry.";
|
|
157
|
-
}, {
|
|
158
146
|
readonly reason: "invalid_coordinates";
|
|
159
|
-
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.
|
|
147
|
+
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
|
|
160
148
|
readonly when: "Latitude or longitude is outside valid WGS 84 range.";
|
|
161
149
|
readonly recovery: "Latitude must be between −90 and 90; longitude between −180 and 180.";
|
|
162
150
|
}, {
|
|
163
151
|
readonly reason: "invalid_language";
|
|
164
|
-
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.
|
|
152
|
+
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
|
|
165
153
|
readonly when: "The language code is not a valid BCP 47 code.";
|
|
166
154
|
readonly recovery: "Use a valid BCP 47 language code such as \"fr\", \"de\", or \"ja\".";
|
|
167
|
-
}]
|
|
155
|
+
}], {
|
|
156
|
+
readonly queryLatitude: import("zod").ZodNumber;
|
|
157
|
+
readonly queryLongitude: import("zod").ZodNumber;
|
|
158
|
+
readonly radiusMetersUsed: import("zod").ZodNumber;
|
|
159
|
+
readonly totalResults: import("zod").ZodNumber;
|
|
160
|
+
readonly notice: import("zod").ZodOptional<import("zod").ZodString>;
|
|
161
|
+
}>)[];
|
|
168
162
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AASH,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AASH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAO9B,CAAC"}
|
|
@@ -22,13 +22,13 @@ 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.
|
|
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.
|
|
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
|
+
}], undefined>;
|
|
34
34
|
//# sourceMappingURL=wikipedia-get-article.tool.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wikipedia-get-article.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/wikipedia-get-article.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAY,MAAM,+BAA+B,CAAC;AAG3E,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"wikipedia-get-article.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/wikipedia-get-article.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAY,MAAM,+BAA+B,CAAC;AAG3E,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;cAkK9B,CAAC"}
|
|
@@ -45,13 +45,13 @@ export const wikipediaGetArticle = tool('wikipedia_get_article', {
|
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
47
|
reason: 'invalid_section',
|
|
48
|
-
code: JsonRpcErrorCode.
|
|
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.
|
|
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,CACxI;QACH,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,yBAAyB,CAAC;QACrD,MAAM,EAAE,CAAC;aACN,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CAAC,gEAAgE,CAAC;QAC7E,OAAO,EAAE,CAAC;aACP,MAAM,EAAE;aACR,QAAQ,CAAC,0EAA0E,CAAC;QACvF,aAAa,EAAE,CAAC;aACb,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CAAC,+EAA+E,CAAC;QAC5F,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,4CAA4C,CAAC;QAC/E,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC;KAC3D,CAAC;IAEF,MAAM,EAAE;QACN;YACE,MAAM,EAAE,WAAW;YACnB,IAAI,EAAE,gBAAgB,CAAC,QAAQ;YAC/B,IAAI,EAAE,kDAAkD;YACxD,QAAQ,EAAE,2EAA2E;SACtF;QACD;YACE,MAAM,EAAE,iBAAiB;YACzB,IAAI,EAAE,gBAAgB,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,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,CACxI;QACH,QAAQ,EAAE,CAAC;aACR,MAAM,EAAE;aACR,OAAO,CAAC,IAAI,CAAC;aACb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AK,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"}
|
|
@@ -28,8 +28,8 @@ 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.
|
|
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
|
+
}], undefined>;
|
|
35
35
|
//# sourceMappingURL=wikipedia-get-languages.tool.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wikipedia-get-languages.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/wikipedia-get-languages.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAY,MAAM,+BAA+B,CAAC;AAG3E,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"wikipedia-get-languages.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/wikipedia-get-languages.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAY,MAAM,+BAA+B,CAAC;AAG3E,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;cAqHhC,CAAC"}
|
|
@@ -45,7 +45,7 @@ export const wikipediaGetLanguages = tool('wikipedia_get_languages', {
|
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
47
|
reason: 'invalid_language',
|
|
48
|
-
code: JsonRpcErrorCode.
|
|
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/defin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eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,oDAAoD,CAAC;KAC3F,CAAC;IAEF,MAAM,EAAE;QACN;YACE,MAAM,EAAE,WAAW;YACnB,IAAI,EAAE,gBAAgB,CAAC,QAAQ;YAC/B,IAAI,EAAE,sEAAsE;YAC5E,QAAQ,EAAE,2EAA2E;SACtF;QACD;YACE,MAAM,EAAE,oBAAoB;YAC5B,IAAI,EAAE,gBAAgB,CAAC,QAAQ;YAC/B,IAAI,EAAE,oDAAoD;YAC1D,QAAQ,EAAE,yEAAyE;SACpF;QACD;YACE,MAAM,EAAE,kBAAkB;YAC1B,IAAI,EAAE,gBAAgB,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,CA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AAK,CAAC,KAAK,EAAE,KAAK,EAAE,SAAS,CAAC,MAAM,EAAE,CAAC,CAAC;QAExF,OAAO;YACL,YAAY,EAAE,KAAK,CAAC,KAAK;YACzB,eAAe,EAAE,QAAQ;YACzB,SAAS,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;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,8 +30,8 @@ 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.
|
|
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
|
+
}], undefined>;
|
|
37
37
|
//# sourceMappingURL=wikipedia-get-sections.tool.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wikipedia-get-sections.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/wikipedia-get-sections.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAY,MAAM,+BAA+B,CAAC;AAG3E,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"wikipedia-get-sections.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/wikipedia-get-sections.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAY,MAAM,+BAA+B,CAAC;AAG3E,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAuH/B,CAAC"}
|
|
@@ -49,7 +49,7 @@ export const wikipediaGetSections = tool('wikipedia_get_sections', {
|
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
reason: 'invalid_language',
|
|
52
|
-
code: JsonRpcErrorCode.
|
|
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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AAC,wEAAwE,CAAC;QACrF,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,0CAA0C,CAAC;QAC/E,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC;KAC3D,CAAC;IAEF,MAAM,EAAE;QACN;YACE,MAAM,EAAE,WAAW;YACnB,IAAI,EAAE,gBAAgB,CAAC,QAAQ;YAC/B,IAAI,EAAE,kDAAkD;YACxD,QAAQ,EAAE,2EAA2E;SACtF;QACD;YACE,MAAM,EAAE,aAAa;YACrB,IAAI,EAAE,gBAAgB,CAAC,QAAQ;YAC/B,IAAI,EAAE,kEAAkE;YACxE,QAAQ,EAAE,iFAAiF;SAC5F;QACD;YACE,MAAM,EAAE,kBAAkB;YAC1B,IAAI,EAAE,gBAAgB,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,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,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AI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACpD,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -23,8 +23,8 @@ 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.
|
|
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
|
+
}], undefined>;
|
|
30
30
|
//# sourceMappingURL=wikipedia-get-summary.tool.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wikipedia-get-summary.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/wikipedia-get-summary.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAY,MAAM,+BAA+B,CAAC;AAG3E,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"wikipedia-get-summary.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/wikipedia-get-summary.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAY,MAAM,+BAA+B,CAAC;AAG3E,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;cA8G9B,CAAC"}
|
|
@@ -45,7 +45,7 @@ export const wikipediaGetSummary = tool('wikipedia_get_summary', {
|
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
47
|
reason: 'invalid_language',
|
|
48
|
-
code: JsonRpcErrorCode.
|
|
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,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,aAAa,EAAE,CAAC;aACb,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CACP,gGAAgG,CACjG;QACH,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,2CAA2C,CAAC;QACxF,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,kCAAkC,CAAC;QAChE,aAAa,EAAE,CAAC;aACb,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CAAC,mDAAmD,CAAC;QAChE,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC;KAC3D,CAAC;IAEF,MAAM,EAAE;QACN;YACE,MAAM,EAAE,WAAW;YACnB,IAAI,EAAE,gBAAgB,CAAC,QAAQ;YAC/B,IAAI,EAAE,kDAAkD;YACxD,QAAQ,EAAE,2EAA2E;SACtF;QACD;YACE,MAAM,EAAE,kBAAkB;YAC1B,IAAI,EAAE,gBAAgB,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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earby: import("@cyanheads/mcp-ts-core").Too
|
|
|
18
18
|
longitude: z.ZodNumber;
|
|
19
19
|
distance_meters: z.ZodNumber;
|
|
20
20
|
}, z.core.$strip>>;
|
|
21
|
-
total_results: z.ZodNumber;
|
|
22
|
-
query_latitude: z.ZodNumber;
|
|
23
|
-
query_longitude: z.ZodNumber;
|
|
24
|
-
radius_meters_used: z.ZodNumber;
|
|
25
21
|
language: z.ZodString;
|
|
26
22
|
}, z.core.$strip>, readonly [{
|
|
27
|
-
readonly reason: "no_results";
|
|
28
|
-
readonly code: JsonRpcErrorCode.NotFound;
|
|
29
|
-
readonly when: "No geotagged articles found within the search radius.";
|
|
30
|
-
readonly recovery: "Increase radius_meters or verify the coordinates are correct and retry.";
|
|
31
|
-
}, {
|
|
32
23
|
readonly reason: "invalid_coordinates";
|
|
33
|
-
readonly code: JsonRpcErrorCode.
|
|
24
|
+
readonly code: JsonRpcErrorCode.ValidationError;
|
|
34
25
|
readonly when: "Latitude or longitude is outside valid WGS 84 range.";
|
|
35
26
|
readonly recovery: "Latitude must be between −90 and 90; longitude between −180 and 180.";
|
|
36
27
|
}, {
|
|
37
28
|
readonly reason: "invalid_language";
|
|
38
|
-
readonly code: JsonRpcErrorCode.
|
|
29
|
+
readonly code: JsonRpcErrorCode.ValidationError;
|
|
39
30
|
readonly when: "The language code is not a valid BCP 47 code.";
|
|
40
31
|
readonly recovery: "Use a valid BCP 47 language code such as \"fr\", \"de\", or \"ja\".";
|
|
41
|
-
}]
|
|
32
|
+
}], {
|
|
33
|
+
readonly queryLatitude: z.ZodNumber;
|
|
34
|
+
readonly queryLongitude: z.ZodNumber;
|
|
35
|
+
readonly radiusMetersUsed: z.ZodNumber;
|
|
36
|
+
readonly totalResults: z.ZodNumber;
|
|
37
|
+
readonly notice: z.ZodOptional<z.ZodString>;
|
|
38
|
+
}>;
|
|
42
39
|
//# sourceMappingURL=wikipedia-search-nearby.tool.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wikipedia-search-nearby.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/wikipedia-search-nearby.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAGjE,eAAO,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"wikipedia-search-nearby.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/wikipedia-search-nearby.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAGjE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwJhC,CAAC"}
|
|
@@ -41,28 +41,30 @@ export const wikipediaSearchNearby = tool('wikipedia_search_nearby', {
|
|
|
41
41
|
})
|
|
42
42
|
.describe('A single geotagged article result.'))
|
|
43
43
|
.describe('Geotagged articles sorted ascending by distance_meters.'),
|
|
44
|
-
total_results: z.number().describe('Number of results returned.'),
|
|
45
|
-
query_latitude: z.number().describe('Latitude used for the search.'),
|
|
46
|
-
query_longitude: z.number().describe('Longitude used for the search.'),
|
|
47
|
-
radius_meters_used: z.number().describe('Radius in meters used for the search.'),
|
|
48
44
|
language: z.string().describe('Language edition queried.'),
|
|
49
45
|
}),
|
|
46
|
+
// Agent-facing context — echoes the search parameters and total match count, plus
|
|
47
|
+
// an optional notice when nothing matched. Reaches both structuredContent and content[].
|
|
48
|
+
enrichment: {
|
|
49
|
+
queryLatitude: z.number().describe('Latitude used for the search.'),
|
|
50
|
+
queryLongitude: z.number().describe('Longitude used for the search.'),
|
|
51
|
+
radiusMetersUsed: z.number().describe('Radius in meters used for the search.'),
|
|
52
|
+
totalResults: z.number().describe('Number of results returned.'),
|
|
53
|
+
notice: z
|
|
54
|
+
.string()
|
|
55
|
+
.optional()
|
|
56
|
+
.describe('Guidance when no geotagged articles were found — e.g. increase radius. Absent when results are returned.'),
|
|
57
|
+
},
|
|
50
58
|
errors: [
|
|
51
|
-
{
|
|
52
|
-
reason: 'no_results',
|
|
53
|
-
code: JsonRpcErrorCode.NotFound,
|
|
54
|
-
when: 'No geotagged articles found within the search radius.',
|
|
55
|
-
recovery: 'Increase radius_meters or verify the coordinates are correct and retry.',
|
|
56
|
-
},
|
|
57
59
|
{
|
|
58
60
|
reason: 'invalid_coordinates',
|
|
59
|
-
code: JsonRpcErrorCode.
|
|
61
|
+
code: JsonRpcErrorCode.ValidationError,
|
|
60
62
|
when: 'Latitude or longitude is outside valid WGS 84 range.',
|
|
61
63
|
recovery: 'Latitude must be between −90 and 90; longitude between −180 and 180.',
|
|
62
64
|
},
|
|
63
65
|
{
|
|
64
66
|
reason: 'invalid_language',
|
|
65
|
-
code: JsonRpcErrorCode.
|
|
67
|
+
code: JsonRpcErrorCode.ValidationError,
|
|
66
68
|
when: 'The language code is not a valid BCP 47 code.',
|
|
67
69
|
recovery: 'Use a valid BCP 47 language code such as "fr", "de", or "ja".',
|
|
68
70
|
},
|
|
@@ -93,30 +95,20 @@ export const wikipediaSearchNearby = tool('wikipedia_search_nearby', {
|
|
|
93
95
|
});
|
|
94
96
|
const svc = getWikipediaService();
|
|
95
97
|
const { results } = await svc.searchNearby(input.latitude, input.longitude, radiusMeters, limit, language, ctx);
|
|
98
|
+
ctx.enrich({
|
|
99
|
+
queryLatitude: input.latitude,
|
|
100
|
+
queryLongitude: input.longitude,
|
|
101
|
+
radiusMetersUsed: radiusMeters,
|
|
102
|
+
totalResults: results.length,
|
|
103
|
+
});
|
|
96
104
|
if (results.length === 0) {
|
|
97
|
-
|
|
98
|
-
latitude: input.latitude,
|
|
99
|
-
longitude: input.longitude,
|
|
100
|
-
radiusMeters,
|
|
101
|
-
recovery: {
|
|
102
|
-
hint: `Increase radius_meters beyond ${radiusMeters} or verify the coordinates are correct.`,
|
|
103
|
-
},
|
|
104
|
-
});
|
|
105
|
+
ctx.enrich.notice(`No geotagged Wikipedia articles found within ${radiusMeters}m of (${input.latitude}, ${input.longitude}). Try increasing radius_meters or verify the coordinates are correct.`);
|
|
105
106
|
}
|
|
106
107
|
ctx.log.info('Geo search complete', { count: results.length, language });
|
|
107
|
-
return {
|
|
108
|
-
results,
|
|
109
|
-
total_results: results.length,
|
|
110
|
-
query_latitude: input.latitude,
|
|
111
|
-
query_longitude: input.longitude,
|
|
112
|
-
radius_meters_used: radiusMeters,
|
|
113
|
-
language,
|
|
114
|
-
};
|
|
108
|
+
return { results, language };
|
|
115
109
|
},
|
|
116
110
|
format: (result) => {
|
|
117
|
-
const lines = [
|
|
118
|
-
`**${result.total_results} articles** near (${result.query_latitude}, ${result.query_longitude}) within ${result.radius_meters_used}m (${result.language})\n`,
|
|
119
|
-
];
|
|
111
|
+
const lines = [`**${result.results.length} articles** (${result.language})\n`];
|
|
120
112
|
for (const item of result.results) {
|
|
121
113
|
lines.push(`### ${item.title}`);
|
|
122
114
|
lines.push(`**Page ID:** ${item.pageid} | **Distance:** ${item.distance_meters}m | **Coords:** (${item.latitude}, ${item.longitude})`);
|
|
@@ -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,E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E,
|
|
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,CAAC,IAAI,CAAC;aACb,QAAQ,CAAC,gFAAgF,CAAC;QAC7F,KAAK,EAAE,CAAC;aACL,MAAM,EAAE;aACR,GAAG,EAAE;aACL,GAAG,CAAC,CAAC,CAAC;aACN,OAAO,CAAC,EAAE,CAAC;aACX,QAAQ,CACP,uFAAuF,CACxF;QACH,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,OAAO,EAAE,CAAC;aACP,KAAK,CACJ,CAAC;aACE,MAAM,CAAC;YACN,KAAK,EAAE,CAAC,CAA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AAI,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"}
|
|
@@ -15,18 +15,15 @@ export declare const wikipediaSearch: import("@cyanheads/mcp-ts-core").ToolDefin
|
|
|
15
15
|
snippet: z.ZodString;
|
|
16
16
|
wordcount: z.ZodNumber;
|
|
17
17
|
}, z.core.$strip>>;
|
|
18
|
-
total_results: z.ZodNumber;
|
|
19
|
-
query_used: z.ZodString;
|
|
20
18
|
language: z.ZodString;
|
|
21
19
|
}, z.core.$strip>, readonly [{
|
|
22
|
-
readonly reason: "no_results";
|
|
23
|
-
readonly code: JsonRpcErrorCode.NotFound;
|
|
24
|
-
readonly when: "Search returned zero results for the query.";
|
|
25
|
-
readonly recovery: "Broaden the query or try different keywords and search again.";
|
|
26
|
-
}, {
|
|
27
20
|
readonly reason: "invalid_language";
|
|
28
|
-
readonly code: JsonRpcErrorCode.
|
|
21
|
+
readonly code: JsonRpcErrorCode.ValidationError;
|
|
29
22
|
readonly when: "The language code is not a valid BCP 47 code.";
|
|
30
23
|
readonly recovery: "Use a valid BCP 47 language code such as \"fr\", \"de\", or \"ja\".";
|
|
31
|
-
}]
|
|
24
|
+
}], {
|
|
25
|
+
readonly effectiveQuery: z.ZodString;
|
|
26
|
+
readonly totalCount: z.ZodNumber;
|
|
27
|
+
readonly notice: z.ZodOptional<z.ZodString>;
|
|
28
|
+
}>;
|
|
32
29
|
//# sourceMappingURL=wikipedia-search.tool.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wikipedia-search.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/wikipedia-search.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAGjE,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"wikipedia-search.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/wikipedia-search.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAGjE,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;EAkG1B,CAAC"}
|
|
@@ -33,20 +33,22 @@ export const wikipediaSearch = tool('wikipedia_search', {
|
|
|
33
33
|
})
|
|
34
34
|
.describe('A single search result entry.'))
|
|
35
35
|
.describe('Ranked search results.'),
|
|
36
|
-
total_results: z.number().describe('Total number of matching results in Wikipedia.'),
|
|
37
|
-
query_used: z.string().describe('The query that was searched.'),
|
|
38
36
|
language: z.string().describe('Language edition queried.'),
|
|
39
37
|
}),
|
|
38
|
+
// Agent-facing context — query echo, total match count, and optional empty-result
|
|
39
|
+
// notice. Reaches structuredContent AND content[] automatically; disjoint from output.
|
|
40
|
+
enrichment: {
|
|
41
|
+
effectiveQuery: z.string().describe('The query sent to Wikipedia.'),
|
|
42
|
+
totalCount: z.number().describe('Total matching results in Wikipedia.'),
|
|
43
|
+
notice: z
|
|
44
|
+
.string()
|
|
45
|
+
.optional()
|
|
46
|
+
.describe('Guidance when no results matched — e.g. try different keywords. Absent on successful result pages.'),
|
|
47
|
+
},
|
|
40
48
|
errors: [
|
|
41
|
-
{
|
|
42
|
-
reason: 'no_results',
|
|
43
|
-
code: JsonRpcErrorCode.NotFound,
|
|
44
|
-
when: 'Search returned zero results for the query.',
|
|
45
|
-
recovery: 'Broaden the query or try different keywords and search again.',
|
|
46
|
-
},
|
|
47
49
|
{
|
|
48
50
|
reason: 'invalid_language',
|
|
49
|
-
code: JsonRpcErrorCode.
|
|
51
|
+
code: JsonRpcErrorCode.ValidationError,
|
|
50
52
|
when: 'The language code is not a valid BCP 47 code.',
|
|
51
53
|
recovery: 'Use a valid BCP 47 language code such as "fr", "de", or "ja".',
|
|
52
54
|
},
|
|
@@ -60,25 +62,16 @@ export const wikipediaSearch = tool('wikipedia_search', {
|
|
|
60
62
|
ctx.log.info('Searching Wikipedia', { query: input.query, limit, language });
|
|
61
63
|
const svc = getWikipediaService();
|
|
62
64
|
const { results, totalResults } = await svc.search(input.query, limit, language, ctx);
|
|
65
|
+
ctx.enrich.echo(input.query);
|
|
66
|
+
ctx.enrich.total(totalResults);
|
|
63
67
|
if (results.length === 0) {
|
|
64
|
-
|
|
65
|
-
query: input.query,
|
|
66
|
-
language,
|
|
67
|
-
recovery: { hint: `Try different keywords or a broader query than "${input.query}".` },
|
|
68
|
-
});
|
|
68
|
+
ctx.enrich.notice(`No Wikipedia articles found for "${input.query}" in language "${language}". Try different keywords or a broader query.`);
|
|
69
69
|
}
|
|
70
70
|
ctx.log.info('Search complete', { count: results.length, totalResults, language });
|
|
71
|
-
return {
|
|
72
|
-
results,
|
|
73
|
-
total_results: totalResults,
|
|
74
|
-
query_used: input.query,
|
|
75
|
-
language,
|
|
76
|
-
};
|
|
71
|
+
return { results, language };
|
|
77
72
|
},
|
|
78
73
|
format: (result) => {
|
|
79
|
-
const lines = [
|
|
80
|
-
`**${result.results.length} of ${result.total_results} results** for "${result.query_used}" (${result.language})\n`,
|
|
81
|
-
];
|
|
74
|
+
const lines = [`**${result.results.length} results** (${result.language})\n`];
|
|
82
75
|
for (const item of result.results) {
|
|
83
76
|
lines.push(`### ${item.title}`);
|
|
84
77
|
lines.push(`**Page ID:** ${item.pageid} | **Words:** ${item.wordcount}`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wikipedia-search.tool.js","sourceRoot":"","sources":["../../../../src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AC,+BAA+B,CAAC,CAC7C;aACA,QAAQ,CAAC,wBAAwB,CAAC;QACrC,
|
|
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,KAAK,EAAE,CAAC;aACL,MAAM,EAAE;aACR,GAAG,EAAE;aACL,GAAG,CAAC,CAAC,CAAC;aACN,OAAO,CAAC,EAAE,CAAC;aACX,QAAQ,CACP,uFAAuF,CACxF;QACH,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,OAAO,EAAE,CAAC;aACP,KAAK,CACJ,CAAC;aACE,MAAM,CAAC;YACN,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,uDAAuD,CAAC;YACnF,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,kDAAkD,CAAC;YAC/E,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ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C,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
|
+
"version": "0.1.6",
|
|
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",
|
|
@@ -27,13 +27,15 @@
|
|
|
27
27
|
"audit:refresh": "rm -f bun.lock && bun install && bun audit",
|
|
28
28
|
"tree": "bun run scripts/tree.ts",
|
|
29
29
|
"list-skills": "bun run scripts/list-skills.ts",
|
|
30
|
-
"format": "biome check --write
|
|
30
|
+
"format": "biome check --write .",
|
|
31
|
+
"format:unsafe": "biome check --write --unsafe .",
|
|
31
32
|
"lint:mcp": "bun run scripts/lint-mcp.ts",
|
|
32
33
|
"lint:packaging": "bun run scripts/lint-packaging.ts",
|
|
33
34
|
"bundle": "bun run build && npx -y @anthropic-ai/mcpb pack . dist/wikipedia-mcp-server.mcpb",
|
|
34
35
|
"changelog:build": "bun run scripts/build-changelog.ts",
|
|
35
36
|
"changelog:check": "bun run scripts/build-changelog.ts --check",
|
|
36
37
|
"test": "bunx vitest run",
|
|
38
|
+
"publish-mcp": "mcp-publisher login github -token \"$(security find-generic-password -a \"$USER\" -s mcp-publisher-github-pat -w)\" && mcp-publisher publish",
|
|
37
39
|
"start:stdio": "MCP_TRANSPORT_TYPE=stdio bun ./dist/index.js",
|
|
38
40
|
"start:http": "MCP_TRANSPORT_TYPE=http bun ./dist/index.js"
|
|
39
41
|
},
|
|
@@ -77,18 +79,18 @@
|
|
|
77
79
|
"access": "public"
|
|
78
80
|
},
|
|
79
81
|
"dependencies": {
|
|
80
|
-
"@cyanheads/mcp-ts-core": "^0.9.
|
|
82
|
+
"@cyanheads/mcp-ts-core": "^0.9.16",
|
|
81
83
|
"pino-pretty": "^13.1.3",
|
|
82
|
-
"wtf_wikipedia": "^10.4.
|
|
84
|
+
"wtf_wikipedia": "^10.4.2",
|
|
83
85
|
"zod": "^4.4.3"
|
|
84
86
|
},
|
|
85
87
|
"devDependencies": {
|
|
86
|
-
"@biomejs/biome": "^2.4.
|
|
87
|
-
"@types/node": "^25.
|
|
88
|
+
"@biomejs/biome": "^2.4.16",
|
|
89
|
+
"@types/node": "^25.9.1",
|
|
88
90
|
"depcheck": "^1.4.7",
|
|
89
91
|
"ignore": "^7.0.5",
|
|
90
|
-
"tsc-alias": "^1.8.
|
|
91
|
-
"typescript": "^
|
|
92
|
-
"vitest": "^4.1.
|
|
92
|
+
"tsc-alias": "^1.8.17",
|
|
93
|
+
"typescript": "^6.0.3",
|
|
94
|
+
"vitest": "^4.1.7"
|
|
93
95
|
}
|
|
94
96
|
}
|
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.
|
|
9
|
+
"version": "0.1.6",
|
|
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.
|
|
16
|
+
"version": "0.1.6",
|
|
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.
|
|
45
|
+
"version": "0.1.6",
|
|
46
46
|
"packageArguments": [
|
|
47
47
|
{
|
|
48
48
|
"type": "positional",
|