forked from lnay/cratedocs-mcp
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathjustfile
More file actions
34 lines (26 loc) · 1.08 KB
/
justfile
File metadata and controls
34 lines (26 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
install:
cargo install --git https://github.com/promptexecution/rust-cargo-docs-rag-mcp --locked
# Build with pkgx (ensures correct Rust version and dependencies)
pkgx-build:
pkgx +rust +cargo cargo build --release
# Run with pkgx
pkgx-run:
pkgx +rust +cargo cargo run --bin cratedocs http --address 0.0.0.0:3000 --debug
# Test with pkgx
pkgx-test:
pkgx +rust +cargo cargo test
run:
cargo run --bin cratedocs http --address 0.0.0.0:3000 --debug
install-pkgx:
@echo "Using pkgx pantry at {{invocation_directory()}}/pkgx"
PKGX_PANTRY_PATH={{invocation_directory()}}/pkgx \
PKGX_PANTRY_DIR={{invocation_directory()}}/pkgx \
pkgx cratedocs version || \
(echo "pkgx failed (likely no network); see README for manual steps" && exit 1)
docker-build:
docker build -t promptexecution/rust-cargo-docs-rag-mcp .
docker-run:
docker run --rm -p 8080:8080 promptexecution/rust-cargo-docs-rag-mcp
debug-mcp-remote:
# use bunx or npx to see how the mcp-remote proxy connects
bunx mcp-remote@latest "http://127.0.0.1:3000/sse" --allow-http --transport sse-only --debug