Skip to content
Merged
Changes from all commits
Commits
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
10 changes: 8 additions & 2 deletions crates/goose-mcp/src/developer/rmcp_developer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,10 @@ impl ServerHandler for DeveloperServer {
cwd=cwd.to_string_lossy(),
container_info=if in_container { "container: true" } else { "" },
},
_ => formatdoc! {r#"
_ => {
let shell_info = std::env::var("SHELL").unwrap_or_else(|_| "/bin/sh".to_string());

formatdoc! {r#"
The developer extension gives you the capabilities to edit code files and run shell commands,
and can be used to solve a wide range of problems.

Expand All @@ -231,12 +234,15 @@ impl ServerHandler for DeveloperServer {

operating system: {os}
current directory: {cwd}
shell: {shell}
{container_info}
"#,
os=os,
cwd=cwd.to_string_lossy(),
shell=shell_info,
container_info=if in_container { "container: true" } else { "" },
},
}
}
};

let hints_filenames: Vec<String> = std::env::var("CONTEXT_FILE_NAMES")
Expand Down
Loading