Skip to content

feat(mcp): add thread history search and reading tools - #2

Merged
hochmannA1 merged 1 commit into
mainfrom
feat/mcp-thread-tools
Sep 4, 2026
Merged

hochmannA1 merged 1 commit into
mainfrom
feat/mcp-thread-tools

Conversation

@hochmannA1

Copy link
Copy Markdown
Owner

Agents in T3 Code could not discover or read previous conversations through MCP. Add thread_list, thread_search, and thread_read so an agent can find a discussion, inspect its context, and return threads sorted by title, creation time, or last update.

The tools default to the current project, support explicit environment-wide and archived history, and exclude deleted data. Queries paginate in SQL, return bounded snippets, and let agents continue through long messages. Sorting affects results only; these tools do not modify threads. Read-only thread access is available independently of the existing browser and automation toggles. It uses the current provider-scoped MCP credentials across Codex, Claude, Cursor, Grok, and managed OpenCode. Externally managed OpenCode retains its existing MCP configuration.

Validation: 64 focused tests passed, including real SQLite query behavior, MCP registration and request scoping, and provider capability handling. Server and contracts typechecks and targeted lint passed. Independent subagent review caught and resolved repeated turn scans and running commentary being mistaken for a final reply. No client UI changes.

Model: exact model identifier unavailable in the session. Harness: OpenAI Codex with implementation and review subagents.

@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:L labels Sep 4, 2026
@hochmannA1
hochmannA1 merged commit f5400df into main Sep 4, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant