Skip to content

Commit deadbb4

Browse files
committed
docs: fix broken 'cargo run --example' forms in CLAUDE.md/AGENTS.md
Examples are packages with [[bin]] targets — '--example' fails; use '-p'. README was fixed earlier; these two were maintainer-gated and are now explicitly authorized.
1 parent 955ca7c commit deadbb4

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

AGENTS.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -154,12 +154,12 @@ _On the DRAFT-2026 branch the `notifications/initialized` rule does not apply
154154

155155
## Server & Client Testing
156156
- Start a session‑enabled server (choose backend):
157-
- SQLite (dev): `cargo run --example client-initialise-server -- --port 52950 --storage-backend sqlite --create-tables`
158-
- DynamoDB (prod): `cargo run --example client-initialise-server -- --port 52950 --storage-backend dynamodb --create-tables`
159-
- PostgreSQL (enterprise): `cargo run --example client-initialise-server -- --port 52950 --storage-backend postgres`
160-
- InMemory (fast, no persistence): `cargo run --example client-initialise-server -- --port 52950 --storage-backend inmemory`
157+
- SQLite (dev): `cargo run -p client-initialise-server -- --port 52950 --storage-backend sqlite --create-tables`
158+
- DynamoDB (prod): `cargo run -p client-initialise-server -- --port 52950 --storage-backend dynamodb --create-tables`
159+
- PostgreSQL (enterprise): `cargo run -p client-initialise-server -- --port 52950 --storage-backend postgres`
160+
- InMemory (fast, no persistence): `cargo run -p client-initialise-server -- --port 52950 --storage-backend inmemory`
161161
- Run the compliance client against it:
162-
- `RUST_LOG=info cargo run --example session-management-compliance-test -- http://127.0.0.1:52950/mcp`
162+
- `RUST_LOG=info cargo run -p session-management-compliance-test -- http://127.0.0.1:52950/mcp`
163163
- Explore additional servers/clients for manual testing:
164164
- Servers: `examples/minimal-server`, `examples/comprehensive-server`, `examples/notification-server`
165165
- Clients: `examples/logging-test-client`, `examples/lambda-mcp-client`

CLAUDE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -398,16 +398,16 @@ server.run().await
398398
```bash
399399
cargo build
400400
cargo test
401-
cargo run --example minimal-server
401+
cargo run -p minimal-server
402402

403403
# Specific test suites
404404
cargo test -p turul-mcp-server --features dynamic-tools # Dynamic tools + registry tests
405405
cargo test -p turul-mcp-framework-integration-tests --test event_dispatcher_persistence # Notification persistence
406406
cargo test -p turul-mcp-framework-integration-tests --test compliance # MCP spec compliance
407407

408408
# MCP Testing
409-
cargo run --example client-initialise-server -- --port 52935
410-
cargo run --example client-initialise-report -- --url http://127.0.0.1:52935/mcp
409+
cargo run -p client-initialise-server -- --port 52935
410+
cargo run -p client-initialise-report -- --url http://127.0.0.1:52935/mcp
411411
```
412412

413413
### Debugging: Stale Build Issues

0 commit comments

Comments
 (0)