suse-documentation-mcp-server 0.12.0__tar.gz → 0.14.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {suse_documentation_mcp_server-0.12.0 → suse_documentation_mcp_server-0.14.0}/PKG-INFO +1 -1
- {suse_documentation_mcp_server-0.12.0 → suse_documentation_mcp_server-0.14.0}/pyproject.toml +1 -1
- {suse_documentation_mcp_server-0.12.0 → suse_documentation_mcp_server-0.14.0}/server/search_suse_documentation.py +3 -17
- {suse_documentation_mcp_server-0.12.0 → suse_documentation_mcp_server-0.14.0}/suse_documentation_mcp_server.egg-info/PKG-INFO +1 -1
- {suse_documentation_mcp_server-0.12.0 → suse_documentation_mcp_server-0.14.0}/README.md +0 -0
- {suse_documentation_mcp_server-0.12.0 → suse_documentation_mcp_server-0.14.0}/setup.cfg +0 -0
- {suse_documentation_mcp_server-0.12.0 → suse_documentation_mcp_server-0.14.0}/suse_documentation_mcp_server.egg-info/SOURCES.txt +0 -0
- {suse_documentation_mcp_server-0.12.0 → suse_documentation_mcp_server-0.14.0}/suse_documentation_mcp_server.egg-info/dependency_links.txt +0 -0
- {suse_documentation_mcp_server-0.12.0 → suse_documentation_mcp_server-0.14.0}/suse_documentation_mcp_server.egg-info/entry_points.txt +0 -0
- {suse_documentation_mcp_server-0.12.0 → suse_documentation_mcp_server-0.14.0}/suse_documentation_mcp_server.egg-info/requires.txt +0 -0
- {suse_documentation_mcp_server-0.12.0 → suse_documentation_mcp_server-0.14.0}/suse_documentation_mcp_server.egg-info/top_level.txt +0 -0
@@ -74,7 +74,7 @@ def get_web_search_results_from_oi(query):
|
|
74
74
|
return combined_response
|
75
75
|
|
76
76
|
@mcp.tool()
|
77
|
-
async def get_web_search_results(
|
77
|
+
async def get_web_search_results(query: str) -> str:
|
78
78
|
"""
|
79
79
|
Search SUSE documentation using web search and return results.
|
80
80
|
|
@@ -83,28 +83,14 @@ async def get_web_search_results(input_data: Any) -> str:
|
|
83
83
|
a string, JSON object, or dictionary, normalizes it, performs the web search,
|
84
84
|
and returns a formatted string containing the content from the search results.
|
85
85
|
|
86
|
-
|
87
|
-
|
88
|
-
Examples:
|
89
|
-
- "sriov in rke2"
|
90
|
-
- {"query": "how to configure suse manager"}
|
91
|
-
- {"queries": "latest rancher version"}
|
86
|
+
Parameters:
|
87
|
+
- query (str): The search query string to be used for the web search.
|
92
88
|
|
93
89
|
Returns:
|
94
90
|
str: Combined content from the search results, cleaned and formatted
|
95
91
|
"""
|
96
92
|
print("Entered get_web_search_results:", query)
|
97
93
|
try:
|
98
|
-
# Normalize input to extract the query string
|
99
|
-
if isinstance(input_data, str):
|
100
|
-
query = input_data
|
101
|
-
elif isinstance(input_data, dict):
|
102
|
-
query = input_data.get("query") or input_data.get("queries")
|
103
|
-
if not query:
|
104
|
-
raise ValueError("Input dictionary must contain 'query' or 'queries' key.")
|
105
|
-
else:
|
106
|
-
raise TypeError("Input must be a string or a dictionary containing 'query' or 'queries'.")
|
107
|
-
|
108
94
|
# Ensure query is a string
|
109
95
|
if not isinstance(query, str):
|
110
96
|
raise ValueError("The extracted query must be a string.")
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|