mirror of
https://github.com/EthanMarti/infio-copilot.git
synced 2026-05-09 16:38:19 +00:00
update , add mcp server stdio and sse
This commit is contained in:
@@ -90,4 +90,11 @@ export type SwitchModeToolArgs = {
|
||||
finish?: boolean;
|
||||
}
|
||||
|
||||
export type ToolArgs = ReadFileToolArgs | WriteToFileToolArgs | InsertContentToolArgs | SearchAndReplaceToolArgs | ListFilesToolArgs | RegexSearchFilesToolArgs | SemanticSearchFilesToolArgs | SearchWebToolArgs | FetchUrlsContentToolArgs | SwitchModeToolArgs | ApplyDiffToolArgs;
|
||||
export type UseMcpToolArgs = {
|
||||
type: 'use_mcp_tool';
|
||||
server_name: string;
|
||||
tool_name: string;
|
||||
parameters: Record<string, unknown>;
|
||||
}
|
||||
|
||||
export type ToolArgs = ReadFileToolArgs | WriteToFileToolArgs | InsertContentToolArgs | SearchAndReplaceToolArgs | ListFilesToolArgs | RegexSearchFilesToolArgs | SemanticSearchFilesToolArgs | SearchWebToolArgs | FetchUrlsContentToolArgs | SwitchModeToolArgs | ApplyDiffToolArgs | UseMcpToolArgs;
|
||||
|
||||
@@ -26,6 +26,7 @@ export type ChatAssistantMessage = {
|
||||
content: string
|
||||
reasoningContent: string
|
||||
id: string
|
||||
isToolResult?: boolean
|
||||
metadata?: {
|
||||
usage?: ResponseUsage
|
||||
model?: LLMModel
|
||||
|
||||
@@ -220,6 +220,9 @@ export const InfioSettingsSchema = z.object({
|
||||
grokProvider: GrokProviderSchema,
|
||||
openaicompatibleProvider: OpenAICompatibleProviderSchema,
|
||||
|
||||
// MCP Servers
|
||||
mcpEnabled: z.boolean().catch(true),
|
||||
|
||||
// Chat Model start list
|
||||
collectedChatModels: z.array(z.object({
|
||||
provider: z.nativeEnum(ApiProvider),
|
||||
|
||||
Reference in New Issue
Block a user