trustgraph/ts/scripts
elpresidank b854b56558 feat: MCP tool client infrastructure for agent extensibility
Add the full MCP tool pipeline enabling agents to invoke external tools
(like Brave Search) via MCP servers:

- Add ToolRequest/ToolResponse types and mcp-tool topics to @trustgraph/base
- Create McpToolService (FlowProcessor) that connects to external MCP servers
  via @modelcontextprotocol/sdk StreamableHTTP transport
- Add createMcpTool() to wire MCP tools into the agent's ReAct loop
- Implement config-driven tool registration in AgentService with backward-
  compatible fallback to hardcoded tools
- Add tool filtering by group and state (port of Python tool_filter.py)
- Register mcp-tool in gateway dispatcher and export from @trustgraph/flow
- Fix flow restart race condition: skip restart when flow definitions unchanged
- Update seed config with MCP server config and tool definitions
- Add run scripts for MCP tool service and Brave Search MCP server

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-10 05:45:46 -05:00
..
create-test-pdf.ts feat: real PDF pipeline test — end-to-end knowledge extraction working 2026-04-07 02:19:12 -05:00
reset-nats.ts fix: NATS pipeline bugs, add integration tests and service runners 2026-04-05 23:41:39 -05:00
run-agent.ts feat: add document pipeline, ReAct agent, and knowledge core services 2026-04-06 00:19:37 -05:00
run-brave-mcp.sh feat: MCP tool client infrastructure for agent extensibility 2026-04-10 05:45:46 -05:00
run-chunker.ts feat: add query/retrieval FlowProcessor services and missing runner scripts 2026-04-07 01:05:54 -05:00
run-config.ts fix: NATS pipeline bugs, add integration tests and service runners 2026-04-05 23:41:39 -05:00
run-doc-embeddings-query.ts feat: add query/retrieval FlowProcessor services and missing runner scripts 2026-04-07 01:05:54 -05:00
run-document-rag.ts feat: add query/retrieval FlowProcessor services and missing runner scripts 2026-04-07 01:05:54 -05:00
run-embeddings.ts feat: add query/retrieval FlowProcessor services and missing runner scripts 2026-04-07 01:05:54 -05:00
run-extractor.ts feat: add query/retrieval FlowProcessor services and missing runner scripts 2026-04-07 01:05:54 -05:00
run-flow-manager.ts feat: add flow manager, config seeding, and expanded integration tests 2026-04-06 00:37:03 -05:00
run-gateway.ts fix: NATS pipeline bugs, add integration tests and service runners 2026-04-05 23:41:39 -05:00
run-graph-embeddings-query.ts feat: add query/retrieval FlowProcessor services and missing runner scripts 2026-04-07 01:05:54 -05:00
run-graph-embeddings-store.ts feat: add document pipeline — PDF decoder, Ollama LLM, storage services 2026-04-06 23:47:43 -05:00
run-graph-rag.ts feat: add query/retrieval FlowProcessor services and missing runner scripts 2026-04-07 01:05:54 -05:00
run-knowledge.ts feat: add document pipeline, ReAct agent, and knowledge core services 2026-04-06 00:19:37 -05:00
run-librarian.ts feat: add document pipeline, ReAct agent, and knowledge core services 2026-04-06 00:19:37 -05:00
run-llm-azure-openai.ts feat: add Docker entrypoints, LLM providers, pipeline hardening, workbench pages 2026-04-07 03:22:55 -05:00
run-llm-claude.ts fix: NATS pipeline bugs, add integration tests and service runners 2026-04-05 23:41:39 -05:00
run-llm-mistral.ts feat: add Docker entrypoints, LLM providers, pipeline hardening, workbench pages 2026-04-07 03:22:55 -05:00
run-llm-openai-compatible.ts feat: add Docker entrypoints, LLM providers, pipeline hardening, workbench pages 2026-04-07 03:22:55 -05:00
run-llm-openai.ts fix: NATS pipeline bugs, add integration tests and service runners 2026-04-05 23:41:39 -05:00
run-mcp-tool.ts feat: MCP tool client infrastructure for agent extensibility 2026-04-10 05:45:46 -05:00
run-ollama.ts feat: add document pipeline — PDF decoder, Ollama LLM, storage services 2026-04-06 23:47:43 -05:00
run-pdf-decoder.ts feat: add document pipeline — PDF decoder, Ollama LLM, storage services 2026-04-06 23:47:43 -05:00
run-prompt.ts fix: resolve FlowProcessor topic collisions, librarian timeout, tests 2026-04-06 01:02:10 -05:00
run-triples-query.ts feat: add query/retrieval FlowProcessor services and missing runner scripts 2026-04-07 01:05:54 -05:00
run-triples-store.ts feat: add document pipeline — PDF decoder, Ollama LLM, storage services 2026-04-06 23:47:43 -05:00
seed-config.ts feat: MCP tool client infrastructure for agent extensibility 2026-04-10 05:45:46 -05:00
seed-demo.ts fix: FalkorDB result parsing, embeddings routing, triples query response, graph visualization 2026-04-10 04:59:36 -05:00
test-pipeline.ts feat: add Docker entrypoints, LLM providers, pipeline hardening, workbench pages 2026-04-07 03:22:55 -05:00