nvim-mcp-git
LOW
maintainer rubin55
0 votes
scanned 2026-09-19 13:30:35.967305
Why flagged
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
Triggered rules
Low
Few votes, recently uploaded
zero_votes_recent
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
PKGBUILD
1
# Maintainer: Rubin Simons <me@rubin55.org>
2
3
_branch=main
4
_pkgname=nvim-mcp
5
pkgname=${_pkgname}-git
6
pkgver=r323.986be68
7
pkgrel=1
8
pkgdesc='MCP server for Neovim, git main build'
9
arch=('x86_64' 'aarch64')
10
url="https://github.com/linw1995/${_pkgname}"
11
license=('Apache-2.0')
12
depends=('gcc-libs' 'glibc')
13
makedepends=('cargo' 'git')
14
checkdepends=('neovim')
15
optdepends=('neovim: Lua plugin that registers the RPC socket')
16
provides=("${_pkgname}")
17
conflicts=("${_pkgname}")
18
install="${pkgname}.install"
19
source=("${pkgname}::git+${url}.git#branch=${_branch}")
20
sha256sums=('SKIP')
21
22
pkgver() {
23
cd "${srcdir}/${pkgname}"
24
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
25
}
26
27
prepare() {
28
cd "${srcdir}/${pkgname}"
29
export RUSTUP_TOOLCHAIN=stable
30
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
31
}
32
33
build() {
34
cd "${srcdir}/${pkgname}"
35
export RUSTUP_TOOLCHAIN=stable
36
export CARGO_TARGET_DIR=target
37
38
# build.rs reads these for `nvim-mcp --version`; the checkout is clean.
39
export GIT_COMMIT_SHA="$(git rev-parse HEAD)"
40
export GIT_DIRTY=false
41
42
# aws-lc-sys compiles its C and assembly with the cc crate; LTO hides
43
# those symbols from rust-lld and linking fails with undefined
44
# aws_lc_*_EVP_AEAD_CTX_zero references.
45
export CFLAGS="${CFLAGS//-flto=auto/}"
46
export CXXFLAGS="${CXXFLAGS//-flto=auto/}"
47
48
cargo build --frozen --release
49
}
50
51
check() {
52
cd "${srcdir}/${pkgname}"
53
export RUSTUP_TOOLCHAIN=stable
54
export CARGO_TARGET_DIR=target
55
56
# Integration tests drive a live Neovim instance and its LSP servers.
57
cargo test --frozen --release -- --skip integration_tests
58
}
59
60
package() {
61
cd "${srcdir}/${pkgname}"
62
install -Dm755 "target/release/${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
63
64
install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
65
install -Dm644 -t "${pkgdir}/usr/share/doc/${pkgname}/docs" docs/*.md
66
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
67
}
68
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-19 13:30:35 | Low | 1 |