-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathagent-chat-cli.config.ts
More file actions
81 lines (70 loc) · 2.31 KB
/
agent-chat-cli.config.ts
File metadata and controls
81 lines (70 loc) · 2.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
import type { AgentChatConfig } from "./src/store"
import { createAgent } from "./src/utils/createAgent"
import { getPrompt } from "./src/utils/getPrompt"
const config: AgentChatConfig = {
systemPrompt: getPrompt("system.md"),
model: "sonnet",
stream: true,
agents: {
"demo-agent": createAgent({
description: "A claude subagent designed to show off functionality",
prompt: getPrompt("agents/demo-agent.md"),
mcpServers: [],
disallowedTools: ["Bash"],
}),
},
mcpServers: {
chrome: {
description:
"The Chrome DevTools MCP server adds web browser automation and debugging capabilities to your AI agent",
command: "bunx",
args: ["chrome-devtools-mcp@latest"],
},
github: {
description:
"GitHub MCP tools to search remote code, PRs, issues; discover documentation in remote repo docs/; find deployment guides and code examples.",
prompt: getPrompt("github.md"),
command: "bunx",
args: [
"mcp-remote@0.1.29",
"https://api.githubcopilot.com/mcp/readonly",
"--header",
`Authorization: Bearer ${process.env.GITHUB_ACCESS_TOKEN}`,
],
disallowedTools: [],
enabled: true,
},
notion: {
description:
"Notion workspace for documentation, wikis, OKRs, department pages, onboarding guides. Navigate hierarchies, search pages, retrieve structured content.",
prompt: getPrompt("notion.md"),
command: "bunx",
args: ["mcp-remote@0.1.29", "https://mcp.notion.com/mcp"],
enabled: true,
},
/**
// Example of how to use getRemotePrompt
someOtherServer: {
description: "Some description",
command: "bunx",
args: ["mcp-remote@0.1.29", "https://mcp.some-server.com/mcp"],
prompt: getRemotePrompt({
fetchPrompt: async () => {
const response = await fetch("https://some-prompt/name")
if (!response.ok) {
throw new Error(
`[agent] [getRemotePrompt] [ERROR HTTP] status: ${response.status}`
)
}
const text = await response.text()
return text
},
}),
},
*/
},
disallowedTools: ["Bash"],
// Ungate MCP tools, which have their own disallowedTools array.
permissionMode: "bypassPermissions",
}
export default config