Repository navigation
Conversation
Signed-off-by: wangshun <96341168+xixi-box@users.noreply.github.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1547
Description
Use the installed
agentic-flowCLI for MCP worker dispatch, status, and results. Fixes #1547.Motivation
The pinned alpha printed its usage banner and exited zero, so the MCP tools presented help as worker output. Dispatch also reported success when the child failed.
Changes
ruvector mcp start.Testing
Tests:
node npm/packages/ruvector/test/mcp-workers.js.Result: cd npm/packages/ruvector && npm install --no-package-lock --ignore-scripts --no-audit --no-fund --legacy-peer-deps --no-workspaces — passed after the initial workspace-mode install hit an unrelated peer-dependency conflict.
Result: cd npm/packages/ruvector && npm run build — passed. The build supplied dist for existing MCP tests.
Result: node npm/packages/ruvector/test/mcp-workers.js — base exited 1 with the pinned usage banner and success=true and with success=true after child exit 7. Patched exited 0 with seven passing cases. See OSSCOUT_BASE.log and OSSCOUT_PATCHED.log.
Result: cd npm/packages/ruvector && node test/mcp-command-security.js && node test/mcp-policy.js && node test/mcp-stdio.js && node test/mcp-handshake.js && node test/mcp-extras.js && node test/mcp-exploit-regression.js — all six scripts passed on patched sources. All six also passed individually or in smaller groups on base after npm run build supplied dist.
Result: cd npm/packages/ruvector && node /tmp/oss-scout-worker-runtime.f7WN5i/mcp-smoke.cjs — passed with installed agentic-flow 3.5.5. Both dispatch prompts returned No triggers detected in prompt, status returned No workers found, and JSON results returned [].
Result: git diff --check && node --check npm/packages/ruvector/bin/mcp-server.js && node --check npm/packages/ruvector/test/mcp-workers.js — passed.
Regression coverage:
npm/packages/ruvector/test/mcp-workers.js.Performance Impact
These three handlers launch the installed CLI directly and avoid npx package resolution and fetching.
Checklist
cargo fmt)cargo clippy)cargo test)