arch-ops-server 3.0.0__py3-none-any.whl → 3.1.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.
@@ -6,7 +6,7 @@ A Model Context Protocol server that bridges AI assistants with the Arch Linux
6
6
  ecosystem, providing access to the Arch Wiki, AUR, and official repositories.
7
7
  """
8
8
 
9
- __version__ = "0.1.0"
9
+ __version__ = "3.1.0"
10
10
 
11
11
  from .wiki import search_wiki, get_wiki_page, get_wiki_page_as_text
12
12
  from .aur import (
@@ -75,19 +75,19 @@ from .server import server
75
75
  async def main():
76
76
  """
77
77
  Main entry point for the MCP server.
78
- Runs the server using STDIO transport.
78
+ Runs the server using STDIO transport (default for Docker MCP Catalog).
79
79
  """
80
80
  import asyncio
81
81
  import mcp.server.stdio
82
82
  import logging
83
-
83
+
84
84
  # Set up logging
85
85
  logging.basicConfig(level=logging.INFO)
86
86
  logger = logging.getLogger(__name__)
87
-
88
- logger.info("Starting Arch Linux MCP Server")
87
+
88
+ logger.info("Starting Arch Linux MCP Server (STDIO)")
89
89
  logger.info(f"Running on Arch Linux: {IS_ARCH}")
90
-
90
+
91
91
  # Run the server using STDIO
92
92
  async with mcp.server.stdio.stdio_server() as (read_stream, write_stream):
93
93
  await server.run(
@@ -98,10 +98,19 @@ async def main():
98
98
 
99
99
 
100
100
  def main_sync():
101
- """Synchronous wrapper for the main function."""
101
+ """Synchronous wrapper for the main function (STDIO transport)."""
102
102
  import asyncio
103
103
  asyncio.run(main())
104
104
 
105
+
106
+ def main_http_sync():
107
+ """
108
+ Main entry point for HTTP server (for Smithery).
109
+ Runs the server using SSE (Server-Sent Events) HTTP transport.
110
+ """
111
+ from .http_server import main_http
112
+ main_http()
113
+
105
114
  __all__ = [
106
115
  # Wiki
107
116
  "search_wiki",
@@ -163,4 +172,5 @@ __all__ = [
163
172
  # Main functions
164
173
  "main",
165
174
  "main_sync",
175
+ "main_http_sync",
166
176
  ]