oscerd opened a new pull request, #25052:
URL: https://github.com/apache/camel/pull/25052
## Summary
Adds a new MCP tool `camel_route_cost_estimate` that estimates API costs for
a Camel route based on its component usage patterns.
- **9 component cost profiles**: Bedrock (per-token), Textract (per-page),
S3/SQS/SNS/Kinesis (per-request), OpenAI (per-token), LangChain4j
Chat/Embeddings (per-token), Docling (free)
- **Per-execution cost breakdown**: sorted by most expensive component first
- **Projections**: hourly, daily, and monthly cost estimates at configurable
throughput
- **Optimization tips**: context-aware suggestions (e.g., "use Docling
instead of Textract for text extraction")
- **Configurable parameters**: messages/hour, avg pages, avg input/output
tokens
### Example output structure
```json
{
"costBreakdown": [...],
"projection": {"messagesPerHour": 100, "hourly": "$1.05", "daily":
"$25.20", "monthly": "$756.00"},
"summary": {"mostExpensiveComponent": "aws-bedrock"},
"optimizationTips": [...]
}
```
## Test plan
- [x] 10 new tests covering AI pipelines, Textract routes, simple routes,
cost projection, optimization tips, scheme extraction, defaults, combined
processors
- [x] All 310 existing MCP server tests pass (no regressions)
_Claude Code on behalf of oscerd_
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]