-
Notifications
You must be signed in to change notification settings - Fork 6
[CSR-3102] feat: new tools #18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To avoid comitting API Key by accident, gitignoring .cursor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems we cannot use stdout as MCP uses that: https://modelcontextprotocol.io/legacy/tools/debugging#server-side-logging
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This actually uses the https://docs.currents.dev/resources/api/api-resources/tests API, leveraging the spec and title filters.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not typing responses anymore - the types will be incorrect if we change the API response, and we don't really need it as we just feed the response directly to the agent. The types does not help the agent.
Summary
get-api-configtoolTools
currents-get-projectscurrents-get-run-detailscurrents-get-spec-instancescurrents-get-spec-files-performancecurrents-get-tests-performancecurrents-get-tests-signaturescurrents-get-test-resultsUse cases
The new tools should support use cases such as:
Demo
Make a plan to fix all my flaky tests
Plan to fix flaky tests
Exported on 9/15/2025 at 22:47:40 GMT-3 from Cursor (1.5.11)
User
Make a plan to fix all my flaky tests
Cursor
I'll help you create a plan to fix all your flaky tests. First, let me understand your current setup and identify the flaky tests using the Currents MCP tools.
Now let me get the flaky tests from both projects to understand the scope of the problem:
Now let me get more details about the most flaky tests to understand their patterns:
Now let me get more details about the spec files performance to understand the broader patterns:
Based on my analysis of your test data, I've identified significant flaky test issues across your projects. Here's a comprehensive plan to fix all your flaky tests:
Flaky Test Analysis Summary
Critical Issues Found:
web-app/reports.spec.ts- 59.4% flake rate (107 flaky executions out of 180)web-app/payments.spec.ts- 22.7% flake rate (41 flaky executions out of 181)web-app/onboarding.spec.ts- 19.3% flake rate (35 flaky executions out of 181)Root Cause Analysis:
From the test results, I can see a consistent pattern:
expect(received).toBeTruthy()receivingfalseweb-app/reports.spec.tsPrioritized Action Plan
Phase 1: Critical Fixes (Week 1)
Priority: HIGH - 59.4% flake rate
1.1 Fix
web-app/reports.spec.ts(Most Critical)expect(received).toBeTruthy()waitForinstead of immediate assertions1.2 Fix
web-app/payments.spec.ts(High Priority)Phase 2: Medium Priority Fixes (Week 2)
Priority: MEDIUM - 19.3% flake rate
2.1 Fix
web-app/onboarding.spec.tsPhase 3: Infrastructure Improvements (Week 3)
Priority: MEDIUM - Prevent future flakiness
3.1 Implement Test Stability Framework
3.2 Add Test Monitoring
Specific Technical Recommendations
For
web-app/reports.spec.ts(Line 190:43)For Payment Tests
For Onboarding Tests
Implementation Timeline
Success Metrics
Next Steps
web-app/reports.spec.tsline 190:43Would you like me to help you implement any of these specific fixes, or would you prefer to start with a particular test file?