arch-ops-server 2.0.0__tar.gz → 3.0.1__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.
@@ -0,0 +1,253 @@
1
+ Metadata-Version: 2.3
2
+ Name: arch-ops-server
3
+ Version: 3.0.1
4
+ Summary: MCP server bridging AI assistants with Arch Linux ecosystem (Wiki, AUR, official repos)
5
+ Keywords: arch-linux,mcp,model-context-protocol,aur,pacman,wiki,ai-assistant
6
+ Author: Nihal
7
+ Author-email: Nihal <2tv8xupqg@mozmail.com>
8
+ License: GPL-3.0-only OR MIT
9
+ Classifier: Development Status :: 4 - Beta
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: Intended Audience :: System Administrators
12
+ Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
13
+ Classifier: License :: OSI Approved :: MIT License
14
+ Classifier: Operating System :: POSIX :: Linux
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.11
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Topic :: System :: Archiving :: Packaging
19
+ Classifier: Topic :: System :: Systems Administration
20
+ Requires-Dist: mcp>=1.0.0
21
+ Requires-Dist: httpx>=0.27.0
22
+ Requires-Dist: beautifulsoup4>=4.12.0
23
+ Requires-Dist: lxml>=5.0.0
24
+ Requires-Dist: markdownify>=0.12.0
25
+ Requires-Dist: pytest>=8.0.0 ; extra == 'dev'
26
+ Requires-Dist: pytest-asyncio>=0.23.0 ; extra == 'dev'
27
+ Requires-Dist: pytest-cov>=4.1.0 ; extra == 'dev'
28
+ Requires-Dist: pytest-mock>=3.12.0 ; extra == 'dev'
29
+ Requires-Dist: httpx>=0.27.0 ; extra == 'dev'
30
+ Requires-Dist: starlette>=0.27.0 ; extra == 'http'
31
+ Requires-Dist: uvicorn[standard]>=0.23.0 ; extra == 'http'
32
+ Requires-Python: >=3.11
33
+ Provides-Extra: dev
34
+ Provides-Extra: http
35
+ Description-Content-Type: text/markdown
36
+
37
+ # Arch Linux MCP Server
38
+
39
+ <a href="https://glama.ai/mcp/servers/@nihalxkumar/arch-mcp">
40
+ <img width="380" height="200" src="https://glama.ai/mcp/servers/@nihalxkumar/arch-mcp/badge" />
41
+ </a>
42
+
43
+ **Disclaimer:** Unofficial community project, not affiliated with Arch Linux.
44
+
45
+ A [Model Context Protocol](https://modelcontextprotocol.io/) (MCP) server that bridges AI assistants with the Arch Linux ecosystem. Enables intelligent, safe, and efficient access to the Arch Wiki, AUR, and official repositories for AI-assisted Arch Linux usage on Arch and non-Arch systems.
46
+
47
+ Leverage AI to get output for digestible, structured results that are ready for follow up questions and actions.
48
+
49
+ 📖 [Complete Documentation with Comfy Guides](https://nxk.mintlify.app/arch-mcp)
50
+
51
+ ## Sneak Peak into what's available
52
+
53
+ <details open>
54
+ <summary>Claude Desktop (no terminal)</summary>
55
+
56
+ ![Claude Desktop Demo](assets/claudedesktop_signalcli.gif)
57
+
58
+ </details>
59
+
60
+ <details>
61
+ <summary>VS Code (with terminal)</summary>
62
+
63
+ ![VS Code Demo](assets/vscode_notesnook.gif)
64
+
65
+ </details>
66
+
67
+ ### Resources (URI-based Access)
68
+
69
+ Direct access to Arch ecosystem data via custom URI schemes:
70
+
71
+ #### Documentation & Search
72
+ | URI Scheme | Example | Returns |
73
+ |------------|---------|---------|
74
+ | `archwiki://` | `archwiki://Installation_guide` | Markdown-formatted Wiki page |
75
+
76
+ #### Package Information
77
+ | URI Scheme | Example | Returns |
78
+ |------------|---------|---------|
79
+ | `archrepo://` | `archrepo://vim` | Official repository package details |
80
+ | `aur://*/info` | `aur://yay/info` | AUR package metadata (votes, maintainer, dates) |
81
+ | `aur://*/pkgbuild` | `aur://yay/pkgbuild` | Raw PKGBUILD with safety analysis |
82
+
83
+ #### System Packages (Arch only)
84
+ | URI Scheme | Example | Returns |
85
+ |------------|---------|---------|
86
+ | `pacman://installed` | `pacman://installed` | System installed packages list |
87
+ | `pacman://orphans` | `pacman://orphans` | Orphaned packages |
88
+ | `pacman://explicit` | `pacman://explicit` | Explicitly installed packages |
89
+ | `pacman://groups` | `pacman://groups` | All package groups |
90
+ | `pacman://group/*` | `pacman://group/base-devel` | Packages in specific group |
91
+ | `pacman://database/freshness` | `pacman://database/freshness` | Package database sync status |
92
+
93
+ #### System Monitoring & Logs
94
+ | URI Scheme | Example | Returns |
95
+ |------------|---------|---------|
96
+ | `system://info` | `system://info` | System information (kernel, memory, uptime) |
97
+ | `system://disk` | `system://disk` | Disk space usage statistics |
98
+ | `system://services/failed` | `system://services/failed` | Failed systemd services |
99
+ | `system://logs/boot` | `system://logs/boot` | Recent boot logs |
100
+ | `pacman://log/recent` | `pacman://log/recent` | Recent package transactions |
101
+ | `pacman://log/failed` | `pacman://log/failed` | Failed package transactions |
102
+
103
+ #### News & Updates
104
+ | URI Scheme | Example | Returns |
105
+ |------------|---------|---------|
106
+ | `archnews://latest` | `archnews://latest` | Latest Arch Linux news |
107
+ | `archnews://critical` | `archnews://critical` | Critical news requiring manual intervention |
108
+ | `archnews://since-update` | `archnews://since-update` | News since last system update |
109
+
110
+ #### Configuration
111
+ | URI Scheme | Example | Returns |
112
+ |------------|---------|---------|
113
+ | `config://pacman` | `config://pacman` | Parsed pacman.conf configuration |
114
+ | `config://makepkg` | `config://makepkg` | Parsed makepkg.conf configuration |
115
+ | `mirrors://active` | `mirrors://active` | Currently configured mirrors |
116
+ | `mirrors://health` | `mirrors://health` | Mirror configuration health status |
117
+
118
+ ### Tools (Executable Functions)
119
+
120
+ #### Package Search & Information
121
+ | Tool | Description | Platform |
122
+ |------|-------------|----------|
123
+ | `search_archwiki` | Query Arch Wiki with ranked results | Any |
124
+ | `search_aur` | Search AUR (relevance/votes/popularity/modified) | Any |
125
+ | `get_official_package_info` | Get official package details (hybrid local/remote) | Any |
126
+
127
+ #### Package Lifecycle Management
128
+ | Tool | Description | Platform |
129
+ |------|-------------|----------|
130
+ | `check_updates_dry_run` | Check for available updates | Arch only |
131
+ | `install_package_secure` | Install with security checks (blocks malicious packages) | Arch only |
132
+ | `remove_package` | Remove single package (with deps, forced) | Arch only |
133
+ | `remove_packages_batch` | Remove multiple packages efficiently | Arch only |
134
+
135
+ #### Package Analysis & Maintenance
136
+ | Tool | Description | Platform |
137
+ |------|-------------|----------|
138
+ | `list_orphan_packages` | Find orphaned packages | Arch only |
139
+ | `remove_orphans` | Clean orphans (dry-run, exclusions) | Arch only |
140
+ | `verify_package_integrity` | Check file integrity (modified/missing files) | Arch only |
141
+ | `list_explicit_packages` | List user-installed packages | Arch only |
142
+ | `mark_as_explicit` | Prevent package from being orphaned | Arch only |
143
+ | `mark_as_dependency` | Allow package to be orphaned | Arch only |
144
+
145
+ #### Package Organization
146
+ | Tool | Description | Platform |
147
+ |------|-------------|----------|
148
+ | `find_package_owner` | Find which package owns a file | Arch only |
149
+ | `list_package_files` | List files in package (regex filtering) | Arch only |
150
+ | `search_package_files` | Search files across packages | Arch only |
151
+ | `list_package_groups` | List all groups (base, base-devel, etc.) | Arch only |
152
+ | `list_group_packages` | Show packages in specific group | Arch only |
153
+
154
+ #### System Monitoring & Diagnostics
155
+ | Tool | Description | Platform |
156
+ |------|-------------|----------|
157
+ | `get_system_info` | System info (kernel, memory, uptime) | Any |
158
+ | `check_disk_space` | Disk usage with warnings | Any |
159
+ | `get_pacman_cache_stats` | Package cache size and age | Arch only |
160
+ | `check_failed_services` | Find failed systemd services | systemd |
161
+ | `get_boot_logs` | Retrieve journalctl boot logs | systemd |
162
+ | `check_database_freshness` | Check package database sync status | Arch only |
163
+
164
+ #### Transaction History & Logs
165
+ | Tool | Description | Platform |
166
+ |------|-------------|----------|
167
+ | `get_transaction_history` | Recent package transactions (install/upgrade/remove) | Arch only |
168
+ | `find_when_installed` | Package installation history | Arch only |
169
+ | `find_failed_transactions` | Failed package operations | Arch only |
170
+ | `get_database_sync_history` | Database sync events | Arch only |
171
+
172
+ #### News & Safety Checks
173
+ | Tool | Description | Platform |
174
+ |------|-------------|----------|
175
+ | `get_latest_news` | Fetch Arch Linux news from RSS | Any |
176
+ | `check_critical_news` | Find critical news (manual intervention required) | Any |
177
+ | `get_news_since_last_update` | News posted since last system update | Arch only |
178
+
179
+ #### Mirror Management
180
+ | Tool | Description | Platform |
181
+ |------|-------------|----------|
182
+ | `list_active_mirrors` | Show configured mirrors | Arch only |
183
+ | `test_mirror_speed` | Test mirror latency | Arch only |
184
+ | `suggest_fastest_mirrors` | Recommend optimal mirrors by location | Any |
185
+ | `check_mirrorlist_health` | Verify mirror configuration | Arch only |
186
+
187
+ #### Configuration Management
188
+ | Tool | Description | Platform |
189
+ |------|-------------|----------|
190
+ | `analyze_pacman_conf` | Parse pacman.conf settings | Arch only |
191
+ | `analyze_makepkg_conf` | Parse makepkg.conf settings | Arch only |
192
+ | `check_ignored_packages` | List ignored packages (warns on critical) | Arch only |
193
+ | `get_parallel_downloads_setting` | Get parallel download config | Arch only |
194
+
195
+ #### Security Analysis
196
+ | Tool | Description | Platform |
197
+ |------|-------------|----------|
198
+ | `analyze_pkgbuild_safety` | Comprehensive PKGBUILD analysis (50+ red flags) | Any |
199
+ | `analyze_package_metadata_risk` | Package trust scoring (votes, maintainer, age) | Any |
200
+
201
+ ### Prompts (Guided Workflows)
202
+
203
+ | Prompt | Purpose | Workflow |
204
+ |--------|---------|----------|
205
+ | `troubleshoot_issue` | Diagnose system errors | Extract keywords → Search Wiki → Context-aware suggestions |
206
+ | `audit_aur_package` | Pre-installation safety audit | Fetch metadata → Analyze PKGBUILD → Security recommendations |
207
+ | `analyze_dependencies` | Installation planning | Check repos → Map dependencies → Suggest install order |
208
+ | `safe_system_update` | Safe update workflow | Check critical news → Verify disk space → List updates → Check services → Recommendations |
209
+
210
+ ---
211
+
212
+ ## Installation
213
+
214
+ ### Prerequisites
215
+ - Python 3.11+
216
+ - [uv](https://github.com/astral-sh/uv) (recommended) or pip
217
+
218
+ ### Quick Install with `uvx`
219
+
220
+ ```bash
221
+ uvx arch-ops-server
222
+ ```
223
+ ---
224
+
225
+ ## Configuration
226
+
227
+ Claude / Cursor / Any MCP client that supports STDIO transport
228
+
229
+ ```json
230
+ {
231
+ "mcpServers": {
232
+ "arch-ops": {
233
+ "command": "uvx",
234
+ "args": ["arch-ops-server"]
235
+ }
236
+ }
237
+ }
238
+ ```
239
+
240
+ ## Contributing
241
+
242
+ Contributions are greatly appreciated. Please feel free to submit a pull request or open an issue and help make things better for everyone.
243
+
244
+ [Contributing Guide](https://nxk.mintlify.app/arch-mcp/contributing)
245
+
246
+ ## License
247
+
248
+ This project is dual-licensed under your choice of:
249
+
250
+ - **[GPL-3.0-only](https://www.gnu.org/licenses/gpl-3.0.en.html)** - See [LICENSE-GPL](LICENSE-GPL)
251
+ - **[MIT License](https://opensource.org/licenses/MIT)** - See [LICENSE-MIT](LICENSE-MIT)
252
+
253
+ You may use this software under the terms of either license. See [LICENSE](LICENSE) for more details.
@@ -0,0 +1,217 @@
1
+ # Arch Linux MCP Server
2
+
3
+ <a href="https://glama.ai/mcp/servers/@nihalxkumar/arch-mcp">
4
+ <img width="380" height="200" src="https://glama.ai/mcp/servers/@nihalxkumar/arch-mcp/badge" />
5
+ </a>
6
+
7
+ **Disclaimer:** Unofficial community project, not affiliated with Arch Linux.
8
+
9
+ A [Model Context Protocol](https://modelcontextprotocol.io/) (MCP) server that bridges AI assistants with the Arch Linux ecosystem. Enables intelligent, safe, and efficient access to the Arch Wiki, AUR, and official repositories for AI-assisted Arch Linux usage on Arch and non-Arch systems.
10
+
11
+ Leverage AI to get output for digestible, structured results that are ready for follow up questions and actions.
12
+
13
+ 📖 [Complete Documentation with Comfy Guides](https://nxk.mintlify.app/arch-mcp)
14
+
15
+ ## Sneak Peak into what's available
16
+
17
+ <details open>
18
+ <summary>Claude Desktop (no terminal)</summary>
19
+
20
+ ![Claude Desktop Demo](assets/claudedesktop_signalcli.gif)
21
+
22
+ </details>
23
+
24
+ <details>
25
+ <summary>VS Code (with terminal)</summary>
26
+
27
+ ![VS Code Demo](assets/vscode_notesnook.gif)
28
+
29
+ </details>
30
+
31
+ ### Resources (URI-based Access)
32
+
33
+ Direct access to Arch ecosystem data via custom URI schemes:
34
+
35
+ #### Documentation & Search
36
+ | URI Scheme | Example | Returns |
37
+ |------------|---------|---------|
38
+ | `archwiki://` | `archwiki://Installation_guide` | Markdown-formatted Wiki page |
39
+
40
+ #### Package Information
41
+ | URI Scheme | Example | Returns |
42
+ |------------|---------|---------|
43
+ | `archrepo://` | `archrepo://vim` | Official repository package details |
44
+ | `aur://*/info` | `aur://yay/info` | AUR package metadata (votes, maintainer, dates) |
45
+ | `aur://*/pkgbuild` | `aur://yay/pkgbuild` | Raw PKGBUILD with safety analysis |
46
+
47
+ #### System Packages (Arch only)
48
+ | URI Scheme | Example | Returns |
49
+ |------------|---------|---------|
50
+ | `pacman://installed` | `pacman://installed` | System installed packages list |
51
+ | `pacman://orphans` | `pacman://orphans` | Orphaned packages |
52
+ | `pacman://explicit` | `pacman://explicit` | Explicitly installed packages |
53
+ | `pacman://groups` | `pacman://groups` | All package groups |
54
+ | `pacman://group/*` | `pacman://group/base-devel` | Packages in specific group |
55
+ | `pacman://database/freshness` | `pacman://database/freshness` | Package database sync status |
56
+
57
+ #### System Monitoring & Logs
58
+ | URI Scheme | Example | Returns |
59
+ |------------|---------|---------|
60
+ | `system://info` | `system://info` | System information (kernel, memory, uptime) |
61
+ | `system://disk` | `system://disk` | Disk space usage statistics |
62
+ | `system://services/failed` | `system://services/failed` | Failed systemd services |
63
+ | `system://logs/boot` | `system://logs/boot` | Recent boot logs |
64
+ | `pacman://log/recent` | `pacman://log/recent` | Recent package transactions |
65
+ | `pacman://log/failed` | `pacman://log/failed` | Failed package transactions |
66
+
67
+ #### News & Updates
68
+ | URI Scheme | Example | Returns |
69
+ |------------|---------|---------|
70
+ | `archnews://latest` | `archnews://latest` | Latest Arch Linux news |
71
+ | `archnews://critical` | `archnews://critical` | Critical news requiring manual intervention |
72
+ | `archnews://since-update` | `archnews://since-update` | News since last system update |
73
+
74
+ #### Configuration
75
+ | URI Scheme | Example | Returns |
76
+ |------------|---------|---------|
77
+ | `config://pacman` | `config://pacman` | Parsed pacman.conf configuration |
78
+ | `config://makepkg` | `config://makepkg` | Parsed makepkg.conf configuration |
79
+ | `mirrors://active` | `mirrors://active` | Currently configured mirrors |
80
+ | `mirrors://health` | `mirrors://health` | Mirror configuration health status |
81
+
82
+ ### Tools (Executable Functions)
83
+
84
+ #### Package Search & Information
85
+ | Tool | Description | Platform |
86
+ |------|-------------|----------|
87
+ | `search_archwiki` | Query Arch Wiki with ranked results | Any |
88
+ | `search_aur` | Search AUR (relevance/votes/popularity/modified) | Any |
89
+ | `get_official_package_info` | Get official package details (hybrid local/remote) | Any |
90
+
91
+ #### Package Lifecycle Management
92
+ | Tool | Description | Platform |
93
+ |------|-------------|----------|
94
+ | `check_updates_dry_run` | Check for available updates | Arch only |
95
+ | `install_package_secure` | Install with security checks (blocks malicious packages) | Arch only |
96
+ | `remove_package` | Remove single package (with deps, forced) | Arch only |
97
+ | `remove_packages_batch` | Remove multiple packages efficiently | Arch only |
98
+
99
+ #### Package Analysis & Maintenance
100
+ | Tool | Description | Platform |
101
+ |------|-------------|----------|
102
+ | `list_orphan_packages` | Find orphaned packages | Arch only |
103
+ | `remove_orphans` | Clean orphans (dry-run, exclusions) | Arch only |
104
+ | `verify_package_integrity` | Check file integrity (modified/missing files) | Arch only |
105
+ | `list_explicit_packages` | List user-installed packages | Arch only |
106
+ | `mark_as_explicit` | Prevent package from being orphaned | Arch only |
107
+ | `mark_as_dependency` | Allow package to be orphaned | Arch only |
108
+
109
+ #### Package Organization
110
+ | Tool | Description | Platform |
111
+ |------|-------------|----------|
112
+ | `find_package_owner` | Find which package owns a file | Arch only |
113
+ | `list_package_files` | List files in package (regex filtering) | Arch only |
114
+ | `search_package_files` | Search files across packages | Arch only |
115
+ | `list_package_groups` | List all groups (base, base-devel, etc.) | Arch only |
116
+ | `list_group_packages` | Show packages in specific group | Arch only |
117
+
118
+ #### System Monitoring & Diagnostics
119
+ | Tool | Description | Platform |
120
+ |------|-------------|----------|
121
+ | `get_system_info` | System info (kernel, memory, uptime) | Any |
122
+ | `check_disk_space` | Disk usage with warnings | Any |
123
+ | `get_pacman_cache_stats` | Package cache size and age | Arch only |
124
+ | `check_failed_services` | Find failed systemd services | systemd |
125
+ | `get_boot_logs` | Retrieve journalctl boot logs | systemd |
126
+ | `check_database_freshness` | Check package database sync status | Arch only |
127
+
128
+ #### Transaction History & Logs
129
+ | Tool | Description | Platform |
130
+ |------|-------------|----------|
131
+ | `get_transaction_history` | Recent package transactions (install/upgrade/remove) | Arch only |
132
+ | `find_when_installed` | Package installation history | Arch only |
133
+ | `find_failed_transactions` | Failed package operations | Arch only |
134
+ | `get_database_sync_history` | Database sync events | Arch only |
135
+
136
+ #### News & Safety Checks
137
+ | Tool | Description | Platform |
138
+ |------|-------------|----------|
139
+ | `get_latest_news` | Fetch Arch Linux news from RSS | Any |
140
+ | `check_critical_news` | Find critical news (manual intervention required) | Any |
141
+ | `get_news_since_last_update` | News posted since last system update | Arch only |
142
+
143
+ #### Mirror Management
144
+ | Tool | Description | Platform |
145
+ |------|-------------|----------|
146
+ | `list_active_mirrors` | Show configured mirrors | Arch only |
147
+ | `test_mirror_speed` | Test mirror latency | Arch only |
148
+ | `suggest_fastest_mirrors` | Recommend optimal mirrors by location | Any |
149
+ | `check_mirrorlist_health` | Verify mirror configuration | Arch only |
150
+
151
+ #### Configuration Management
152
+ | Tool | Description | Platform |
153
+ |------|-------------|----------|
154
+ | `analyze_pacman_conf` | Parse pacman.conf settings | Arch only |
155
+ | `analyze_makepkg_conf` | Parse makepkg.conf settings | Arch only |
156
+ | `check_ignored_packages` | List ignored packages (warns on critical) | Arch only |
157
+ | `get_parallel_downloads_setting` | Get parallel download config | Arch only |
158
+
159
+ #### Security Analysis
160
+ | Tool | Description | Platform |
161
+ |------|-------------|----------|
162
+ | `analyze_pkgbuild_safety` | Comprehensive PKGBUILD analysis (50+ red flags) | Any |
163
+ | `analyze_package_metadata_risk` | Package trust scoring (votes, maintainer, age) | Any |
164
+
165
+ ### Prompts (Guided Workflows)
166
+
167
+ | Prompt | Purpose | Workflow |
168
+ |--------|---------|----------|
169
+ | `troubleshoot_issue` | Diagnose system errors | Extract keywords → Search Wiki → Context-aware suggestions |
170
+ | `audit_aur_package` | Pre-installation safety audit | Fetch metadata → Analyze PKGBUILD → Security recommendations |
171
+ | `analyze_dependencies` | Installation planning | Check repos → Map dependencies → Suggest install order |
172
+ | `safe_system_update` | Safe update workflow | Check critical news → Verify disk space → List updates → Check services → Recommendations |
173
+
174
+ ---
175
+
176
+ ## Installation
177
+
178
+ ### Prerequisites
179
+ - Python 3.11+
180
+ - [uv](https://github.com/astral-sh/uv) (recommended) or pip
181
+
182
+ ### Quick Install with `uvx`
183
+
184
+ ```bash
185
+ uvx arch-ops-server
186
+ ```
187
+ ---
188
+
189
+ ## Configuration
190
+
191
+ Claude / Cursor / Any MCP client that supports STDIO transport
192
+
193
+ ```json
194
+ {
195
+ "mcpServers": {
196
+ "arch-ops": {
197
+ "command": "uvx",
198
+ "args": ["arch-ops-server"]
199
+ }
200
+ }
201
+ }
202
+ ```
203
+
204
+ ## Contributing
205
+
206
+ Contributions are greatly appreciated. Please feel free to submit a pull request or open an issue and help make things better for everyone.
207
+
208
+ [Contributing Guide](https://nxk.mintlify.app/arch-mcp/contributing)
209
+
210
+ ## License
211
+
212
+ This project is dual-licensed under your choice of:
213
+
214
+ - **[GPL-3.0-only](https://www.gnu.org/licenses/gpl-3.0.en.html)** - See [LICENSE-GPL](LICENSE-GPL)
215
+ - **[MIT License](https://opensource.org/licenses/MIT)** - See [LICENSE-MIT](LICENSE-MIT)
216
+
217
+ You may use this software under the terms of either license. See [LICENSE](LICENSE) for more details.
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "arch-ops-server"
3
- version = "2.0.0"
3
+ version = "3.0.1"
4
4
  description = "MCP server bridging AI assistants with Arch Linux ecosystem (Wiki, AUR, official repos)"
5
5
  readme = {file = "README.md", content-type = "text/markdown"}
6
6
  license = { text = "GPL-3.0-only OR MIT" }
@@ -32,6 +32,49 @@ dependencies = [
32
32
 
33
33
  [project.scripts]
34
34
  arch-ops-server = "arch_ops_server:main_sync"
35
+ arch-ops-server-http = "arch_ops_server:main_http_sync"
36
+
37
+ [project.optional-dependencies]
38
+ dev = [
39
+ "pytest>=8.0.0",
40
+ "pytest-asyncio>=0.23.0",
41
+ "pytest-cov>=4.1.0",
42
+ "pytest-mock>=3.12.0",
43
+ "httpx>=0.27.0", # For testing async HTTP
44
+ ]
45
+ http = [
46
+ "starlette>=0.27.0",
47
+ "uvicorn[standard]>=0.23.0",
48
+ ]
49
+
50
+ [tool.pytest.ini_options]
51
+ testpaths = ["tests"]
52
+ python_files = ["test_*.py"]
53
+ python_classes = ["Test*"]
54
+ python_functions = ["test_*"]
55
+ asyncio_mode = "auto"
56
+ asyncio_default_fixture_loop_scope = "function"
57
+ addopts = [
58
+ "-v",
59
+ "--strict-markers",
60
+ "--cov=arch_ops_server",
61
+ "--cov-report=term-missing",
62
+ "--cov-report=html",
63
+ ]
64
+
65
+ [tool.coverage.run]
66
+ source = ["arch_ops_server"]
67
+ omit = ["*/tests/*", "*/__pycache__/*"]
68
+
69
+ [tool.coverage.report]
70
+ exclude_lines = [
71
+ "pragma: no cover",
72
+ "def __repr__",
73
+ "raise AssertionError",
74
+ "raise NotImplementedError",
75
+ "if __name__ == .__main__.:",
76
+ "if TYPE_CHECKING:",
77
+ ]
35
78
 
36
79
  [build-system]
37
80
  requires = ["uv_build>=0.9.4,<0.10.0"]