Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(cli): add mcp prompt support via slash commands #1323

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
34a4bac
feat: add prompts support to mcp-client, ahere to MCP spec for prompts
kalvinnchau Feb 19, 2025
5c4258b
feat: handle JsonRpcMessage::Error messages to propagate to the user
kalvinnchau Feb 20, 2025
2523e61
test: update MockClient in test with list_prompts and get_prompt
kalvinnchau Feb 21, 2025
529b7fd
feat: remove concrete impl of get_prompt and list_prompts, and requir…
kalvinnchau Feb 21, 2025
a0110ac
test: add impl of list/get prompt to main.rs and stdio_integration to…
kalvinnchau Feb 21, 2025
0f776c0
refactor: implement list_prompts and get_prompts for mcp servers
kalvinnchau Feb 21, 2025
7d0cb11
feat: add list prompts command
kalvinnchau Feb 20, 2025
ead9c1d
feat: add /prompt $NAME --info and placeholder for exeuction
kalvinnchau Feb 20, 2025
8025a93
refactor: revert handle_slash_command, match existing patterns
kalvinnchau Feb 21, 2025
2407051
feat: first pass at enabling /prompt support, just rendering the output
kalvinnchau Feb 25, 2025
dd4cddb
feat: convert prompt messages to agent messages, and handle prompt in
kalvinnchau Feb 25, 2025
5e5d7e9
Merge branch 'main' into kalvin/mcp-prompt
kalvinnchau Feb 26, 2025
a1ef0b9
style: cargo fmt after merge
kalvinnchau Feb 26, 2025
2b45c20
feat: add /prompts --extension $extension to filter for prompts
kalvinnchau Feb 26, 2025
25746ab
feat(cli): add custom command completion with cache support
kalvinnchau Feb 27, 2025
cedbac8
test(cli): add unit tests for command completion
kalvinnchau Feb 27, 2025
eb42a64
style: short-circut out of = \ /, cleanup rust code
kalvinnchau Feb 27, 2025
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
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions crates/goose-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ chrono = "0.4"
tracing-subscriber = { version = "0.3", features = ["env-filter", "fmt", "json", "time"] }
tracing-appender = "0.2"
once_cell = "1.20.2"
shlex = "1.3.0"

[target.'cfg(target_os = "windows")'.dependencies]
winapi = { version = "0.3", features = ["wincred"] }
Expand Down
Loading