forked from paiml/rust-mcp-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
62 lines (46 loc) · 1.25 KB
/
justfile
File metadata and controls
62 lines (46 loc) · 1.25 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# PMCP SDK development recipes
# Default recipe: show available recipes
default:
@just --list
# === Examples ===
# Run the chess MCP App example
run-chess:
cd examples/mcp-apps-chess && cargo run
# Run the map MCP App example
run-map:
cd examples/mcp-apps-map && cargo run
# Run the data visualization MCP App example
run-dataviz:
cd examples/mcp-apps-dataviz && cargo run
# === E2E Tests ===
# Run all E2E widget tests
test-e2e:
cargo test -p mcp-e2e-tests -- --test-threads=1
# Run chess widget E2E tests
test-e2e-chess:
cargo test -p mcp-e2e-tests chess -- --test-threads=1
# Run map widget E2E tests
test-e2e-map:
cargo test -p mcp-e2e-tests map -- --test-threads=1
# Run data viz widget E2E tests
test-e2e-dataviz:
cargo test -p mcp-e2e-tests dataviz -- --test-threads=1
# Pre-download Chromium for E2E tests (useful for CI)
setup-e2e:
cargo test -p mcp-e2e-tests --no-run
# === Quality ===
# Run quality gate (format + clippy + build + test)
quality-gate:
cargo fmt --check
cargo clippy -- -D warnings
cargo build
cargo test --lib --tests -- --test-threads=1
# Run all tests
test:
cargo test -- --test-threads=1
# Format code
fmt:
cargo fmt
# Run clippy
clippy:
cargo clippy -- -D warnings