ruvnet / ruvnet/agentic-flow

๐Ÿ› OpenRouter Integration Broken - MCP Schema + Qwen Support

Open
#22 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
812
Forks
175
Avg merge
2m
Merged PRs (30d)
3

Description

๐Ÿ› Problem

OpenRouter integration fails preventing cost optimization and 1M free Qwen token usage.

๐Ÿ” Issues

1. MCP Schema Validation Errors (affects all OpenRouter models):

Invalid schema for function 'mcp__flow-nexus__neural_predict': array schema missing items

2. Qwen Tool Support Missing (affects qwen models):

No endpoints found that support tool use

๐Ÿ“‹ Reproduction

# Schema errors with tool-capable models
npx agentic-flow --agent coder --task "test" --provider openrouter --model "openai/gpt-4o-mini"

# Tool support errors with Qwen models  
npx agentic-flow --agent coder --task "test" --provider openrouter --model "qwen/qwen-2.5-coder-32b-instruct"

๐Ÿ”ง Fix Required

  1. Update MCP schemas to include items for array properties
  2. Implement tool emulation for Qwen models (similar to #8)

๐Ÿ’ฐ Impact

Blocks 99% cost savings and 1M free Qwen token usage - core value proposition of OpenRouter integration.

๐ŸŽฏ Success Criteria

  • Tool-capable models work via OpenRouter
  • Qwen models work via tool emulation
  • Cost optimization achievable

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up โ€” it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running the two reproduction commands in the issue, then inspect the OpenRouter integration and MCP schema generation or validation paths. Done means tool-capable OpenRouter models no longer produce array-schema errors, and Qwen models work through tool emulation with the stated cost optimization available.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
ai, api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.