Package Details: python-mcp 1.12.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.41
First Submitted: 2025-02-04 16:43 (UTC)
Last Updated: 2025-08-01 05:20 (UTC)

Latest Comments

1 2 3 4 5 Next › Last »

medaminezghal commented on 2025-07-23 12:10 (UTC)

@mcr try to delete yay cache then update it again.

mcr commented on 2025-07-23 12:07 (UTC)

I'm getting a different error, also in check():

>               pytest.fail(f"Server process exited with code {process.returncode}")
E               Failed: Server process exited with code 1

tests/issues/test_1027_win_unreachable_cleanup.py:211: Failed
------------------------------------------------------- Captured stderr call -------------------------------------------------------Traceback (most recent call last):
  File "/tmp/tmpb3_5o30d.py", line 6, in <module>
    from mcp.server.fastmcp import FastMCP
  File "/home/mario/.cache/yay/python-mcp/src/mcp-1.12.1/test-env/lib/python3.13/site-packages/mcp/__init__.py", line 1, in <module>  File "/home/mario/.cache/yay/python-mcp/src/mcp-1.12.1/test-env/lib/python3.13/site-packages/mcp/client/session.py", line 10, in <module>
ModuleNotFoundError: No module named 'mcp.types'
===================================================== short test summary info ======================================================FAILED tests/issues/test_1027_win_unreachable_cleanup.py::test_stdin_close_triggers_cleanup - Failed: Server process exited with code 1
======================================= 1 failed, 516 passed, 2 skipped, 1 xfailed in 19.65s =========================================> 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

gwuensch commented on 2025-07-18 01:09 (UTC)

@techmanwalker to quote @envolution:

uninstall python-pytest-benchmark or makepkg with --nocheck

techmanwalker commented on 2025-07-17 21:05 (UTC)

==> Iniciando check()...
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR>   File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 285, in wrap_session
INTERNALERROR>     config._do_configure()
INTERNALERROR>     ~~~~~~~~~~~~~~~~~~~~^^
INTERNALERROR>   File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 1119, in _do_configure
INTERNALERROR>     self.hook.pytest_configure.call_historic(kwargs=dict(config=self))
INTERNALERROR>     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR>   File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 534, in call_historic
INTERNALERROR>     res = self._hookexec(self.name, self._hookimpls.copy(), kwargs, False)
INTERNALERROR>   File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec
INTERNALERROR>     return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
INTERNALERROR>            ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR>   File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall
INTERNALERROR>     raise exception
INTERNALERROR>   File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall
INTERNALERROR>     res = hook_impl.function(*args)
INTERNALERROR>   File "/usr/lib/python3.13/site-packages/pytest_benchmark/plugin.py", line 448, in pytest_configure
INTERNALERROR>     bs = config._benchmarksession = BenchmarkSession(config)
INTERNALERROR>                                     ~~~~~~~~~~~~~~~~^^^^^^^^
INTERNALERROR>   File "/usr/lib/python3.13/site-packages/pytest_benchmark/session.py", line 65, in __init__
INTERNALERROR>     self.logger.warn(
INTERNALERROR>     ~~~~~~~~~~~~~~~~^
INTERNALERROR>         "Benchmarks are automatically disabled because xdist plugin is active."
INTERNALERROR>         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR>         "Benchmarks cannot be performed reliably in a parallelized environment.",
INTERNALERROR>         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR>     )
INTERNALERROR>     ^
INTERNALERROR>   File "/usr/lib/python3.13/site-packages/pytest_benchmark/logger.py", line 46, in warn
INTERNALERROR>     warner(PytestBenchmarkWarning(text))
INTERNALERROR>     ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> pytest_benchmark.logger.PytestBenchmarkWarning: Benchmarks are automatically disabled because xdist plugin is active.Benchmarks cannot be performed reliably in a parallelized environment.
==> ERROR: Se produjo un fallo en check().
    Cancelando...
-> error compilando: python-mcp-exit status 4
-> Ha fallado al instalar los siguientes paquetes. Una intervención manual es requerida:
python-mcp - exit status 4

medaminezghal commented on 2025-07-15 18:04 (UTC)

@throstur Could you send me the tests failures in comment?

throstur commented on 2025-07-15 17:38 (UTC)

I had a lot of trouble getting all the tests to pass for this package; I ended up commenting out the check() function of the PKGBUILD to skip them, but I don't recommend this.

medaminezghal commented on 2025-07-11 13:10 (UTC) (edited on 2025-07-11 19:26 (UTC) by medaminezghal)

@gwuensch Thanks for the patch

gwuensch commented on 2025-07-11 11:47 (UTC)

@medaminezghal could you also make sure to install the license file correctly? It is already installed in the dist-info, so a symlink in the proper location should be enough:

diff --git a/PKGBUILD b/PKGBUILD
index 80ca38d..3a2ac66 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -39,4 +39,10 @@ check() {
 package() {
   cd "${srcdir}"/${_name}-$pkgver
   python -m installer --destdir="$pkgdir" dist/*.whl
+
+  # Symlink license file
+  local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
+  install -d "${pkgdir}/usr/share/licenses/${pkgname}"
+  ln -s "${site_packages}/${_name}-${pkgver}.dist-info/licenses/LICENSE" \
+    "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
 }

Logic taken from the python-parso PKGBUILD.

medaminezghal commented on 2025-07-11 07:44 (UTC)

@envolution Thanks for the notice. I've fixed the problem.