WeKnora/cli/internal
nullkey 9bb83b47fd feat(cli): mcp serve curated stdio MCP server
`weknora mcp serve` — long-lived stdio MCP (Model Context Protocol)
transport that exposes a fixed, curated tool surface to MCP-aware
agents (Claude Desktop, Claude Code, custom MCP clients).

Curated tool set (readonly by default):
- whoami — active context + tenant
- search (hybrid retrieval against a KB)
- kb list / view
- doc list / view
- agent list / view / invoke
- session list / view

The list is intentionally narrow to the read + agent-invoke surface;
destructive verbs (`delete` / `empty` / `upload`) are gated behind
`--write`. Schema is built from each leaf cobra command's flags so
adding a new tool is a single registry entry plus a Service interface.

Includes the simplify post-review polish + a second simplify pass to
fold the resulting feedback (typed schemas, agent_help wording, unify
chat / agent invoke option names).
2026-05-15 12:03:56 +08:00
..
agent refactor(cli): v0.3 cross-cutting cleanup 2026-05-14 10:57:17 +08:00
build feat(cli): scaffold weknora CLI module foundation (PR-1) 2026-05-07 23:19:46 +08:00
cmdutil feat(cli): per-resource filter flags on list commands 2026-05-15 12:03:56 +08:00
compat refactor(cli): v0.3 cross-cutting cleanup 2026-05-14 10:57:17 +08:00
config feat(cli): contract test suite + dependabot (PR-8) 2026-05-09 12:18:01 +08:00
format feat(cli): mcp serve curated stdio MCP server 2026-05-15 12:03:56 +08:00
iostreams feat(cli): add kb create/delete and doc list/upload/delete commands 2026-05-12 13:20:42 +08:00
mcp feat(cli): mcp serve curated stdio MCP server 2026-05-15 12:03:56 +08:00
projectlink feat(cli): doc view + unlink (fill v0.3 design-gap audit) 2026-05-14 10:57:17 +08:00
prompt feat(cli): keyring backend + TTY prompter (PR-3) 2026-05-07 23:19:46 +08:00
secrets feat(cli): contract test suite + dependabot (PR-8) 2026-05-09 12:18:01 +08:00
sse feat(cli): mcp serve curated stdio MCP server 2026-05-15 12:03:56 +08:00
testutil feat(cli): session subtree + kb edit / pin / empty 2026-05-14 10:57:17 +08:00
text refactor(cli): v0.3 cross-cutting cleanup 2026-05-14 10:57:17 +08:00
xdg refactor(cli): v0.3 cross-cutting cleanup 2026-05-14 10:57:17 +08:00