pub struct OpenCodeMcpHandler;Expand description
MCP handler for OpenCode.
OpenCode configures MCP servers directly in .opencode/opencode.json
by reading from source locations (no intermediate file copying).
Trait Implementations§
Source§impl McpHandler for OpenCodeMcpHandler
impl McpHandler for OpenCodeMcpHandler
Source§fn configure_mcp_servers(
&self,
project_root: &Path,
artifact_base: &Path,
lockfile_entries: &[LockedResource],
cache: &Cache,
manifest: &Manifest,
) -> Pin<Box<dyn Future<Output = Result<(Vec<(String, AppliedPatches)>, usize)>> + Send + '_>>
fn configure_mcp_servers( &self, project_root: &Path, artifact_base: &Path, lockfile_entries: &[LockedResource], cache: &Cache, manifest: &Manifest, ) -> Pin<Box<dyn Future<Output = Result<(Vec<(String, AppliedPatches)>, usize)>> + Send + '_>>
Configure MCP servers by reading directly from source and merging into config file. Read more
Auto Trait Implementations§
impl Freeze for OpenCodeMcpHandler
impl RefUnwindSafe for OpenCodeMcpHandler
impl Send for OpenCodeMcpHandler
impl Sync for OpenCodeMcpHandler
impl Unpin for OpenCodeMcpHandler
impl UnwindSafe for OpenCodeMcpHandler
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more