WeKnora/cli/internal/format
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
..
dash.go feat(cli): context CRUD 2026-05-14 10:57:17 +08:00
envelope.go refactor(cli): v0.3 cross-cutting cleanup 2026-05-14 10:57:17 +08:00
envelope_test.go feat(cli): add agent-first affordance — envelope, exit-10, --dry-run 2026-05-12 13:20:42 +08:00
filter.go feat(cli): --json field-select, --jq, auth token, doc --from-url 2026-05-15 12:03:56 +08:00
filter_test.go feat(cli): --json field-select, --jq, auth token, doc --from-url 2026-05-15 12:03:56 +08:00
references.go feat(cli): mcp serve curated stdio MCP server 2026-05-15 12:03:56 +08:00