mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-27 07:16:19 +09:00
feat: file operation restful api
This commit is contained in:
+2
-9
@@ -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 = () => {
|
||||
|
||||
Reference in New Issue
Block a user