pub struct ClickUpSchemaEnricher { /* private fields */ }Expand description
Dynamic schema enricher for ClickUp provider.
Created with metadata from a ClickUp list. Adds:
- Status enum from list statuses
- Priority enum (static: urgent, high, normal, low)
- Custom field
cf_*parameters from list custom fields - Link types enum
Removes:
issueType,components,projectId(not applicable)
Implementations§
Source§impl ClickUpSchemaEnricher
impl ClickUpSchemaEnricher
Sourcepub fn new(metadata: ClickUpMetadata) -> Self
pub fn new(metadata: ClickUpMetadata) -> Self
Build an enricher from cached workspace metadata (custom fields, statuses) used to refine MCP tool schemas at runtime.
Trait Implementations§
Source§impl ToolEnricher for ClickUpSchemaEnricher
impl ToolEnricher for ClickUpSchemaEnricher
Source§fn value_model(&self, tool_name: &str) -> Option<ToolValueModel>
fn value_model(&self, tool_name: &str) -> Option<ToolValueModel>
Paper 3 — ClickUp issue → comments / detail chain.
Source§fn rate_limit_host(&self, _tool_name: &str, _args: &Value) -> Option<String>
fn rate_limit_host(&self, _tool_name: &str, _args: &Value) -> Option<String>
ClickUp SaaS uses api.clickup.com.
Source§fn supported_categories(&self) -> &[ToolCategory]
fn supported_categories(&self) -> &[ToolCategory]
Which tool categories this provider/enricher supports.
Tools from other categories won’t be shown when this enricher is active.
Source§fn enrich_schema(&self, tool_name: &str, schema: &mut ToolSchema)
fn enrich_schema(&self, tool_name: &str, schema: &mut ToolSchema)
Modify the tool schema during
tools/list.Source§fn transform_args(&self, tool_name: &str, args: &mut Value)
fn transform_args(&self, tool_name: &str, args: &mut Value)
Transform arguments before tool execution.
Source§fn project_args(
&self,
_prev_tool: &str,
_prev_result: &Value,
_link: &FollowUpLink,
) -> Option<Value>
fn project_args( &self, _prev_tool: &str, _prev_result: &Value, _link: &FollowUpLink, ) -> Option<Value>
Build the JSON arguments for a speculatively pre-fetched
follow-up call. Read more
Auto Trait Implementations§
impl Freeze for ClickUpSchemaEnricher
impl RefUnwindSafe for ClickUpSchemaEnricher
impl Send for ClickUpSchemaEnricher
impl Sync for ClickUpSchemaEnricher
impl Unpin for ClickUpSchemaEnricher
impl UnsafeUnpin for ClickUpSchemaEnricher
impl UnwindSafe for ClickUpSchemaEnricher
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