Package Details: python-mcp 1.27.1-2

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)

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).

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 Next › Last »

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!

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

You should clean the test environment before doing check(), otherwise subsequent makepkg run fails:

==> Starting check()...
ln: failed to create symbolic link 'test-env/bin/ruff': File exists
==> ERROR: A failure occurred in check().

steccas commented on 2025-10-22 18:09 (UTC)

Please, packege is out of date and has an error with check

medaminezghal commented on 2025-09-19 15:32 (UTC)

@rubin55 This problem is related to python-pytest-examples which require python-black which require python-pytokens.

There is an issue about it.

rubin55 commented on 2025-09-19 15:06 (UTC)

makedepends needs python-pytokens

medaminezghal commented on 2025-08-24 09:11 (UTC)

@rubin55 @gwuensch I reverted the changes about the tests because it seems that mcp need to be installed to pass the tests.

rubin55 commented on 2025-08-23 19:31 (UTC)

@medaminezghal no, not completely actually. I re-ran and now two tests keep failing with the same error message. I only discovered because I didn't have python-mcp installed; To "trick" it, I installed python-mcp and then these two tests succeeded. But of course that's no good, because when the tests use a system-installed mcp module, it's not testing the package but whatever (presumably older) version the system had installed.