suse-documentation-mcp-server 0.13.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: suse-documentation-mcp-server
3
- Version: 0.13.0
3
+ Version: 0.14.0
4
4
  Summary: Add your description here
5
5
  Requires-Python: >=3.12
6
6
  Description-Content-Type: text/markdown
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "suse-documentation-mcp-server"
3
- version = "0.13.0"
3
+ version = "0.14.0"
4
4
  description = "Add your description here"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.12"
@@ -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(queries: Any) -> str:
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(queries: 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
- Args:
87
- input_data (Any): Web search query, either as a string, JSON object, or dictionary.
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.")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: suse-documentation-mcp-server
3
- Version: 0.13.0
3
+ Version: 0.14.0
4
4
  Summary: Add your description here
5
5
  Requires-Python: >=3.12
6
6
  Description-Content-Type: text/markdown