Package Details: python-mcp 1.9.0-2

Git Clone URL: https://aur.archlinux.org/python-mcp.git (read-only, click to copy)
Package Base: python-mcp
Description: Python implementation of the Model Context Protocol (MCP).
Upstream URL: https://github.com/modelcontextprotocol/python-sdk
Licenses: MIT
Submitter: medaminezghal
Maintainer: medaminezghal
Last Packager: medaminezghal
Votes: 1
Popularity: 0.106415
First Submitted: 2025-02-04 16:43 (UTC)
Last Updated: 2025-05-22 14:46 (UTC)

Latest Comments

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.

medaminezghal commented on 2025-04-09 04:50 (UTC)

@frederikv Make new issue in GitHub issues to inform the developers about the problem. I've built it using Pydantic 2.10 and it works.

frederikv commented on 2025-04-09 03:45 (UTC)

makepkg -si fails in the check() stage of the process:

Error executing tool delete_file: Accessing the 'model_fields' attribute on the instance is deprecated. Instead, you should access this attribute from the model class. Deprecated in Pydantic V2.11 to be removed in V3.

Overall, 35 tests fail.

medaminezghal commented on 2025-03-25 13:12 (UTC)

@dreieck it's not needed to use specific version of uv so I made it download always the latest version and skip it checksum verification.

dreieck commented on 2025-03-25 09:22 (UTC)

Can you please make the source downloaded files version dependent, by e.g. prepending uv-aarch64-unknown-linux-gnu-${pkgver}.tar.gz:: to the uv-aarch64-unknown-linux-gnu.tar.gz source entry; similar for uv-x86_64-unknown-linux-gnu.tar.gz?

Otherwise after version update when the old source file still lies around makepkg tries to use the old one and fails:

==> Validating source_x86_64 files with sha256sums...
    uv-x86_64-unknown-linux-gnu.tar.gz ... FAILED
==> ERROR: One or more files did not pass the validity check!

Regards!