Commit graph

19 commits

Author SHA1 Message Date
situ2001
989453d0da
docs: add installation instructions for uv (#37) 2025-03-18 15:39:58 -04:00
Marc-Andre Giroux
042299f251
pin transport once, use project in write_message (#28) 2025-03-17 21:52:10 -07:00
niebayes
b1ed4e7204
add missing license (#35) 2025-03-17 21:37:08 -07:00
4t145
4597d1f047
Server wasm compatibility (#15)
* add axum sse example

* fix: make the sse axum folder name correct

* feat: add common modules for Axum SSE example

This commit adds supporting modules for the Axum Server-Sent Events (SSE) example:
- Added `counter.rs` with a simple counter router implementation
- Added `jsonrpc_frame_codec.rs` for decoding JSON-RPC frames
- Created a `mod.rs` to expose these modules
- Removed the previous SSE example configuration from Cargo.toml

* refactor: remove main.rs and update Cargo.toml for WASM compatibility

This commit makes two key changes:
1. Removes the main.rs file and make it a example
2. Add a wasi_std_io example

* refactor: simplify WASI I/O handling in example and fmt

Merged AsyncInputStream and AsyncOutputStream into a single WasiFd struct with std_in() and std_out() methods, reducing code duplication and improving clarity of the WASI standard I/O example.

* move examples to root
2025-03-14 11:21:33 -07:00
4t145
c0bd94dd85
Add an axum sse example (#12)
* add axum sse example

* fix: make the sse axum folder name correct

* feat: add common modules for Axum SSE example

This commit adds supporting modules for the Axum Server-Sent Events (SSE) example:
- Added `counter.rs` with a simple counter router implementation
- Added `jsonrpc_frame_codec.rs` for decoding JSON-RPC frames
- Created a `mod.rs` to expose these modules
- Removed the previous SSE example configuration from Cargo.toml

* move examples to root

* nit: remove extra newline here
2025-03-03 20:01:21 -08:00
Kalvin C
6609aa6aa8
chore: move examples out of various places into a top-level dir (#10) 2025-03-03 14:50:34 -05:00
Bradley Axen
b24e912543
fix: update cargo.tomls for publishing (#7) 2025-02-27 17:02:34 +01:00
David Soria Parra
a1da1a80a7
Merge pull request #3 from modelcontextprotocol/davidsp/github-workflows
feat:  github workflows
2025-02-25 15:02:36 +00:00
Alex Hancock
8f3cb34f6e
Merge pull request #2 from kalvinnchau/mcp-prompt-spec 2025-02-22 11:41:26 -05:00
David Soria Parra
e56d91c4a9
feat: github workflows
Run clippy, tests and cargo fmt checks at PR and push time.
2025-02-21 20:39:05 +00:00
Kalvin Chau
ef9309cc78 test: add impl of list/get prompt to main.rs and stdio_integration to
test both new methods
2025-02-21 09:16:34 -08:00
Kalvin Chau
7afab42c61 feat: remove concrete impl of get_prompt and list_prompts, and require
implementing types to define them, similar to other methods
2025-02-21 09:14:32 -08:00
Kalvin Chau
22b11ea127 feat: handle JsonRpcMessage::Error messages to propagate to the user 2025-02-20 19:38:23 -08:00
Kalvin Chau
08b73f3001 feat: add prompts support to mcp-client, ahere to MCP spec for prompts
- add new endpoints `list_prompts` and `get_prompt` in the MCP client
- update prompt model in mcp-core to make `description` and `arguments`
  optional, following MCP spec
2025-02-20 19:38:19 -08:00
Alex Hancock
fe1108c498
Merge pull request #1 from modelcontextprotocol/alexhancock/rust-sdk-init
Bring in mcp-* crates from goose as a starting point
2025-02-20 20:56:16 -05:00
Alex Hancock
79225a0d30 Address PR feedback and downgrade editions temporarily 2025-02-20 20:52:42 -05:00
Alex Hancock
3e3352dd8d Update to brand new 2024 edition of rust 2025-02-20 14:09:25 -05:00
Alex Hancock
4554644a3a Bring in mcp-* crates from goose as a starting point 2025-02-20 13:15:48 -05:00
David Soria Parra
91e8ba6363
Initial commit 2025-02-18 10:55:26 +00:00