feat: file operation restful api

This commit is contained in:
Acbox
2026-02-09 21:03:05 +08:00
parent 8ea779779e
commit 4f5a8f5e64
8 changed files with 2135 additions and 143 deletions
+2 -9
View File
@@ -51,19 +51,12 @@ export const createAgent = ({
const fs: HTTPMCPConnection = {
type: 'http',
name: 'fs',
url: `${auth.baseUrl}/bots/${identity.botId}/container/fs`,
url: `${auth.baseUrl}/bots/${identity.botId}/container/fs-mcp`,
headers: {
'Authorization': `Bearer ${auth.bearer}`,
},
}
const mcpFetch: StdioMCPConnection = {
type: 'stdio',
name: 'mcp-fetch',
command: 'npx',
args: ['fetch-mcp'],
env: {},
}
return [fs, mcpFetch]
return [fs]
}
const generateSystemPrompt = () => {