Commit 42ee929
feat: add
* search
* refactor: use official MCP Go SDK, add missing submit-feedback params
Replace hand-rolled MCP streamable HTTP client (~230 lines) with the
official modelcontextprotocol/go-sdk. Also add missing --agent and
--model flags to submit-feedback to match the server's full schema.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat: warn when docs MCP server is newer than expected
Check the server's reported version after connecting. If the major or
minor version is newer than what this CLI was built against (currently
1.2.x), print a warning to stderr suggesting the user update lk.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat: add hidden --server-url and --vercel-header flags for docs dev
Add hidden flags to `lk docs` for development against staging or preview
deployments of the docs MCP server. Also add a README section documenting
the docs feature and its development options.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat: send lk_cli_version and project_id with docs MCP tool calls
Injects lightweight telemetry params into every MCP tool call so the
docs server can track CLI version and optionally the Cloud project ID.
The project ID is resolved silently from the --project flag or default
project config and omitted when no project is configured.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat: add request timeout, unit tests, fix hits-per-page default
- Add 30s timeout to all docs MCP requests to prevent hanging if the
server is unresponsive.
- Remove hardcoded hits-per-page default of 10; let the server default
to 20 instead.
- Add unit tests for parseMajorMinor, isNotFoundErr, and
headerTransport.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat: add --json flag to docs commands
Adds a --json / -j flag on the docs parent command so all tool-based
subcommands can request JSON output from the MCP server. When set,
sends format: "json" in the tool call arguments.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat: switch list-sdks to get_sdks tool, bump expected server to 1.3
Replace the livekit://sdks resource read with the new get_sdks tool
call, which supports all standard params (format, telemetry). Remove
the now-unused callDocsResourceAndPrint helper and encoding/json
import. Bump expectedServerVersion to 1.3.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: use camelCase for telemetry params (lkCliVersion, projectId)
Match the server-side naming convention.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>lk docs commands for searching and browsing LiveKit documentation (#774)1 parent f680f7f commit 42ee929
6 files changed
Lines changed: 771 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
437 | 437 | | |
438 | 438 | | |
439 | 439 | | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
440 | 484 | | |
441 | 485 | | |
442 | 486 | | |
| |||
0 commit comments