mirror of
https://github.com/wu736139669/hapi.git
synced 2026-10-08 19:19:42 +00:00
feat(cli): add skill_lookup MCP for non-native agents (#1035)
* test: reproduce issue #752 * fix: expose skill lookup MCP tool (closes #752) * test: cover ACP skill lookup instructions * fix: inject ACP skill lookup instruction * test: narrow skill lookup auto-approval * fix: restrict skill lookup auto-approval * test: cover exact skill lookup tool names
This commit is contained in:
@@ -266,7 +266,9 @@ export async function opencodeLocalLauncher(
|
||||
let happyServer: { url: string; stop: () => void } | null = null;
|
||||
let opencodeConfigPath: string | null = null;
|
||||
try {
|
||||
const bridge = await buildHapiMcpBridge(session.client);
|
||||
const bridge = await buildHapiMcpBridge(session.client, {
|
||||
skillLookup: { workingDirectory: session.path, flavor: 'opencode' }
|
||||
});
|
||||
happyServer = bridge.server;
|
||||
logger.debug(`[opencode-local]: Started hapi MCP server at ${happyServer.url}`);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user