Skip to content

Commit 7701d6c

Browse files
committed
fix(mcp): use controlToolPrefix in cross-tool reference
1 parent 1431ef8 commit 7701d6c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/mcp/control_tools.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ func (s *Server) registerProcessControlTools() {
104104

105105
s.addTool(
106106
mcp.NewTool(controlToolPrefix+"process_logs_search",
107-
mcp.WithDescription(`Search process log buffers using BM25 text ranking. Results are ranked by relevance, NOT by time, and may be old or out of chronological order. For the latest output of a single process use pc_process_logs instead.
107+
mcp.WithDescription(fmt.Sprintf(`Search process log buffers using BM25 text ranking. Results are ranked by relevance, NOT by time, and may be old or out of chronological order. For the latest output of a single process use %sprocess_logs instead.
108108
109-
Each hit includes chunk_idx (0 = oldest line in the searched window, higher = more recent), so sort hits by chunk_idx descending if you need recency. Process log lines pass through verbatim — timestamps appear in 'text' only when the process itself emits them.`),
109+
Each hit includes chunk_idx (0 = oldest line in the searched window, higher = more recent), so sort hits by chunk_idx descending if you need recency. Process log lines pass through verbatim — timestamps appear in 'text' only when the process itself emits them.`, controlToolPrefix)),
110110
mcp.WithString("query", mcp.Description("Search query (space-separated terms)"), mcp.Required()),
111111
mcp.WithString("name", mcp.Description("Process name to search. If omitted, searches every process.")),
112112
mcp.WithNumber("top_k", mcp.Description("Number of top results to return (default 20, max 100)")),

0 commit comments

Comments
 (0)