mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-01 09:29:38 +02:00
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>
52 lines
1.9 KiB
JSON
52 lines
1.9 KiB
JSON
{
|
|
"name": "trustgraph-ts",
|
|
"private": true,
|
|
"scripts": {
|
|
"build": "turbo build",
|
|
"dev": "turbo dev",
|
|
"lint": "turbo lint",
|
|
"test": "turbo test",
|
|
"clean": "turbo clean",
|
|
"gateway": "tsx scripts/run-gateway.ts",
|
|
"config-svc": "tsx scripts/run-config.ts",
|
|
"llm:claude": "tsx scripts/run-llm-claude.ts",
|
|
"llm:openai": "tsx scripts/run-llm-openai.ts",
|
|
"test:pipeline": "tsx scripts/test-pipeline.ts",
|
|
"seed": "tsx scripts/seed-config.ts",
|
|
"prompt": "tsx scripts/run-prompt.ts",
|
|
"agent": "tsx scripts/run-agent.ts",
|
|
"librarian": "tsx scripts/run-librarian.ts",
|
|
"knowledge": "tsx scripts/run-knowledge.ts",
|
|
"flow-manager": "tsx scripts/run-flow-manager.ts",
|
|
"llm:ollama": "tsx scripts/run-ollama.ts",
|
|
"pdf-decoder": "tsx scripts/run-pdf-decoder.ts",
|
|
"triples-store": "tsx scripts/run-triples-store.ts",
|
|
"graph-embeddings-store": "tsx scripts/run-graph-embeddings-store.ts",
|
|
"chunker": "tsx scripts/run-chunker.ts",
|
|
"extractor": "tsx scripts/run-extractor.ts",
|
|
"embeddings": "tsx scripts/run-embeddings.ts",
|
|
"triples-query": "tsx scripts/run-triples-query.ts",
|
|
"graph-embeddings-query": "tsx scripts/run-graph-embeddings-query.ts",
|
|
"doc-embeddings-query": "tsx scripts/run-doc-embeddings-query.ts",
|
|
"graph-rag": "tsx scripts/run-graph-rag.ts",
|
|
"document-rag": "tsx scripts/run-document-rag.ts",
|
|
"create-test-pdf": "tsx scripts/create-test-pdf.ts",
|
|
"seed:demo": "tsx scripts/seed-demo.ts",
|
|
"mcp-tool": "tsx scripts/run-mcp-tool.ts",
|
|
"llm:azure-openai": "tsx scripts/run-llm-azure-openai.ts",
|
|
"llm:openai-compat": "tsx scripts/run-llm-openai-compatible.ts",
|
|
"llm:mistral": "tsx scripts/run-llm-mistral.ts"
|
|
},
|
|
"devDependencies": {
|
|
"falkordb": "^5.0.0",
|
|
"nats": "^2.29.0",
|
|
"pdf-lib": "^1.17.1",
|
|
"tsx": "^4.21.0",
|
|
"turbo": "^2.5.0",
|
|
"typescript": "^5.8.0"
|
|
},
|
|
"packageManager": "pnpm@9.15.0",
|
|
"workspaces": [
|
|
"packages/*"
|
|
]
|
|
}
|