Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
default: build

.PHONY: build
build:
@cargo build --release

.PHONY: test
test:
@cargo test

.PHONY: sanity
sanity:
@cargo fmt --all --check
@cargo clippy --all-targets --all-features -- -D warnings

.PHONY: format
format:
@cargo fmt --all
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ cd mcp_linux_ssh

2. Build the project:
```bash
cargo build --release
make build
```

The compiled binary will be available at `target/release/mcp_linux_ssh`.
Expand Down Expand Up @@ -570,9 +570,14 @@ To modify or extend this server:

1. Edit the source code in `src/lib.rs`
2. Add new tools by implementing functions with the `#[tool]` attribute
3. Rebuild with `cargo build --release`
3. Rebuild with `make build`
4. Restart your MCP client to pick up changes

### Testing

Run tests with `make sanity test`.
Any formatting errors found by the sanity tests can be corrected with `make format`.

### Logging

The server automatically logs all tool calls to `~/.local/state/mcp_linux_ssh/tool_calls.jsonl` (following XDG Base Directory specification) for debugging and audit purposes. Logs are rotated daily.
Expand Down