pub struct LinearTools { /* private fields */ }Implementations§
Source§impl LinearTools
impl LinearTools
Source§impl LinearTools
impl LinearTools
Sourcepub async fn search_issues(
&self,
query: Option<String>,
priority: Option<i32>,
state_id: Option<String>,
assignee_id: Option<String>,
team_id: Option<String>,
project_id: Option<String>,
created_after: Option<String>,
created_before: Option<String>,
updated_after: Option<String>,
updated_before: Option<String>,
first: Option<i32>,
after: Option<String>,
) -> Result<SearchResult, ToolError>
pub async fn search_issues( &self, query: Option<String>, priority: Option<i32>, state_id: Option<String>, assignee_id: Option<String>, team_id: Option<String>, project_id: Option<String>, created_after: Option<String>, created_before: Option<String>, updated_after: Option<String>, updated_before: Option<String>, first: Option<i32>, after: Option<String>, ) -> Result<SearchResult, ToolError>
Search Linear issues with filters
Sourcepub async fn read_issue(&self, issue: String) -> Result<IssueDetails, ToolError>
pub async fn read_issue(&self, issue: String) -> Result<IssueDetails, ToolError>
Read a single Linear issue
Sourcepub async fn create_issue(
&self,
team_id: String,
title: String,
description: Option<String>,
priority: Option<i32>,
assignee_id: Option<String>,
project_id: Option<String>,
state_id: Option<String>,
parent_id: Option<String>,
label_ids: Vec<String>,
) -> Result<CreateIssueResult, ToolError>
pub async fn create_issue( &self, team_id: String, title: String, description: Option<String>, priority: Option<i32>, assignee_id: Option<String>, project_id: Option<String>, state_id: Option<String>, parent_id: Option<String>, label_ids: Vec<String>, ) -> Result<CreateIssueResult, ToolError>
Create a new Linear issue
Sourcepub async fn add_comment(
&self,
issue: String,
body: String,
parent_id: Option<String>,
) -> Result<CommentResult, ToolError>
pub async fn add_comment( &self, issue: String, body: String, parent_id: Option<String>, ) -> Result<CommentResult, ToolError>
Add a comment to a Linear issue
Source§impl LinearTools
impl LinearTools
Sourcepub fn create_cli_command(&self) -> Command
pub fn create_cli_command(&self) -> Command
Creates a clap::Command configured with all tools as subcommands
Sourcepub async fn execute_cli(&self, matches: ArgMatches) -> Result<(), ToolError>
pub async fn execute_cli(&self, matches: ArgMatches) -> Result<(), ToolError>
Executes a tool based on parsed CLI arguments
Sourcepub fn generate_completions(&self, shell: Shell) -> String
pub fn generate_completions(&self, shell: Shell) -> String
Generate shell completions for the CLI
Source§impl LinearTools
impl LinearTools
Sourcepub async fn handle_mcp_call(
&self,
method: &str,
params: Value,
) -> Result<Value, ToolError>
pub async fn handle_mcp_call( &self, method: &str, params: Value, ) -> Result<Value, ToolError>
Handles MCP tool calls by dispatching to the appropriate tool method Users integrate this into their MCP server implementation
Sourcepub async fn handle_mcp_call_mcp(
&self,
method: &str,
params: Value,
) -> Result<McpOutput, ToolError>
pub async fn handle_mcp_call_mcp( &self, method: &str, params: Value, ) -> Result<McpOutput, ToolError>
Handles MCP tool calls and returns McpOutput (Text or Json), honoring per-tool output mode.
Sourcepub fn get_mcp_tools(&self) -> Vec<Value>
pub fn get_mcp_tools(&self) -> Vec<Value>
Returns tool definitions for MCP discovery Users can use this to implement list_tools in their ServerHandler
Trait Implementations§
Source§impl Clone for LinearTools
impl Clone for LinearTools
Source§fn clone(&self) -> LinearTools
fn clone(&self) -> LinearTools
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LinearTools
impl RefUnwindSafe for LinearTools
impl Send for LinearTools
impl Sync for LinearTools
impl Unpin for LinearTools
impl UnwindSafe for LinearTools
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