@Auerhuhn I've fixed the problem, thanks.
Search Criteria
Package Details: python-mcp 1.27.1-2
Package Actions
| Git Clone URL: | https://aur.archlinux.org/python-mcp.git (read-only, click to copy) |
|---|---|
| Package Base: | python-mcp |
| Description: | Model Context Protocol SDK. |
| Upstream URL: | https://github.com/modelcontextprotocol/python-sdk |
| Licenses: | MIT |
| Submitter: | medaminezghal |
| Maintainer: | medaminezghal |
| Last Packager: | medaminezghal |
| Votes: | 5 |
| Popularity: | 1.11 |
| First Submitted: | 2025-02-04 16:43 (UTC) |
| Last Updated: | 2026-05-15 22:01 (UTC) |
Dependencies (38)
- python
- python-anyio
- python-cryptography
- python-httpx (python-httpx-gitAUR)
- python-httpx-sseAUR
- python-jsonschema
- python-pydantic
- python-pydantic-settings
- python-pyjwt
- python-python-multipart
- python-sse-starletteAUR
- python-starlette
- python-typing-inspection
- python-typing_extensions
- uvicorn
- git (git-gitAUR, git-glAUR, git-wd40AUR) (make)
- python-build (make)
- python-hatchling (python-hatchling-gitAUR) (make)
- python-installer (make)
- python-uv-dynamic-versioningAUR (make)
- Show 18 more dependencies...
Required by (40)
- arxiv-mcp-server
- browser-use-cli (optional)
- docmancer-git
- dsview-git
- ghidra-mcp
- ghidra-mcp-git
- graphify (optional)
- litellm (optional)
- marimo (optional)
- mcp-handley-lab-git
- mistral-vibe
- newelle
- nyarchassistant
- nyarchassistant-git
- open-webui-no-venv
- oterm
- oterm-git
- python-claude-agent-sdk
- python-dbgprobe-mcp-server
- python-ddgs (optional)
- python-dspy (optional)
- python-fastmcp
- python-google-genai (check)
- python-gradio (check)
- python-gradio (optional)
- python-ida-pro-mcp
- python-ida-pro-mcp-git
- python-kicad-sch-api
- python-livekit-agents (optional)
- python-mistralai (optional)
- python-openai-agents
- python-ouroboros-ai (optional)
- python-pydantic-ai
- python-pydantic-ai-examples
- python-pydantic-ai-slim (optional)
- python-pyghidra-lite
- semgrep-bin
- virtme-ng-git (optional)
- wayper (optional)
- zotero-mcp-server
Sources (2)
medaminezghal commented on 2025-06-16 14:53 (UTC)
Auerhuhn commented on 2025-06-16 14:11 (UTC)
@gregg Your uv tarball is out of date. Delete the file uv-x86_64-unknown-linux-gnu.tar.gz from your ~/.cache/yay/python-mcp directory and try again.
gregg commented on 2025-06-16 13:31 (UTC) (edited on 2025-06-16 13:32 (UTC) by gregg)
currently trying to upgrade python-mcp and its erroring with this error:
E AssertionError: assert 2 == 0
E + where 2 = CompletedProcess(args=['/home/gregg/.cache/yay/python-mcp/src/uv/uv', 'run', '--with', 'mcp[cli]', 'mcp', 'run', '/home/gregg/.cache/yay/python-mcp/src/mcp-1.9.4/test_server.py:app', '--help'], returncode=2, stdout='', stderr='error: Required uv version `>=0.7.2` does not match the running version `0.6.12`\n').returncode
tests/client/test_config.py:49: AssertionError
===================================================== short test summary info =====================================================
FAILED tests/client/test_config.py::test_command_execution - AssertionError: assert 2 == 0
+ where 2 = CompletedProcess(args=['/home/gregg/.cache/yay/python-mcp/src/uv/uv', 'run', '--with', 'mcp[cli]', 'mcp', 'run', '/home/gregg/.cache/yay/python-mcp/src/mcp-1.9.4/test_server.py:app', '--help'], returncode=2, stdout='', stderr='error: Required uv version `>=0.7.2` does not match the running version `0.6.12`\n').returncode
============================================ 1 failed, 370 passed, 1 skipped in 3.42s =============================================
==> ERROR: A failure occurred in check().
Aborting...
-> error making: python-mcp-exit status 4
-> Failed to install the following packages. Manual intervention is required:
python-mcp - exit status 4
Auerhuhn commented on 2025-06-15 10:30 (UTC) (edited on 2025-06-15 10:34 (UTC) by Auerhuhn)
@medaminezghal Several unit tests in test_streamable_http.py require it.
This breaks check() when trying to build your PKGBUILD in a clean chroot:
==================================== ERRORS ====================================
____________ ERROR collecting tests/shared/test_streamable_http.py _____________
ImportError while importing test module '/build/python-mcp/src/mcp-1.9.4/tests/shared/test_streamable_http.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
[…]
tests/shared/test_streamable_http.py:17: in <module>
import requests
E ModuleNotFoundError: No module named 'requests'
=========================== short test summary info ============================
ERROR tests/shared/test_streamable_http.py
=================== 345 passed, 1 skipped, 1 error in 10.39s ===================
==> ERROR: A failure occurred in check().
Aborting...
medaminezghal commented on 2025-06-15 08:11 (UTC)
@Auerhuhn why should I add python-requests to checkdepends to checkdepends?
Auerhuhn commented on 2025-06-14 23:29 (UTC)
Hi @medaminezghal,
Thanks for maintaining this PKGBUILD.
Would you mind adding python-requests to checkdepends?
gwuensch commented on 2025-06-12 19:50 (UTC)
+1 on the freeze @FabioCosta0305 experienced. Strangely enough, doing a clean rebuild fixed it for me. No idea what caused it the first time.
FabioCosta0305 commented on 2025-05-28 00:56 (UTC) (edited on 2025-05-28 16:34 (UTC) by FabioCosta0305)
@medaminezghal
When I try ot build, it freezes on the test for tests/shared/test_streamable_http.py::test_streamablehttp_client_resumption
=============================================================================================== test session starts ===============================================================================================
platform linux -- Python 3.13.3, pytest-8.3.5, pluggy-1.6.0 -- /home/fabioec/.cache/paru/clone/python-mcp/src/mcp-1.9.0/test-env/bin/python
cachedir: .pytest_cache
hypothesis profile 'default'
rootdir: /home/fabioec/.cache/paru/clone/python-mcp/src/mcp-1.9.0
configfile: pyproject.toml
plugins: asyncio-0.26.0, cov-6.1.1, nbval-0.11.0, timeout-2.4.0, aiohttp-1.0.5, flakefinder-1.1.0, xdist-3.6.1, anyio-4.9.0, mock-3.14.0, hypothesis-6.131.28, examples-0.0.18
asyncio: mode=Mode.STRICT, asyncio_default_fixture_loop_scope=None, asyncio_default_test_loop_scope=function
collected 313 items / 1 deselected / 312 selected
tests/client/test_config.py::test_command_execution PASSED [ 0%]
... lines ...
tests/shared/test_streamable_http.py::test_streamablehttp_client_basic_connection PASSED [ 87%]
tests/shared/test_streamable_http.py::test_streamablehttp_client_resource_read PASSED [ 88%]
tests/shared/test_streamable_http.py::test_streamablehttp_client_tool_invocation PASSED [ 88%]
tests/shared/test_streamable_http.py::test_streamablehttp_client_error_handling PASSED [ 88%]
tests/shared/test_streamable_http.py::test_streamablehttp_client_session_persistence PASSED [ 89%]
tests/shared/test_streamable_http.py::test_streamablehttp_client_json_response PASSED [ 89%]
tests/shared/test_streamable_http.py::test_streamablehttp_client_get_stream PASSED [ 89%]
tests/shared/test_streamable_http.py::test_streamablehttp_client_session_termination PASSED [ 90%]
tests/shared/test_streamable_http.py::test_streamablehttp_client_session_termination_204 PASSED [ 90%]
tests/shared/test_streamable_http.py::test_streamablehttp_client_resumption
medaminezghal commented on 2025-05-22 14:45 (UTC)
@saruman sorry the dependency should be python-python-multipart not python-multipart
saruman commented on 2025-05-22 14:07 (UTC) (edited on 2025-05-22 14:14 (UTC) by saruman)
Latest update (1.9.0-1) does fail building with following messages:
===============================short test summary info========================
FAILED tests/server/auth/test_error_handling.py::TestTokenErrorHandling::test_token_error_handling_auth_code - AssertionError: The python-multipart library must be installed to use form parsing.
FAILED tests/server/auth/test_error_handling.py::TestTokenErrorHandling::test_token_error_handling_refresh_token - AssertionError: The python-multipart library must be installed to use form parsing.
FAILED tests/server/fastmcp/auth/test_auth_integration.py::TestAuthEndpoints::test_token_validation_error - AssertionError: The python-multipart library must be installed to use form parsing.
FAILED tests/server/fastmcp/auth/test_auth_integration.py::TestAuthEndpoints::test_token_invalid_auth_code - AssertionError: The python-multipart library must be installed to use form parsing.
FAILED tests/server/fastmcp/auth/test_auth_integration.py::TestAuthEndpoints::test_token_expired_auth_code - AssertionError: The python-multipart library must be installed to use form parsing.
FAILED tests/server/fastmcp/auth/test_auth_integration.py::TestAuthEndpoints::test_token_redirect_uri_mismatch[registered_client0] - AssertionError: The python-multipart library must be installed to use form parsing.
FAILED tests/server/fastmcp/auth/test_auth_integration.py::TestAuthEndpoints::test_token_code_verifier_mismatch - AssertionError: The python-multipart library must be installed to use form parsing.
FAILED tests/server/fastmcp/auth/test_auth_integration.py::TestAuthEndpoints::test_token_invalid_refresh_token - AssertionError: The python-multipart library must be installed to use form parsing.
FAILED tests/server/fastmcp/auth/test_auth_integration.py::TestAuthEndpoints::test_token_expired_refresh_token - AssertionError: The python-multipart library must be installed to use form parsing.
FAILED tests/server/fastmcp/auth/test_auth_integration.py::TestAuthEndpoints::test_token_invalid_scope - AssertionError: The python-multipart library must be installed to use form parsing.
FAILED tests/server/fastmcp/auth/test_auth_integration.py::TestAuthEndpoints::test_authorize_form_post - assert 400 == 302
+ where 400 = <Response [400 Bad Request]>.status_code
FAILED tests/server/fastmcp/auth/test_auth_integration.py::TestAuthEndpoints::test_authorization_get - AssertionError: The python-multipart library must be installed to use form parsing.
FAILED tests/server/fastmcp/auth/test_auth_integration.py::TestAuthEndpoints::test_revoke_invalid_token - AssertionError: The python-multipart library must be installed to use form parsing.
FAILED tests/server/fastmcp/auth/test_auth_integration.py::TestAuthEndpoints::test_revoke_with_malformed_token - AssertionError: The python-multipart library must be installed to use form parsing.
============================================================================= 14 failed, 297 passed, 1 skipped, 1 deselected in 8.33s ==============================================================================
python-multipart is installed on the system.
Pinned Comments
medaminezghal commented on 2026-05-15 22:58 (UTC)
@everyone I’m working towards making this package automatically updated by GitHub CI, this is my repository used to maintain my packages. Every package before it’s updated should be successfully builded in clean environment (ensured by CI). So if you encounter any errors, just clean the cache and try again. Everyone is welcomed to help improve packaging by making issue or improve the CI by pull request (I’m new to CI, in fact I wrote it using AI, I think it still need improvement, I would be happy if anyone put his experience to help improve the CI).