Skip to content

Commit 4bed875

Browse files
test(export): rename the CLI source-surface test; list the six sources in the MCP tool text
test_export_cli_pi_omp.py was named for a harness pair that no longer exists as such: omp is not a supported source, and the file's body never tested it -- it asserts the `--sources` / `--<source>-only` surface for the supported set and that `--omp-only` / `--gemini-only` stay absent. The new name says what it covers; all 20 assertions, including those three negative guards, are byte- identical. mcp_server.py's `session_search` docstring is the tool description an LLM reads before choosing a filter; it still offered `gemini` and omitted grok and pi. The module docstring listed five harnesses. Both now name exactly the six.
1 parent bd611c1 commit 4bed875

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

‎packages/agent-session-tools/src/agent_session_tools/mcp_server.py‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
"""MCP server for session-db — universal AI tool integration.
22
33
Exposes session database as MCP tools via stdio transport.
4-
Any MCP-compatible admitted harness (Kiro CLI, Codex, Claude Code, OpenCode, or pi)
5-
can search, browse, and retrieve session context through this server.
4+
Any MCP-compatible admitted harness (Claude Code, Codex, Grok Build, Kiro CLI,
5+
OpenCode, or pi) can search, browse, and retrieve session context through this
6+
server.
67
78
Usage:
89
session-db-mcp # Start the server (stdio)
@@ -277,7 +278,7 @@ def session_search(
277278
Args:
278279
query: Search terms (supports AND, OR, NOT operators)
279280
limit: Maximum results to return (default 10)
280-
source: Filter by tool source (claude, kiro, gemini, opencode, etc.)
281+
source: Filter by tool source (claude, codex, grok, kiro, opencode, pi)
281282
project: Filter by project name or full path with configured project aliases
282283
"""
283284
conn = _get_connection()

‎packages/agent-session-tools/tests/test_export_cli_sources.py‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
"""CLI contracts for the preview pi and OpenCode exporters."""
1+
"""CLI contracts for the export source surface.
2+
3+
Covers the ``--sources`` / ``--<source>-only`` CLI surface for the six
4+
supported sources (claude, codex, grok, kiro, opencode, pi) and the
5+
rejection of out-of-scope ones.
6+
"""
27

38
from __future__ import annotations
49

0 commit comments

Comments
 (0)