Skip to content

Commit fb0e93b

Browse files
author
zach
authored
cleanup: remove builtin search tool (#26)
1 parent a5ddf6f commit fb0e93b

File tree

3 files changed

+142
-159
lines changed

3 files changed

+142
-159
lines changed

mcpx_py/builtin_tools.py

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,6 @@
1-
from typing import Any
21
from mcpx_pydantic_ai import mcp_run
32

43

5-
SEARCH = mcp_run.Tool(
6-
name="mcp_run_search_servlets",
7-
description="""
8-
Search for tools that might help solve the user's problem. Use single-word searches first (like "image" or "pdf"). If no results match, try one more related word. Never combine multiple terms in the first search. For each result found, tell the user to visit https://mcp.run/{owner}/{name} to install it.If no tools are found, suggest the user create one at mcp.run.
9-
""",
10-
input_schema={
11-
"type": "object",
12-
"properties": {
13-
"q": {
14-
"type": "string",
15-
"description": """
16-
The query of terms to search the mcp.run API for servlets.
17-
This query string supports:
18-
19-
* Regular word search: 'fetch markdown' (finds documents containing both words)
20-
* Phrase search: '"hello world"' (finds exact phrase)
21-
* Prefix search: 'fetch*' (finds 'fetch', 'fetching', etc.)
22-
* Mixed search: 'api "hello world"'
23-
* Negation: '!javascript' (excludes documents with 'javascript')
24-
""",
25-
},
26-
},
27-
"required": [],
28-
},
29-
)
30-
314
GET_PROFILES = mcp_run.Tool(
325
name="mcp_run_get_profiles",
336
description="""
@@ -71,4 +44,4 @@
7144
},
7245
)
7346

74-
TOOLS = [SEARCH, GET_PROFILES, SET_PROFILE, CURRENT_PROFILE]
47+
TOOLS = [GET_PROFILES, SET_PROFILE, CURRENT_PROFILE]

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "mcpx-py"
3-
version = "0.5.3"
3+
version = "0.6.0"
44
description = "An mcp.run client for Python"
55
readme = "README.md"
66
requires-python = ">=3.12"

0 commit comments

Comments
 (0)