pub struct DefaultCodingTools;Expand description
Default implementation that uses local filesystem operations.
This is the standard behavior for CodingMcp when running outside
of an ACP context.
Implementations§
Trait Implementations§
Source§impl CodingTools for DefaultCodingTools
impl CodingTools for DefaultCodingTools
Source§async fn read_file(
&self,
args: ReadFileArgs,
) -> Result<ReadFileResult, CodingError>
async fn read_file( &self, args: ReadFileArgs, ) -> Result<ReadFileResult, CodingError>
Read a file’s contents
Source§async fn write_file(
&self,
args: WriteFileArgs,
) -> Result<WriteFileResponse, CodingError>
async fn write_file( &self, args: WriteFileArgs, ) -> Result<WriteFileResponse, CodingError>
Write content to a file
Source§async fn edit_file(
&self,
args: EditFileArgs,
) -> Result<EditFileResponse, CodingError>
async fn edit_file( &self, args: EditFileArgs, ) -> Result<EditFileResponse, CodingError>
Edit a file using string replacement
Source§async fn list_files(
&self,
args: ListFilesArgs,
) -> Result<ListFilesResult, CodingError>
async fn list_files( &self, args: ListFilesArgs, ) -> Result<ListFilesResult, CodingError>
List files in a directory
Source§async fn bash(
&self,
args: BashInput,
cwd: Option<PathBuf>,
) -> Result<BashResult, CodingError>
async fn bash( &self, args: BashInput, cwd: Option<PathBuf>, ) -> Result<BashResult, CodingError>
Execute a bash command with an optional working directory
Source§async fn read_background_bash(
&self,
handle: BackgroundProcessHandle,
filter: Option<String>,
) -> Result<(ReadBackgroundBashOutput, Option<BackgroundProcessHandle>), CodingError>
async fn read_background_bash( &self, handle: BackgroundProcessHandle, filter: Option<String>, ) -> Result<(ReadBackgroundBashOutput, Option<BackgroundProcessHandle>), CodingError>
Read output from a background bash process
Source§async fn grep(&self, args: GrepInput) -> Result<GrepOutput, CodingError>
async fn grep(&self, args: GrepInput) -> Result<GrepOutput, CodingError>
Search file contents using regex patterns.
async fn ast_grep( &self, args: AstGrepInput, ) -> Result<AstGrepOutput, CodingError>
Source§async fn find(&self, args: FindInput) -> Result<FindOutput, CodingError>
async fn find(&self, args: FindInput) -> Result<FindOutput, CodingError>
Find files by name using glob patterns.
Source§impl Debug for DefaultCodingTools
impl Debug for DefaultCodingTools
Source§impl Default for DefaultCodingTools
impl Default for DefaultCodingTools
Source§fn default() -> DefaultCodingTools
fn default() -> DefaultCodingTools
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DefaultCodingTools
impl RefUnwindSafe for DefaultCodingTools
impl Send for DefaultCodingTools
impl Sync for DefaultCodingTools
impl Unpin for DefaultCodingTools
impl UnsafeUnpin for DefaultCodingTools
impl UnwindSafe for DefaultCodingTools
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more