Package Details: python-mcp 1.13.1-4

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.20
First Submitted: 2025-02-04 16:43 (UTC)
Last Updated: 2025-09-02 05:41 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 5 Next › Last »

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.

envolution commented on 2025-07-11 07:34 (UTC)

needs extra/python-dirty-equals to pass check()

tests/server/fastmcp/test_func_metadata.py:6: in <module>
    from dirty_equals import IsPartialDict
E   ModuleNotFoundError: No module named 'dirty_equals'

gwuensch commented on 2025-06-27 19:22 (UTC)

@envolution you're right, the MIT license should be installed with the rest of the package.

License families like BSD or MIT are, strictly speaking, not a single license and each instance requires a separate license file. In license variable refer to them using a common SPDX identifier (e.g. BSD-3-Clause or MIT), but then provide the corresponding file as if it was a custom license.

https://wiki.archlinux.org/title/PKGBUILD#license

envolution commented on 2025-06-27 19:10 (UTC) (edited on 2025-06-27 19:26 (UTC) by envolution)

MIT is not included in 'arch common' licences:

$ ls /usr/share/licenses/spdx/MIT*
ls: cannot access '/usr/share/licenses/spdx/MIT*': No such file or directory

you can also use pacman-contrib's updpkgsums in the PKGBUILD root to update shasums for multiple sources incl git

gwuensch commented on 2025-06-27 16:02 (UTC) (edited on 2025-06-27 16:02 (UTC) by gwuensch)

@medaminezghal makepkg -g is able to generate checksums for git repos when referencing stable tags or commits, see https://wiki.archlinux.org/title/VCS_package_guidelines#Git_checksums

lightdot commented on 2025-06-27 15:50 (UTC)

@medaminezghal, I haven't tried yet but looks like @gwuensch did, so I'm sure it's OK. Like mentioned, it's not an ideal approach because the build now skips the sha256sum test, but it's not the end of the world...

If you're not building packages in a clean chroot, I'd recommend it. Not just to catch build errors, but to keep your system clean...

Thanks for working on this package.