@briefhq/mcp-server
Version:
Brief MCP server and CLI – connect Cursor/Claude MCP to your Brief organization
236 lines • 17.9 kB
TypeScript
import { z } from "zod";
declare const briefDiscoverCapabilitiesSchema: z.ZodObject<{
domain: z.ZodDefault<z.ZodOptional<z.ZodEnum<["context", "content", "documents", "folders", "decisions", "product", "bulk", "all"]>>>;
detail_level: z.ZodDefault<z.ZodOptional<z.ZodEnum<["summary", "detailed"]>>>;
}, "strip", z.ZodTypeAny, {
domain: "context" | "content" | "documents" | "folders" | "decisions" | "product" | "bulk" | "all";
detail_level: "summary" | "detailed";
}, {
domain?: "context" | "content" | "documents" | "folders" | "decisions" | "product" | "bulk" | "all" | undefined;
detail_level?: "summary" | "detailed" | undefined;
}>;
declare const briefPlanOperationSchema: z.ZodObject<{
operation: z.ZodEnum<["search", "browse", "find_related", "get_recent", "retrieve_content", "create_document", "get_document", "update_document", "delete_document", "move_document", "create_folder", "get_folder", "update_folder", "delete_folder", "move_folder", "get_folder_tree", "get_folder_documents", "bulk_move", "bulk_delete", "get_product_graph", "update_product_graph", "record_decision", "confirm_decision", "archive_decision", "search_decisions", "create_session_decision", "get_session_decisions", "delete_session_decision", "propose_decision", "batch_propose_decisions", "get_decision_proposals", "confirm_decision_proposal", "get_context", "guard_approach"]>;
target: z.ZodOptional<z.ZodEnum<["document", "folder", "decision", "product_graph", "content"]>>;
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
}, "strip", z.ZodTypeAny, {
operation: "search" | "browse" | "find_related" | "get_recent" | "retrieve_content" | "create_document" | "get_document" | "update_document" | "delete_document" | "move_document" | "create_folder" | "get_folder" | "update_folder" | "delete_folder" | "move_folder" | "get_folder_tree" | "get_folder_documents" | "bulk_move" | "bulk_delete" | "get_product_graph" | "update_product_graph" | "record_decision" | "confirm_decision" | "archive_decision" | "search_decisions" | "create_session_decision" | "get_session_decisions" | "delete_session_decision" | "propose_decision" | "batch_propose_decisions" | "get_decision_proposals" | "confirm_decision_proposal" | "get_context" | "guard_approach";
context?: Record<string, unknown> | undefined;
target?: "content" | "document" | "folder" | "decision" | "product_graph" | undefined;
}, {
operation: "search" | "browse" | "find_related" | "get_recent" | "retrieve_content" | "create_document" | "get_document" | "update_document" | "delete_document" | "move_document" | "create_folder" | "get_folder" | "update_folder" | "delete_folder" | "move_folder" | "get_folder_tree" | "get_folder_documents" | "bulk_move" | "bulk_delete" | "get_product_graph" | "update_product_graph" | "record_decision" | "confirm_decision" | "archive_decision" | "search_decisions" | "create_session_decision" | "get_session_decisions" | "delete_session_decision" | "propose_decision" | "batch_propose_decisions" | "get_decision_proposals" | "confirm_decision_proposal" | "get_context" | "guard_approach";
context?: Record<string, unknown> | undefined;
target?: "content" | "document" | "folder" | "decision" | "product_graph" | undefined;
}>;
declare const briefExecuteOperationSchema: z.ZodObject<{
operation: z.ZodEnum<["create_document", "get_document", "update_document", "delete_document", "move_document", "create_folder", "get_folder", "update_folder", "delete_folder", "move_folder", "get_folder_tree", "get_folder_documents", "bulk_move", "bulk_delete", "get_product_graph", "update_product_graph", "record_decision", "confirm_decision", "archive_decision", "search_decisions", "create_session_decision", "get_session_decisions", "delete_session_decision", "propose_decision", "batch_propose_decisions", "get_decision_proposals", "confirm_decision_proposal", "guard_approach", "search"]>;
parameters: z.ZodRecord<z.ZodString, z.ZodUnknown>;
confirmation_token: z.ZodOptional<z.ZodString>;
limit: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
operation: "search" | "create_document" | "get_document" | "update_document" | "delete_document" | "move_document" | "create_folder" | "get_folder" | "update_folder" | "delete_folder" | "move_folder" | "get_folder_tree" | "get_folder_documents" | "bulk_move" | "bulk_delete" | "get_product_graph" | "update_product_graph" | "record_decision" | "confirm_decision" | "archive_decision" | "search_decisions" | "create_session_decision" | "get_session_decisions" | "delete_session_decision" | "propose_decision" | "batch_propose_decisions" | "get_decision_proposals" | "confirm_decision_proposal" | "guard_approach";
parameters: Record<string, unknown>;
limit?: number | undefined;
confirmation_token?: string | undefined;
}, {
operation: "search" | "create_document" | "get_document" | "update_document" | "delete_document" | "move_document" | "create_folder" | "get_folder" | "update_folder" | "delete_folder" | "move_folder" | "get_folder_tree" | "get_folder_documents" | "bulk_move" | "bulk_delete" | "get_product_graph" | "update_product_graph" | "record_decision" | "confirm_decision" | "archive_decision" | "search_decisions" | "create_session_decision" | "get_session_decisions" | "delete_session_decision" | "propose_decision" | "batch_propose_decisions" | "get_decision_proposals" | "confirm_decision_proposal" | "guard_approach";
parameters: Record<string, unknown>;
limit?: number | undefined;
confirmation_token?: string | undefined;
}>;
export declare const layeredTools: {
brief_discover_capabilities: {
description: string;
inputSchema: z.ZodObject<{
domain: z.ZodDefault<z.ZodOptional<z.ZodEnum<["context", "content", "documents", "folders", "decisions", "product", "bulk", "all"]>>>;
detail_level: z.ZodDefault<z.ZodOptional<z.ZodEnum<["summary", "detailed"]>>>;
}, "strip", z.ZodTypeAny, {
domain: "context" | "content" | "documents" | "folders" | "decisions" | "product" | "bulk" | "all";
detail_level: "summary" | "detailed";
}, {
domain?: "context" | "content" | "documents" | "folders" | "decisions" | "product" | "bulk" | "all" | undefined;
detail_level?: "summary" | "detailed" | undefined;
}>;
inputJsonSchema: import("zod-to-json-schema").JsonSchema7Type & {
$schema?: string | undefined;
definitions?: {
[key: string]: import("zod-to-json-schema").JsonSchema7Type;
} | undefined;
};
execute: (args: z.infer<typeof briefDiscoverCapabilitiesSchema>) => Promise<{
available_domains: string[];
total_operations: number;
confirmation_required_operations: number;
workflow: string;
capabilities: {
[k: string]: {
description: string;
operation_count: number;
};
};
} | {
capabilities: {
context: {
description: string;
operations: string[];
requires_confirmation: boolean;
};
content: {
description: string;
operations: string[];
requires_confirmation: boolean;
};
documents: {
description: string;
operations: string[];
requires_confirmation: string[];
};
folders: {
description: string;
operations: string[];
requires_confirmation: string[];
};
decisions: {
description: string;
operations: string[];
requires_confirmation: string[];
};
product: {
description: string;
operations: string[];
requires_confirmation: string[];
};
bulk: {
description: string;
operations: string[];
requires_confirmation: string[];
};
};
available_domains?: never;
total_operations?: never;
confirmation_required_operations?: never;
workflow?: never;
} | {
description: string;
operations: string[];
requires_confirmation: boolean;
domain: "context" | "content" | "documents" | "folders" | "decisions" | "product" | "bulk";
available_domains?: never;
total_operations?: never;
confirmation_required_operations?: never;
workflow?: never;
capabilities?: never;
} | {
description: string;
operations: string[];
requires_confirmation: string[];
domain: "context" | "content" | "documents" | "folders" | "decisions" | "product" | "bulk";
available_domains?: never;
total_operations?: never;
confirmation_required_operations?: never;
workflow?: never;
capabilities?: never;
}>;
};
brief_plan_operation: {
description: string;
inputSchema: z.ZodObject<{
operation: z.ZodEnum<["search", "browse", "find_related", "get_recent", "retrieve_content", "create_document", "get_document", "update_document", "delete_document", "move_document", "create_folder", "get_folder", "update_folder", "delete_folder", "move_folder", "get_folder_tree", "get_folder_documents", "bulk_move", "bulk_delete", "get_product_graph", "update_product_graph", "record_decision", "confirm_decision", "archive_decision", "search_decisions", "create_session_decision", "get_session_decisions", "delete_session_decision", "propose_decision", "batch_propose_decisions", "get_decision_proposals", "confirm_decision_proposal", "get_context", "guard_approach"]>;
target: z.ZodOptional<z.ZodEnum<["document", "folder", "decision", "product_graph", "content"]>>;
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
}, "strip", z.ZodTypeAny, {
operation: "search" | "browse" | "find_related" | "get_recent" | "retrieve_content" | "create_document" | "get_document" | "update_document" | "delete_document" | "move_document" | "create_folder" | "get_folder" | "update_folder" | "delete_folder" | "move_folder" | "get_folder_tree" | "get_folder_documents" | "bulk_move" | "bulk_delete" | "get_product_graph" | "update_product_graph" | "record_decision" | "confirm_decision" | "archive_decision" | "search_decisions" | "create_session_decision" | "get_session_decisions" | "delete_session_decision" | "propose_decision" | "batch_propose_decisions" | "get_decision_proposals" | "confirm_decision_proposal" | "get_context" | "guard_approach";
context?: Record<string, unknown> | undefined;
target?: "content" | "document" | "folder" | "decision" | "product_graph" | undefined;
}, {
operation: "search" | "browse" | "find_related" | "get_recent" | "retrieve_content" | "create_document" | "get_document" | "update_document" | "delete_document" | "move_document" | "create_folder" | "get_folder" | "update_folder" | "delete_folder" | "move_folder" | "get_folder_tree" | "get_folder_documents" | "bulk_move" | "bulk_delete" | "get_product_graph" | "update_product_graph" | "record_decision" | "confirm_decision" | "archive_decision" | "search_decisions" | "create_session_decision" | "get_session_decisions" | "delete_session_decision" | "propose_decision" | "batch_propose_decisions" | "get_decision_proposals" | "confirm_decision_proposal" | "get_context" | "guard_approach";
context?: Record<string, unknown> | undefined;
target?: "content" | "document" | "folder" | "decision" | "product_graph" | undefined;
}>;
inputJsonSchema: import("zod-to-json-schema").JsonSchema7Type & {
$schema?: string | undefined;
definitions?: {
[key: string]: import("zod-to-json-schema").JsonSchema7Type;
} | undefined;
};
execute: (args: z.infer<typeof briefPlanOperationSchema>) => Promise<any>;
};
brief_prepare_context: {
description: string;
inputSchema: z.ZodObject<{
preparation_type: z.ZodEnum<["get_context", "search", "browse", "find_related", "get_recent", "retrieve_content"]>;
keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
query: z.ZodOptional<z.ZodString>;
folder_id: z.ZodOptional<z.ZodString>;
path: z.ZodOptional<z.ZodString>;
include_subfolders: z.ZodOptional<z.ZodBoolean>;
depth: z.ZodOptional<z.ZodNumber>;
document_id: z.ZodOptional<z.ZodString>;
document_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
max_tokens: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["smart_subset", "summaries"]>>>;
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
}, "strip", z.ZodTypeAny, {
preparation_type: "search" | "browse" | "find_related" | "get_recent" | "retrieve_content" | "get_context";
max_tokens: number;
mode: "smart_subset" | "summaries";
limit: number;
path?: string | undefined;
keys?: string[] | undefined;
query?: string | undefined;
folder_id?: string | undefined;
include_subfolders?: boolean | undefined;
depth?: number | undefined;
document_id?: string | undefined;
document_ids?: string[] | undefined;
}, {
preparation_type: "search" | "browse" | "find_related" | "get_recent" | "retrieve_content" | "get_context";
path?: string | undefined;
keys?: string[] | undefined;
query?: string | undefined;
folder_id?: string | undefined;
include_subfolders?: boolean | undefined;
depth?: number | undefined;
document_id?: string | undefined;
document_ids?: string[] | undefined;
max_tokens?: number | undefined;
mode?: "smart_subset" | "summaries" | undefined;
limit?: number | undefined;
}>;
inputJsonSchema: import("zod-to-json-schema").JsonSchema7Type & {
$schema?: string | undefined;
definitions?: {
[key: string]: import("zod-to-json-schema").JsonSchema7Type;
} | undefined;
};
execute: (args: any) => Promise<any>;
};
brief_execute_operation: {
description: string;
inputSchema: z.ZodObject<{
operation: z.ZodEnum<["create_document", "get_document", "update_document", "delete_document", "move_document", "create_folder", "get_folder", "update_folder", "delete_folder", "move_folder", "get_folder_tree", "get_folder_documents", "bulk_move", "bulk_delete", "get_product_graph", "update_product_graph", "record_decision", "confirm_decision", "archive_decision", "search_decisions", "create_session_decision", "get_session_decisions", "delete_session_decision", "propose_decision", "batch_propose_decisions", "get_decision_proposals", "confirm_decision_proposal", "guard_approach", "search"]>;
parameters: z.ZodRecord<z.ZodString, z.ZodUnknown>;
confirmation_token: z.ZodOptional<z.ZodString>;
limit: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
operation: "search" | "create_document" | "get_document" | "update_document" | "delete_document" | "move_document" | "create_folder" | "get_folder" | "update_folder" | "delete_folder" | "move_folder" | "get_folder_tree" | "get_folder_documents" | "bulk_move" | "bulk_delete" | "get_product_graph" | "update_product_graph" | "record_decision" | "confirm_decision" | "archive_decision" | "search_decisions" | "create_session_decision" | "get_session_decisions" | "delete_session_decision" | "propose_decision" | "batch_propose_decisions" | "get_decision_proposals" | "confirm_decision_proposal" | "guard_approach";
parameters: Record<string, unknown>;
limit?: number | undefined;
confirmation_token?: string | undefined;
}, {
operation: "search" | "create_document" | "get_document" | "update_document" | "delete_document" | "move_document" | "create_folder" | "get_folder" | "update_folder" | "delete_folder" | "move_folder" | "get_folder_tree" | "get_folder_documents" | "bulk_move" | "bulk_delete" | "get_product_graph" | "update_product_graph" | "record_decision" | "confirm_decision" | "archive_decision" | "search_decisions" | "create_session_decision" | "get_session_decisions" | "delete_session_decision" | "propose_decision" | "batch_propose_decisions" | "get_decision_proposals" | "confirm_decision_proposal" | "guard_approach";
parameters: Record<string, unknown>;
limit?: number | undefined;
confirmation_token?: string | undefined;
}>;
inputJsonSchema: import("zod-to-json-schema").JsonSchema7Type & {
$schema?: string | undefined;
definitions?: {
[key: string]: import("zod-to-json-schema").JsonSchema7Type;
} | undefined;
};
execute: (args: z.infer<typeof briefExecuteOperationSchema>) => Promise<any>;
};
};
export {};
//# sourceMappingURL=layered.d.ts.map