Skip to content

feat(mcp): expose resources and prompts capabilities #117

feat(mcp): expose resources and prompts capabilities

feat(mcp): expose resources and prompts capabilities #117

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1
jobs:
# -------------------------------------------------------------------------
# Job 1: host — format, clippy, test on native target
# -------------------------------------------------------------------------
host:
name: Host (fmt + clippy + test)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust stable toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Cache Cargo artifacts
uses: Swatinem/rust-cache@v2
- name: Check formatting
run: cargo fmt --all -- --check
- name: Clippy (warnings as errors)
run: cargo clippy --workspace -- -D warnings
- name: Run tests
run: cargo test --workspace
- name: Smoke test loopback-demo
run: |
timeout 30 cargo run -p loopback-demo | tee /tmp/loopback-demo.out
grep -qF "ping -> 0xDEADBEEF" /tmp/loopback-demo.out
- name: Test MCP server (workspace-excluded)
working-directory: tools/telepath-mcp-server
run: cargo test
# -------------------------------------------------------------------------
# Job 2: firmware — cross-compile check + release build for nRF52840-DK
# -------------------------------------------------------------------------
firmware:
name: Firmware (cross-compile nRF52840-DK)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust stable toolchain with embedded target
uses: dtolnay/rust-toolchain@stable
with:
targets: thumbv7em-none-eabi
- name: Cache Cargo artifacts
uses: Swatinem/rust-cache@v2
- name: Check firmware (no linking)
working-directory: examples/nrf52840-ping
run: cargo check
- name: Build firmware (release)
working-directory: examples/nrf52840-ping
run: cargo build --release