Package Details: python-mcp 1.23.3-1

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: 2
Popularity: 0.029191
First Submitted: 2025-02-04 16:43 (UTC)
Last Updated: 2025-12-10 10:09 (UTC)

Latest Comments

1 2 3 4 5 6 7 Next › Last »

medaminezghal commented on 2025-12-03 09:09 (UTC)

@bitgamma python-pytest-benchmark conflicts with python-pytest-xdist. Just remove python-pytest-benchmark and it will work.

bitgamma commented on 2025-12-03 08:41 (UTC)

Build fails here with:

Benchmarks are automatically disabled because xdist plugin is active.Benchmarks cannot be performed reliably in a parallelized environment.

Workaround: setting PYTEST_XDIST_AUTO_NUM_WORKERS=0

medaminezghal commented on 2025-11-04 06:32 (UTC)

@dreieck @gwuensch Thank you for your suggestions.

gwuensch commented on 2025-11-03 21:28 (UTC)

Missing dependency python-pyjwt as of #1247

gwuensch commented on 2025-11-03 19:39 (UTC)

your PKGBUILD needlessly clones the whole upstream repository again at version change.

In case this is changed (I'm neutral on whether this is actually necessary), it would be nice if prepare() could include git clean -fdx to remove stale wheels and other build artifacts that commonly lead to packaging errors.

dreieck commented on 2025-11-03 17:02 (UTC)

@dreieck that's weird, works for me™. Error message says your uv version is too old. Maybe try upgrading, the current version in extra is 0.9.7, not 0.9.3.

It turned out that it is Artix that is lagging behind.

Regards!

dreieck commented on 2025-11-03 16:48 (UTC) (edited on 2025-11-03 16:55 (UTC) by dreieck)

Ahoj,

your PKGBUILD needlessly clones the whole upstream repository again at version change.

Please change

source=("$_name-$pkgver::git+$url.git#tag=v$pkgver"

to

source=("$_name::git+$url.git#tag=v$pkgver"

in order to always use the already cloned git repository (if not deleted by the user) and only update and check out the current tag.

(And then also adapt the directories in the prepare(), build(), check() and package() function accordingly.)

Regards and thanks for maintaining!

Regards!

gwuensch commented on 2025-11-02 12:49 (UTC)

@dreieck that's weird, works for me™. Error message says your uv version is too old. Maybe try upgrading, the current version in extra is 0.9.7, not 0.9.3.

dreieck commented on 2025-11-01 11:12 (UTC)

Having cleaning the build directory, check() fails for me with AssertionError: assert 2 == 0:

========================================================================= FAILURES ==========================================================================
__________________________________________________________________ test_command_execution ___________________________________________________________________
[gw2] linux -- Python 3.13.7 /var/cache/makepkg/build/python-mcp/src/mcp-1.19.0/test-env/bin/python

mock_config_path = PosixPath('/tmp/pytest-of-felics/pytest-1/popen-gw2/test_command_execution0/Claude')

    def test_command_execution(mock_config_path: Path):
        """Test that the generated command can actually be executed."""
        # Setup
        server_name = "test_server"
        file_spec = "test_server.py:app"

        # Update config
        success = update_claude_config(file_spec=file_spec, server_name=server_name)
        assert success

        # Read the generated config
        config_file = mock_config_path / "claude_desktop_config.json"
        config = json.loads(config_file.read_text())

        # Get the command and args
        server_config = config["mcpServers"][server_name]
        command = server_config["command"]
        args = server_config["args"]

        test_args = [command] + args + ["--help"]

        result = subprocess.run(test_args, capture_output=True, text=True, timeout=60, check=False)

>       assert result.returncode == 0
E       AssertionError: assert 2 == 0
E        +  where 2 = CompletedProcess(args=['/usr/bin/uv', 'run', '--with', 'mcp[cli]', 'mcp', 'run', '/var/cache/makepkg/build/python-mcp/src/mcp-1.19.0/test_server.py:app', '--help'], returncode=2, stdout='', stderr='warning: The `tool.uv.dev-dependencies` field (used in `examples/clients/simple-auth-client/pyproject.toml`, `examples/clients/simple-chatbot/pyproject.toml`) is deprecated and will be removed in a future release; use `dependency-groups.dev` instead\nerror: Required uv version `>=0.9.5` does not match the running version `0.9.3`\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=['/usr/bin/uv', 'run', '--with', 'mcp[cli]', 'mcp', 'run', '/var/cache/makepkg/build/python-mcp/src/mcp-1.19.0/test_server.py:app', '--help'], returncode=2, stdout='', stderr='warning: The `tool.uv.dev-dependencies` field (used in `examples/clients/simple-auth-client/pyproject.toml`, `examples/clients/simple-chatbot/pyproject.toml`) is deprecated and will be removed in a future release; use `dependency-groups.dev` instead\nerror: Required uv version `>=0.9.5` does not match the running version `0.9.3`\n').returncode
=================================================== 1 failed, 674 passed, 2 skipped, 1 xfailed in 20.85s ====================================================
==> ERROR: A failure occurred in check().

Regards!