suse-documentation-mcp-server 0.7.0__py3-none-any.whl → 0.8.0__py3-none-any.whl

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.
@@ -20,7 +20,7 @@ def clean_content(content):
20
20
  cleaned_content = re.sub(r'[ \t]+', ' ', cleaned_content)
21
21
  return cleaned_content
22
22
 
23
- def get_web_search_results_from_oi(queries):
23
+ def get_web_search_results_from_oi(query):
24
24
  headers = {
25
25
  'Content-Type': 'application/json',
26
26
  'Authorization': f'Bearer {authorization_token}'
@@ -28,7 +28,7 @@ def get_web_search_results_from_oi(queries):
28
28
 
29
29
  # Step 1: Get web search results (list of URLs)
30
30
  search_payload = {
31
- "query": queries,
31
+ "query": query,
32
32
  "collection_name": "your_collection_name"
33
33
  }
34
34
 
@@ -73,16 +73,24 @@ def get_web_search_results_from_oi(queries):
73
73
  return combined_response
74
74
 
75
75
  @mcp.tool()
76
- async def get_web_search_results(queries: str) -> str:
77
- """Get web search results for a given queries.
78
-
76
+ async def get_web_search_results(query: str) -> str:
77
+ """
78
+ Search SUSE documentation using web search and return results.
79
+
80
+ This function is designed to perform a web search on the SUSE documentation
81
+ for a given query and return the results.
82
+
79
83
  Args:
80
- queries: Web search queries
84
+ query (str): Web search query
85
+ Examples: "sriov in rke2", "how to configure suse manager", "latest rancher version"
86
+
87
+ Returns:
88
+ str: Combined content from the search results, cleaned and formatted
81
89
  """
82
90
  try:
83
- return get_web_search_results_from_oi(queries)
91
+ return get_web_search_results_from_oi(query)
84
92
  except Exception as e:
85
- return f"Error performing web search: {str(e)}\n{queries}"
93
+ return f"Error performing web search: {str(e)}"
86
94
 
87
95
 
88
96
  def main():
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: suse-documentation-mcp-server
3
- Version: 0.7.0
3
+ Version: 0.8.0
4
4
  Summary: Add your description here
5
5
  Requires-Python: >=3.12
6
6
  Description-Content-Type: text/markdown
@@ -0,0 +1,6 @@
1
+ server/search_suse_documentation.py,sha256=OwVHImo3-VRqt7Z8tvOsAPgnDdhgoF_eXhyL7tbyRWY,3491
2
+ suse_documentation_mcp_server-0.8.0.dist-info/METADATA,sha256=GUGQtyN8XChdtEdc7wCetBfhMD7VGJILD7EfhKkZuZs,343
3
+ suse_documentation_mcp_server-0.8.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
4
+ suse_documentation_mcp_server-0.8.0.dist-info/entry_points.txt,sha256=IEM7kH8YFWMMJCcp4hJGv5tHzHWxiR5lZ7jOyzRCHQA,88
5
+ suse_documentation_mcp_server-0.8.0.dist-info/top_level.txt,sha256=StKOSmRhvWS5IPcvhsDRbtxUTEofJgYFGOu5AAJdSWo,7
6
+ suse_documentation_mcp_server-0.8.0.dist-info/RECORD,,
@@ -1,6 +0,0 @@
1
- server/search_suse_documentation.py,sha256=RWIe373xqTbXz5pI95cZt1GmcsK-aWLjfTwSrvA4RIM,3152
2
- suse_documentation_mcp_server-0.7.0.dist-info/METADATA,sha256=EKB68PcleXx_yp72dHUAql3teobwyTrLe8OblLcqU7A,343
3
- suse_documentation_mcp_server-0.7.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
4
- suse_documentation_mcp_server-0.7.0.dist-info/entry_points.txt,sha256=IEM7kH8YFWMMJCcp4hJGv5tHzHWxiR5lZ7jOyzRCHQA,88
5
- suse_documentation_mcp_server-0.7.0.dist-info/top_level.txt,sha256=StKOSmRhvWS5IPcvhsDRbtxUTEofJgYFGOu5AAJdSWo,7
6
- suse_documentation_mcp_server-0.7.0.dist-info/RECORD,,