mirror of
https://github.com/wu736139669/hapi.git
synced 2026-11-14 02:51:43 +00:00
Auto-approve Codex title MCP tool
This commit is contained in:
@@ -23,6 +23,24 @@ describe('codexMcpConfig', () => {
|
||||
]);
|
||||
});
|
||||
|
||||
it('builds per-tool approval mode config', () => {
|
||||
const mcpServers = {
|
||||
hapi: {
|
||||
command: 'hapi',
|
||||
args: ['mcp'],
|
||||
tools: {
|
||||
change_title: {
|
||||
approval_mode: 'approve' as const
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
const args = buildMcpServerConfigArgs(mcpServers);
|
||||
|
||||
expect(args).toContain('mcp_servers.hapi.tools.change_title.approval_mode="approve"');
|
||||
});
|
||||
|
||||
it('builds config args for multiple MCP servers', () => {
|
||||
const mcpServers = {
|
||||
hapi: { command: 'hapi', args: ['mcp'] },
|
||||
|
||||
Reference in New Issue
Block a user