{"jsonrpc":"2.0","id":1,"result":{"protocolVersion":"2024-11-05","capabilities":{"tools":{}},"serverInfo":{"name":"rmcp","version":"1.2.0"},"instructions":"APEX (Autonomous Path EXploration) -- drives any repository toward 100% branch coverage through instrumentation, fuzzing, concolic execution, symbolic solving, and AI-guided test synthesis."}}
{"jsonrpc":"2.0","id":2,"result":{"tools":[{"name":"apex_api_coverage","description":"Measure API endpoint test coverage against an OpenAPI spec.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Parameters for `apex api-coverage`.","properties":{"lang":{"description":"Programming language: python, js, java, c, rust, wasm, ruby","type":"string"},"target":{"description":"Absolute or relative path to the target repository","type":"string"}},"required":["target","lang"],"title":"ApiCoverageParams","type":"object"}},{"name":"apex_api_diff","description":"Compare two OpenAPI specs for breaking changes.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Parameters for `apex api-diff`.","properties":{"new_spec":{"description":"Absolute or relative path to the new OpenAPI spec","type":"string"},"old_spec":{"description":"Absolute or relative path to the old OpenAPI spec","type":"string"}},"required":["old_spec","new_spec"],"title":"ApiDiffParams","type":"object"}},{"name":"apex_attack_surface","description":"Map the attack surface — entry points, untrusted inputs, and reachable code paths.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Parameters for `apex attack-surface`.","properties":{"lang":{"description":"Programming language: python, js, java, c, rust, wasm, ruby","type":"string"},"target":{"description":"Absolute or relative path to the target repository","type":"string"}},"required":["target","lang"],"title":"AttackSurfaceParams","type":"object"}},{"name":"apex_blast_radius","description":"Calculate the blast radius of changed files — which modules and tests are affected.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Parameters for `apex blast-radius`.","properties":{"changed_files":{"description":"Comma-separated list of changed files","type":"string"},"lang":{"description":"Programming language: python, js, java, c, rust, wasm, ruby","type":"string"},"target":{"description":"Path to the target repository","type":"string"}},"required":["target","lang","changed_files"],"title":"BlastRadiusParams","type":"object"}},{"name":"apex_complexity","description":"Analyze function-level cyclomatic complexity. Returns hotspots sorted by complexity score.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Parameters for `apex complexity`.","properties":{"target":{"description":"Path to the target repository","type":"string"}},"required":["target"],"title":"ComplexityParams","type":"object"}},{"name":"apex_compliance_export","description":"Export compliance report (ASVS, STRIDE, SSDF) for audit purposes.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Parameters for `apex compliance-export`.","properties":{"lang":{"description":"Programming language: python, js, java, c, rust, wasm, ruby","type":"string"},"target":{"description":"Absolute or relative path to the target repository","type":"string"}},"required":["target","lang"],"title":"ComplianceExportParams","type":"object"}},{"name":"apex_contracts","description":"Extract function contracts (pre/post conditions, invariants) from source.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Parameters for `apex contracts`.","properties":{"target":{"description":"Absolute or relative path to the target repository","type":"string"}},"required":["target"],"title":"ContractsParams","type":"object"}},{"name":"apex_data_flow","description":"Trace data flow and taint paths through the codebase.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Parameters for `apex data-flow`.","properties":{"lang":{"description":"Programming language: python, js, java, c, rust, wasm, ruby","type":"string"},"target":{"description":"Path to the target repository","type":"string"}},"required":["target","lang"],"title":"DataFlowParams","type":"object"}},{"name":"apex_dead_code","description":"Find unreachable branches and dead code. Returns per-file dead branch counts.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Parameters for `apex dead-code`.","properties":{"target":{"description":"Path to the target repository","type":"string"}},"required":["target"],"title":"DeadCodeParams","type":"object"}},{"name":"apex_deploy_score","description":"Calculate a deployment confidence score (0-100) based on coverage, findings, and code quality metrics.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Parameters for `apex deploy-score`.","properties":{"lang":{"description":"Programming language: python, js, java, c, rust, wasm, ruby","type":"string"},"target":{"description":"Absolute or relative path to the target repository","type":"string"}},"required":["target","lang"],"title":"DeployScoreParams","type":"object"}},{"name":"apex_detect","description":"Run APEX security/bug detection (audit). Returns findings with CWE IDs, severity, file locations, and remediation advice.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Parameters for `apex audit` (security/bug detection).","properties":{"detectors":{"description":"Comma-separated list of detectors to run (optional)","type":["string","null"]},"lang":{"description":"Programming language: python, js, java, c, rust, wasm, ruby","type":"string"},"target":{"description":"Absolute or relative path to the target repository","type":"string"}},"required":["target","lang"],"title":"DetectParams","type":"object"}},{"name":"apex_diff","description":"Compare coverage between current state and a git ref. Returns added/removed/changed branches.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Parameters for `apex diff`.","properties":{"base":{"description":"Git ref to compare against (branch, tag, or commit hash)","type":"string"},"lang":{"description":"Programming language: python, js, java, c, rust, wasm, ruby","type":"string"},"target":{"description":"Absolute or relative path to the target repository","type":"string"}},"required":["target","lang","base"],"title":"DiffParams","type":"object"}},{"name":"apex_docs","description":"Generate documentation coverage report.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Parameters for `apex docs`.","properties":{"target":{"description":"Absolute or relative path to the target repository","type":"string"}},"required":["target"],"title":"DocsParams","type":"object"}},{"name":"apex_doctor","description":"Run APEX doctor to verify all required external tools are installed and configured correctly.","inputSchema":{"properties":{},"type":"object"}},{"name":"apex_features","description":"Show the per-language feature matrix — what instrumentation and analysis is available.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Parameters for `apex features`.","properties":{"lang":{"description":"Programming language: python, js, java, c, rust, wasm, ruby","type":"string"}},"required":["lang"],"title":"FeaturesParams","type":"object"}},{"name":"apex_flag_hygiene","description":"Detect stale or unused feature flags in source code.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Parameters for `apex flag-hygiene`.","properties":{"lang":{"description":"Programming language: python, js, java, c, rust, wasm, ruby","type":"string"},"target":{"description":"Absolute or relative path to the target repository","type":"string"}},"required":["target","lang"],"title":"FlagHygieneParams","type":"object"}},{"name":"apex_flaky_detect","description":"Detect flaky tests by analyzing test execution history and timing variance.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Parameters for `apex flaky-detect`.","properties":{"lang":{"description":"Programming language: python, js, java, c, rust, wasm, ruby","type":"string"},"target":{"description":"Absolute or relative path to the target repository","type":"string"}},"required":["target","lang"],"title":"FlakyDetectParams","type":"object"}},{"name":"apex_hotpaths","description":"Identify the most frequently executed code paths. Returns branches sorted by hit count.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Parameters for `apex hotpaths`.","properties":{"target":{"description":"Path to the target repository","type":"string"}},"required":["target"],"title":"HotpathsParams","type":"object"}},{"name":"apex_index","description":"Build the branch coverage index for a target project.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Parameters for `apex index`.","properties":{"lang":{"description":"Programming language: python, js, java, c, rust, wasm, ruby","type":"string"},"target":{"description":"Absolute or relative path to the target repository","type":"string"}},"required":["target","lang"],"title":"IndexParams","type":"object"}},{"name":"apex_license_scan","description":"Scan dependencies for license compliance issues.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Parameters for `apex license-scan`.","properties":{"lang":{"description":"Programming language: python, js, java, c, rust, wasm, ruby","type":"string"},"target":{"description":"Absolute or relative path to the target repository","type":"string"}},"required":["target","lang"],"title":"LicenseScanParams","type":"object"}},{"name":"apex_lint","description":"Run code quality lints including complexity, naming, and style checks.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Parameters for `apex lint`.","properties":{"lang":{"description":"Programming language: python, js, java, c, rust, wasm, ruby","type":"string"},"target":{"description":"Absolute or relative path to the target repository","type":"string"}},"required":["target","lang"],"title":"LintParams","type":"object"}},{"name":"apex_ratchet","description":"Run APEX ratchet CI gate. Fails if branch coverage drops below the configured or specified threshold. Returns pass/fail with coverage percentage.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Parameters for `apex ratchet` (CI coverage gate).","properties":{"lang":{"description":"Programming language: python, js, java, c, rust, wasm, ruby","type":"string"},"min_coverage":{"description":"Minimum coverage threshold 0.0-1.0 (optional)","format":"double","type":["number","null"]},"target":{"description":"Absolute or relative path to the target repository","type":"string"}},"required":["target","lang"],"title":"RatchetParams","type":"object"}},{"name":"apex_reach","description":"Map reachable code paths from a source location (file:line). Returns entry-point reachability and attack surface data.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Parameters for `apex reach` (reachability from a source location).","properties":{"lang":{"description":"Programming language: python, js, java, c, rust, wasm, ruby","type":"string"},"target":{"description":"Source location as file:line","type":"string"}},"required":["target","lang"],"title":"ReachParams","type":"object"}},{"name":"apex_regression_check","description":"Check for coverage regressions against the stored baseline.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Parameters for `apex regression-check`.","properties":{"lang":{"description":"Programming language: python, js, java, c, rust, wasm, ruby","type":"string"},"target":{"description":"Absolute or relative path to the target repository","type":"string"}},"required":["target","lang"],"title":"RegressionCheckParams","type":"object"}},{"name":"apex_risk","description":"Assess risk of changed files. Returns affected test count and risk level.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Parameters for `apex risk`.","properties":{"changed_files":{"description":"Comma-separated list of changed files","type":"string"},"target":{"description":"Path to the target repository","type":"string"}},"required":["target","changed_files"],"title":"RiskParams","type":"object"}},{"name":"apex_run","description":"Run APEX coverage analysis. Returns a JSON gap report with branch coverage data, uncovered branches, and suggested test targets.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Parameters for `apex run` (coverage analysis).","properties":{"lang":{"description":"Programming language: python, js, java, c, rust, wasm, ruby","type":"string"},"strategy":{"description":"Strategy: baseline | fuzz | concolic | all","type":["string","null"]},"target":{"description":"Absolute or relative path to the target repository","type":"string"}},"required":["target","lang"],"title":"RunParams","type":"object"}},{"name":"apex_schema_check","description":"Check SQL migrations for dangerous operations (DROP, TRUNCATE, data loss risk).","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Parameters for `apex schema-check`.","properties":{"target":{"description":"Absolute or relative path to the SQL migration file","type":"string"}},"required":["target"],"title":"SchemaCheckParams","type":"object"}},{"name":"apex_secret_scan","description":"Scan for hardcoded secrets, API keys, and high-entropy strings.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Parameters for `apex secret-scan`.","properties":{"lang":{"description":"Programming language: python, js, java, c, rust, wasm, ruby","type":"string"},"target":{"description":"Path to the target repository","type":"string"}},"required":["target","lang"],"title":"SecretScanParams","type":"object"}},{"name":"apex_service_map","description":"Map service dependencies — HTTP clients, database connections, message queues.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Parameters for `apex service-map`.","properties":{"lang":{"description":"Programming language: python, js, java, c, rust, wasm, ruby","type":"string"},"target":{"description":"Absolute or relative path to the target repository","type":"string"}},"required":["target","lang"],"title":"ServiceMapParams","type":"object"}},{"name":"apex_test_data","description":"Generate test data based on schema analysis.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Parameters for `apex test-data`.","properties":{"target":{"description":"Absolute or relative path to the target repository or schema file","type":"string"}},"required":["target"],"title":"TestDataParams","type":"object"}},{"name":"apex_test_optimize","description":"Identify redundant tests that can be removed to save CI time.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Parameters for `apex test-optimize`.","properties":{"target":{"description":"Path to the target repository","type":"string"}},"required":["target"],"title":"TestOptimizeParams","type":"object"}},{"name":"apex_test_prioritize","description":"Prioritize tests by relevance to changed files. Returns ordered test list.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Parameters for `apex test-prioritize`.","properties":{"changed_files":{"description":"Comma-separated list of changed files","type":"string"},"target":{"description":"Path to the target repository","type":"string"}},"required":["target","changed_files"],"title":"TestPrioritizeParams","type":"object"}},{"name":"apex_verify_boundaries","description":"Verify trust boundaries — check that auth/validation exists on entry paths.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Parameters for `apex verify-boundaries`.","properties":{"lang":{"description":"Programming language: python, js, java, c, rust, wasm, ruby","type":"string"},"target":{"description":"Absolute or relative path to the target repository","type":"string"}},"required":["target","lang"],"title":"VerifyBoundariesParams","type":"object"}}]}}
