๐ OpenRouter Integration Broken - MCP Schema + Qwen Support
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
- Update MCP schemas to include
itemsfor array properties - 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up โ it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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