Commit graph

77 commits

Author SHA1 Message Date
jokemanfire
18346b94e4
fix(rmcp-macros): fix extract_doc_line code (#142)
Signed-off-by: jokemanfire <hu.dingyang@zte.com.cn>
2025-04-20 11:00:59 +08:00
jokemanfire
b6fabc8836
chore: make proxy in simple-chat configure (#134)
and remove some prints and some useless codes

Signed-off-by: jokemanfire <hu.dingyang@zte.com.cn>
2025-04-20 11:00:47 +08:00
Sandipsinh Dilipsinh Rathod
3a97917cd7
feat(rmcp-macro): generate description from docs (#141)
* feat: generate description from docs

* fix logic to extract doc

* fmt

* chore: undo unnecessary changes in `Cargo.toml`

* chore: undo unnecessary changes in `Cargo.toml`

* chore: remove unnecessary code in tests

* create `extract_doc_line`

* fmt

* make sure the string is not empty

* avoid multilayer nesting

* fmt
2025-04-18 10:56:16 +08:00
z9rtm
9d6f9a2e0d
ci: security (#133)
* ci: add security audit job to workflow
2025-04-15 09:10:04 +08:00
jokemanfire
04a0a2cefb
docs: fix doc in simple-chat (#129) 2025-04-14 17:22:45 +08:00
Nora
9fc1cc0e0e
chore: remove un-used tower.rs (#125)
Signed-off-by: nora-coder-dot <nora6677@gmail.com>
Co-authored-by: nora-coder-dot <nora6677@gmail.com>
2025-04-11 16:11:28 +08:00
Ofer Affias
82239581ed
docs: fix typo and clarify instructions (#124) 2025-04-11 09:05:48 +08:00
Luke Francl
dffae27cf0
docs: update calculator example description (#115)
The example in the README uses "sum" for both `sum` and `sub`. I changed it to "difference". For consistency, I also updated the example code to use the same term.
2025-04-10 20:04:15 +08:00
jokemanfire
19e6d4596c
docs: fix the url (#120)
Signed-off-by: jokemanfire <hu.dingyang@zte.com.cn>
2025-04-10 17:16:09 +08:00
jokemanfire
2125698fdc
docs: add a simple chat client for example (#119)
1. optimize the readme in root
2. add example

Signed-off-by: jokemanfire <hu.dingyang@zte.com.cn>
2025-04-10 16:52:25 +08:00
4t145
31da5ff02d
fix(handler): do call handler methods when initialize server (#118) 2025-04-10 15:06:45 +08:00
Rik Huijzer
d0962ec9ee
docs: add an overview to rmcp/src/lib.rs (#116) 2025-04-10 09:11:35 +08:00
Rik Huijzer
1fc5be641f
ci: harden release action (#113) 2025-04-10 09:07:53 +08:00
Rik Huijzer
583a513448
fix: fix 2 cargo warnings (#112)
* fix: fix 3 cargo warnings

* revert `version = "1.0"` removal
2025-04-09 18:09:33 +08:00
Ruangyot Nanchiang
feb224c9aa
Fix typo for Claude desktop config file path correction and add more example for Windows, Linux, and MacOS (#107)
* fix(typo): claude desktop config file path correction
2025-04-09 10:50:26 +08:00
jokemanfire
7ae2728c54
fix(macros): add error deal (#109)
1.Check whether the parameters include aggregated parameters and individual parameters
2.Check if the toolbox attribute is default

Signed-off-by: jokemanfire <hu.dingyang@zte.com.cn>
2025-04-09 10:15:33 +08:00
z9rtm
a1112bcdfe
ci: add code coverage job to CI workflow (#111)
add code coverage job
2025-04-09 08:55:57 +08:00
Rik Huijzer
fdfb5274e8
docs: give macOS link and clarify missing UI (#110)
fix doc in examples/README.md.
2025-04-09 08:55:07 +08:00
Eitan Yarmush
6a423048fa
feat: extensions to context (#102) 2025-04-08 10:01:17 +08:00
Sandipsinh Dilipsinh Rathod
938ecbe2fb
fix(server): schemars compilation errors (#104) 2025-04-08 09:41:55 +08:00
4t145
b9be9797d1
fix(test): fix test introduced by #97 (#101) 2025-04-07 17:31:56 +08:00
byeblack
d6a26fcd31
fix(rig-integration): implement ToolEmbeddingDyn trait for McpToolAdaptor (#99)
- Added ToolEmbeddingDyn trait for McpToolAdaptor to enable dynamic loading of McpTool
- Enhanced logging to record details

Co-authored-by: byeblack <byeblack@misaki.red>
2025-04-07 10:28:19 +08:00
Jonathan Hendler
910d3b39db
test(context): test context request handling and refactor for reusable client-server tests (#97) 2025-04-07 10:13:05 +08:00
jokemanfire
36834f37d0
fix(macro): add generics marco types support (#98)
add generic marco support

Signed-off-by: jokemanfire <hu.dingyang@zte.com.cn>
2025-04-07 10:01:28 +08:00
4t145
68375460df
feat: revision-2025-03-26 without streamable http (#84)
1. Suppot revision 2025-03-26 data types
2. Support meta, progress tokne, and extensions in request/notification,
3. Remove `Message`, use `JsonRpcMessage` directly
2025-04-07 09:47:39 +08:00
A₿del ∞/21M
cced5e9c2f
chore: fix broken wasi example link (#100)
fix doc's link in example
2025-04-07 09:37:52 +08:00
Jonathan Hendler
72e7533e41
test(logging): Add tests for logging (#96)
* test(logging): implement basic logging functionality

* test(logging): add comprehensive server transport tests
2025-04-05 20:45:57 +08:00
Ruangyot Nanchiang
57f2ba265f
Add Claude desktop quick start and update Cargo.toml of examples/servers, examples/clients (#94)
* feat(readme): add Claude Desktop quick start guide

* fix(readme): correct typo in Claude Desktop instructions
2025-04-05 13:07:31 +08:00
Jonathan Hendler
2744cde0d9
fix(typo): nit language corrections (#90) 2025-04-04 12:20:48 +08:00
Bob Liu
6a74451c15
fix: fix rig chat agent output format (#86) 2025-04-03 13:48:38 +08:00
Alex Kesling
af51779c0a
fix(typo): s/marcos/macros/ (#85) 2025-04-02 17:41:07 -07:00
jokemanfire
c30d8063e3
ci: add spell check (#82)
for code greater use spell check

Signed-off-by: jokemanfire <hu.dingyang@zte.com.cn>
2025-04-02 13:55:37 +08:00
z9rtm
d5c4bf09c2
Adopt Devcontainer for Development Environment (#81)
* chore: add devcontainer setting
* docs: add Dev Container setup instructions to README and create DEVCONTAINER.md
2025-04-02 12:16:49 +08:00
Bob Liu
6a648b8827
chore: fix typos (#79) 2025-04-02 01:15:01 +08:00
jokemanfire
4ca00c2052
fix(client): add error enum while deal client info (#76)
1. wrap the error type for more standardized
2. add more information in error for debug trace
3. wrap helper func for more user-friendly code

Signed-off-by: jokemanfire <hu.dingyang@zte.com.cn>
2025-04-01 21:15:48 +08:00
4t145
2c0cafdde3
feat(tool): allow tool call return a serializable value in json format (#75) (#78) 2025-04-01 15:53:01 +08:00
4t145
923e87af4d
feat: Sse server auto ping (#74)
1. auto ping in sse stream every second to make cursor happy
2. configurable sse keep alive

---------

Co-authored-by: = <=>
2025-04-01 10:54:09 +08:00
Eitan Yarmush
588a013090
feat(transport): Sse client transport trait (#67)
* feat: created transport trait and impl

* feat(transport): abstract sse transport from the client definition

* test: add test with js server (#65)

* fix: use prefix to check mime type

* fix(test): fix tool deserialization error (#68)

* ci: add documentation generation job (#59)

* ci: add documentation generation job

1. add doc ci in workflow
2. remove the readme in rmcp crate

Signed-off-by: jokemanfire <hu.dingyang@zte.com.cn>

* docs: fix doc test in README.md

1) fix doc test in readme
2) fix some fmt

Signed-off-by: jokemanfire <hu.dingyang@zte.com.cn>

---------

Signed-off-by: jokemanfire <hu.dingyang@zte.com.cn>

* fix(notification): fix wrongly error report in notification (#70)

* chore: fix lint errors by creating a type alias

* chore: resolve conflict

* chore: fix fmt

* chore: revert

---------

Signed-off-by: jokemanfire <hu.dingyang@zte.com.cn>
Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>
Co-authored-by: 4t145 <u4t145@163.com>
Co-authored-by: jokemanfire <hu.dingyang@zte.com.cn>
2025-03-31 16:22:54 +08:00
Todsaporn Banjerdkit
59c975887e
docs: format and fix typo (#72) 2025-03-31 16:13:17 +08:00
4t145
145b5de322
fix(notification): fix wrongly error report in notification (#70) 2025-03-31 13:50:27 +08:00
jokemanfire
b91fe54409
ci: add documentation generation job (#59)
* ci: add documentation generation job

1. add doc ci in workflow
2. remove the readme in rmcp crate

Signed-off-by: jokemanfire <hu.dingyang@zte.com.cn>

* docs: fix doc test in README.md

1) fix doc test in readme
2) fix some fmt

Signed-off-by: jokemanfire <hu.dingyang@zte.com.cn>

---------

Signed-off-by: jokemanfire <hu.dingyang@zte.com.cn>
2025-03-31 13:46:31 +08:00
4t145
0eea9aad4a
fix(test): fix tool deserialization error (#68) 2025-03-31 13:05:35 +08:00
Jefry Dewangga
ac1b8c6ddb
test: add test with js server (#65) 2025-03-31 00:22:14 +08:00
Jefry Dewangga
d6fb12b69f
chore: format code correctly (#66) 2025-03-30 23:29:13 +08:00
Takayuki Maeda
cc3f29934f
ci: use rust-cache (#60)
Replace actions/cache with rust-cache.
2025-03-30 08:15:38 +08:00
jokemanfire
0e2b115c10
fix(server): add error enum while deal server info (#51)
1. wrap the error type for more standardized
2. add more information in error for debug trace
3. wrap helper func for more user-friendly code

Signed-off-by: jokemanfire <hu.dingyang@zte.com.cn>
2025-03-30 00:35:41 +08:00
Sandro Hanea
50fadfb81b
[Example] Small fix on incorrect counter logic and improve prompt handling (#63)
The counter decrement in `get_value` was removed to prevent unintended changes to the counter state. Additionally, `get_prompt` was updated to parse and validate the `message` argument properly, ensuring better error handling and formatting.

Co-authored-by: sandrohanea <me@sandro.rocks>
2025-03-30 00:34:32 +08:00
jokemanfire
0a2f13a1f4
style: fmt the project (#54)
add rustfmt.toml

Signed-off-by: jokemanfire <hu.dingyang@zte.com.cn>
2025-03-28 23:50:46 +08:00
Wang Ruobiao
59bfb6e748
refactor(sse_server): separate router and server startup (#52)
* feat: expose axum router

* feat: add axum_router example with SSE server implementation

* refactor: simplify SseServer configuration handling in server setup

* docs: add warning to SseServer::new about potential post_path issues with embedded routers
2025-03-28 22:06:50 +08:00
jokemanfire
b9e192275b
ci: add commit-lint in CI (#50)
no need too many workflows's yaml file, for ci we just need one.

Signed-off-by: jokemanfire <hu.dingyang@zte.com.cn>
2025-03-28 21:15:23 +08:00