feat(mcp): external registry + agent ctx + Streamable HTTP server
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
15
lib/mcp/external-registry.js
Normal file
15
lib/mcp/external-registry.js
Normal file
@@ -0,0 +1,15 @@
|
||||
// Curated registry exposed to EXTERNAL agents over MCP HTTP. Deliberately
|
||||
// separate from companionRegistry (Dross) so new Dross tools never auto-leak
|
||||
// to the internet. Read + suggest-only: search/read/context + propose_change
|
||||
// (which always routes to the pending_changes inbox).
|
||||
import { createRegistry } from '../ai/agent/registry.js';
|
||||
import { searchTool } from '../ai/agent/tools/search.js';
|
||||
import { readTool } from '../ai/agent/tools/read.js';
|
||||
import { contextTool } from '../ai/agent/tools/context.js';
|
||||
import { proposeChangeTool } from '../ai/agent/tools/propose_change.js';
|
||||
|
||||
export const externalRegistry = createRegistry();
|
||||
externalRegistry.registerTool(searchTool);
|
||||
externalRegistry.registerTool(readTool);
|
||||
externalRegistry.registerTool(contextTool);
|
||||
externalRegistry.registerTool(proposeChangeTool);
|
||||
Reference in New Issue
Block a user