Skip to content

Commit 457a885

Browse files
committed
f
1 parent fb8def1 commit 457a885

File tree

4 files changed

+5
-5621
lines changed

4 files changed

+5
-5621
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ t/plugin/grpc-web/grpc-web-server
8484
t/plugin/grpc-web/node_modules/
8585
pack
8686
pack-v*-linux.tgz*
87-
t/plugin/filesystem/
87+
t/plugin/mcp/servers/
8888
t/node_modules/
8989

9090
# release tar package

ci/prepare_filesystem_mcp.sh

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -26,31 +26,19 @@ VERSION="2025.7.1"
2626
URL="https://github.com/modelcontextprotocol/servers/archive/refs/tags/${VERSION}.tar.gz"
2727

2828
WORKDIR="$(mktemp -d)"
29-
DEST_DIR="${REPO_ROOT}/t/plugin/filesystem"
30-
LOCK_SRC="${REPO_ROOT}/t/plugin/mcp/assets/package-lock.json"
29+
DEST_DIR="${REPO_ROOT}/t/plugin/mcp/servers"
3130

3231
curl -L "${URL}" | tar -xz -C "${WORKDIR}"
3332

3433
rm -rf "${DEST_DIR}"
3534
mkdir -p "$(dirname "${DEST_DIR}")"
3635

37-
cp -R "${WORKDIR}/servers-${VERSION}/src/filesystem" "${DEST_DIR}"
38-
39-
# lock deps
40-
if [[ -f "${LOCK_SRC}" ]]; then
41-
cp "${LOCK_SRC}" "${DEST_DIR}/package-lock.json"
42-
else
43-
echo "[WARN] package-lock.json not found: ${LOCK_SRC}"
44-
fi
45-
46-
# force noEmit = false (insert after "compilerOptions": line)
47-
sed -i '/"compilerOptions"[[:space:]]*:/a\
48-
"noEmit": false,' "${DEST_DIR}/tsconfig.json"
36+
cp -R "${WORKDIR}/servers-${VERSION}" "${DEST_DIR}"
4937

5038
(
5139
cd "${DEST_DIR}"
5240
npm install
53-
npm run build
41+
npm run build -w @modelcontextprotocol/server-filesystem
5442
)
5543

5644
echo "[OK] filesystem MCP ready: ${DEST_DIR}"

t/plugin/mcp-bridge.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ property "args" validation failed: wrong type: expected array, got string
7272
"mcp-bridge": {
7373
"base_uri": "/mcp",
7474
"command": "node",
75-
"args": ["t/plugin/filesystem/dist/index.js", "/"]
75+
"args": ["t/plugin/mcp/servers/src/filesystem/dist/index.js", "/"]
7676
}
7777
},
7878
"uri": "/mcp/*"

0 commit comments

Comments
 (0)