Skip to content

Commit 0a6831b

Browse files
authored
chore: update mcp discovery to support library crate (#10)
* refactor: types * refactor: sub type modules * chore: update tests * refactor: getters * refactor: tests * chore: add code comments * chore: clippy * chore: update cargo * chore: update docs * chore: update website link
1 parent 25ed8ee commit 0a6831b

22 files changed

+1015
-820
lines changed

.github/workflows/publish.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Publish to Crates.io
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout Repository
13+
uses: actions/checkout@v4
14+
15+
- name: Cache Rust
16+
uses: actions/cache@v4
17+
with:
18+
path: |
19+
~/.rustup/toolchains
20+
~/.cargo/registry
21+
~/.cargo/git
22+
target
23+
key: ${{ runner.os }}-rust-${{ steps.toolchain.outputs.cachekey }}
24+
restore-keys: ${{ runner.os }}-rust-
25+
26+
- name: Install Rust Toolchain
27+
uses: dtolnay/rust-toolchain@stable
28+
29+
- name: Publish to Crates.io
30+
env:
31+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
32+
run: cargo publish --token $CARGO_REGISTRY_TOKEN

Cargo.lock

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ edition = "2021"
55
repository = "https://github.com/rust-mcp-stack/mcp-discovery"
66
authors = ["Ali Hashemi"]
77
description = "A command-line tool written in Rust for discovering and documenting MCP Server capabilities."
8-
homepage = "https://github.com/rust-mcp-stack/mcp-discovery"
8+
homepage = "https://rust-mcp-stack.github.io/mcp-discovery"
99

1010
[package.metadata.wix]
1111
upgrade-guid = "F8C005B2-0006-40E0-93CF-01A2DA37CAB7"

docs/_coverpage.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
- ⚙️ CI/CD-friendly
1717

1818
[GitHub](https://github.com/rust-mcp-stack/mcp-discovery)
19+
[Install](https://rust-mcp-stack.github.io/mcp-discovery#/quickstart)
1920
[Get Started](#mcp-discovery)
2021

2122
<!-- background color -->

docs/quickstart.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ powershell -ExecutionPolicy Bypass -c "irm https://github.com/rust-mcp-stack/mcp
2626
brew install rust-mcp-stack/tap/mcp-discovery
2727
```
2828

29+
#### **Cargo**
30+
31+
```sh
32+
cargo install mcp-discovery --locked
33+
```
34+
2935
#### **Download Binaries**
3036

3137
<table>

0 commit comments

Comments
 (0)