Code Quality
Weight 20%avg_cc=5.04, max_cc=230, duplication=96.21%, dead_code=2
| Primary Language | JavaScript/TypeScript |
|---|---|
| Primary Framework | React (Vite) |
| Detected Frameworks | React (Vite); React; Express / Node API; TypeScript; Container |
| Deployable Types | API; Service; Frontend; Database |
| Technology Stack | JavaScript/TypeScript, Docker, CI/CD, Kubernetes |
| Default Branch | main |
| Documentation Priority | P1 |
| Last Repository Scan | 11/15/2026, 5:17:49 AM |
| Source Repository | Open on GitHub |
c9c4c89ae2acf039498bbf5bda46eb6137feefd7harness/mcp-serverc9c4c89ae2acf039498bbf5bda46eb6137feefd7graph TD;
classDef atlasRoot fill:#004882,stroke:#a3c9ff,stroke-width:2px,color:#d3e4ff
classDef atlasCategory fill:#212428,stroke:#E87A48,stroke-width:1.5px,color:#dfe3eb
classDef atlasWorkflow fill:#1b2026,stroke:#a3c9ff,stroke-width:1.5px,color:#dfe3eb
classDef atlasJob fill:#171c22,stroke:#8d9199,stroke-width:1px,color:#dfe3eb
classDef atlasTarget fill:#005227,stroke:#8bd99b,stroke-width:1.5px,color:#a7f6b6
classDef atlasAlert fill:#93000a,stroke:#ffb4ab,stroke-width:1.5px,color:#ffdad6
classDef atlasMore fill:#252a31,stroke:#8d9199,stroke-dasharray:4 4,color:#c3c6cf
harness_mcp_v2["harness-mcp-v2 : MODULE"]:::atlasJob
StatusPill["StatusPill : UI_COMPONENT"]:::atlasJob
Card["Card : UI_COMPONENT"]:::atlasJob
ChartPanel["ChartPanel : UI_COMPONENT"]:::atlasJob
Dashboard["Dashboard : UI_COMPONENT"]:::atlasJob
ExecutionCard["ExecutionCard : UI_COMPONENT"]:::atlasJob
ResultCard["ResultCard : UI_COMPONENT"]:::atlasJob
GET_health["GET_health : API_ROUTE"]:::atlasJob
POST_mcp["POST_mcp : API_ROUTE"]:::atlasJob
GET_mcp["GET_mcp : API_ROUTE"]:::atlasJob
DELETE_mcp["DELETE_mcp : API_ROUTE"]:::atlasJob
HarnessClient["HarnessClient : SERVICE"]:::atlasJob
GET__well_known_oauth_authorization_server["GET_.well-known_oauth-authorization-server : API_ROUTE"]:::atlasJob
GET_oauth_authorize["GET_oauth_authorize : API_ROUTE"]:::atlasJob
GET_oauth_upstream_callback["GET_oauth_upstream_callback : API_ROUTE"]:::atlasJob
GET_oauth_harnessid_callback["GET_oauth_harnessid_callback : API_ROUTE"]:::atlasJob
POST_oauth_token["POST_oauth_token : API_ROUTE"]:::atlasJob
GET_probe["GET_probe : API_ROUTE"]:::atlasJob
GET_trust_proxy["GET_trust proxy : API_ROUTE"]:::atlasJob
repo_root(["harness/mcp-server"]):::atlasRoot
repo_root --> Card
repo_root --> ChartPanel
repo_root --> DELETE_mcp
repo_root --> Dashboard
repo_root --> ExecutionCard
repo_root --> GET__well_known_oauth_authorization_server
repo_root --> GET_health
repo_root --> GET_mcp
repo_root --> GET_oauth_authorize
repo_root --> GET_oauth_harnessid_callback
repo_root --> GET_oauth_upstream_callback
repo_root --> GET_probe
repo_root --> GET_trust_proxy
repo_root --> HarnessClient
repo_root --> POST_mcp
repo_root --> POST_oauth_token
repo_root --> ResultCard
repo_root --> StatusPill
repo_root --> harness_mcp_v2
package.json): MODULEapps/harness-app/src/components/card.tsx): UI_COMPONENTapps/harness-app/src/components/card.tsx): UI_COMPONENTapps/harness-app/src/views/chart-panel.tsx): UI_COMPONENTapps/harness-app/src/views/dashboard.tsx): UI_COMPONENTapps/harness-app/src/views/execution-card.tsx): UI_COMPONENTapps/harness-app/src/views/result-card.tsx): UI_COMPONENTsrc/index.ts): API_ROUTEsrc/index.ts): API_ROUTEsrc/index.ts): API_ROUTEsrc/index.ts): API_ROUTEsrc/client/harness-client.ts): SERVICEsrc/utils/oauth-broker.ts): API_ROUTEsrc/utils/oauth-broker.ts): API_ROUTEsrc/utils/oauth-broker.ts): API_ROUTEsrc/utils/oauth-broker.ts): API_ROUTEsrc/utils/oauth-broker.ts): API_ROUTEtests/integration/http-transport.test.ts): API_ROUTEtests/integration/http-transport.test.ts): API_ROUTEtests/integration/http-transport.test.ts): API_ROUTEtests/utils/http-auth.test.ts): API_ROUTEtests/utils/http-auth.test.ts): API_ROUTEtests/utils/oauth-auth.test.ts): API_ROUTEtests/utils/oauth-broker.test.ts): API_ROUTEtests/utils/oauth-proxy.test.ts): API_ROUTEF (44.31/100)| Dimension | Grade | Score | Weight | Details |
|---|---|---|---|---|
| Code Quality | F | 37.84 | 0.20 | avg_cc=5.04, max_cc=230, duplication=96.21%, dead_code=2 |
| Dependency Health | A | 100.00 | 0.15 | dependencies=329, outdated=0, vulnerable=0, has_lockfile=True |
| Maintainability | F | 36.97 | 0.15 | avg_cognitive=5.01, max_cognitive=492, fitness_violations=3, oversized_files=22 |
| Pipeline Health | F | 38.00 | 0.15 | workflows=4, operational_antipatterns=10, parallel_branches=True |
| Security | F | 0.00 | 0.20 | vulnerabilities=0, secrets=0, pipeline_security_findings=14 |
| Test Coverage | C | 70.00 | 0.15 | coverage=unavailable, ci_test_job=True, test_files_detected=True |
ATRUSS-ARCH-005 (COMPLEXITY_THRESHOLD): Repository duplication_pct (96.21) exceeds policy threshold (15.0).ATRUSS-ARCH-005 (COMPLEXITY_THRESHOLD): Repository max_cognitive_complexity (492.0) exceeds policy threshold (25.0).ATRUSS-ARCH-005 (COMPLEXITY_THRESHOLD): Repository max_cyclomatic_complexity (230.0) exceeds policy threshold (20.0).@hono/node-server 2.1.6 (npm, package.json)@hono/node-server 2.1.8 (npm, pnpm-lock.yaml)@huggingface/transformers 4.3.0 (npm, pnpm-lock.yaml)@modelcontextprotocol/ext-apps 1.7.5 (npm, package.json)@modelcontextprotocol/ext-apps 1.7.5 (npm, pnpm-lock.yaml)@modelcontextprotocol/sdk 1.31.0 (npm, package.json)@modelcontextprotocol/sdk 1.32.1 (npm, pnpm-lock.yaml)@opentelemetry/api 1.9.1 (npm, package.json)@opentelemetry/api 1.9.1 (npm, pnpm-lock.yaml)@opentelemetry/exporter-trace-otlp-http 0.220.0 (npm, package.json)@opentelemetry/exporter-trace-otlp-http 0.220.0 (npm, pnpm-lock.yaml)@opentelemetry/resources 2.9.0 (npm, package.json)@opentelemetry/resources 2.9.0 (npm, pnpm-lock.yaml)@opentelemetry/sdk-trace-node 2.9.0 (npm, package.json)@opentelemetry/sdk-trace-node 2.9.0 (npm, pnpm-lock.yaml)@types/express 5.0.6 (npm, package.json)@types/express 5.0.6 (npm, pnpm-lock.yaml)@types/jsonwebtoken 9.0.10 (npm, package.json)@types/jsonwebtoken 9.0.10 (npm, pnpm-lock.yaml)@types/node 22.13.5 (npm, package.json)@types/node 22.19.12 (npm, pnpm-lock.yaml)adm-zip 0.6.1 (npm, package.json)adm-zip 0.6.1 (npm, pnpm-lock.yaml)chart.js 4.6.1 (npm, package.json)chart.js 4.6.1 (npm, pnpm-lock.yaml)dotenv 17.3.1 (npm, package.json)dotenv 17.3.1 (npm, pnpm-lock.yaml)express 5.2.1 (npm, package.json)express 5.2.1 (npm, pnpm-lock.yaml)hono 4.13.16 (npm, package.json)flowchart LR
classDef atlasCategory fill:#212428,stroke:#E87A48,stroke-width:1.5px,color:#dfe3eb
classDef atlasWorkflow fill:#1b2026,stroke:#a3c9ff,stroke-width:1.5px,color:#dfe3eb
classDef atlasJob fill:#171c22,stroke:#8d9199,stroke-width:1px,color:#dfe3eb
classDef atlasTarget fill:#005227,stroke:#8bd99b,stroke-width:1.5px,color:#a7f6b6
subgraph code_modules["Code Modules"]
mod_407ede35_3553_4a95_87c3_653ba7015dbe["407ede35-3553-4a95-87c3-653ba7015dbe"]:::atlasCategory
end
subgraph build_artifacts["Build Artifacts / Containers"]
art_Dockerfile["Dockerfile"]:::atlasWorkflow
end
subgraph ci_jobs["CI/CD Jobs"]
job_ci_yml_container_build["ci.yml#container-build"]:::atlasJob
end
mod_407ede35_3553_4a95_87c3_653ba7015dbe -->|BUILT_BY| job_ci_yml_container_build
mod_407ede35_3553_4a95_87c3_653ba7015dbe -->|PACKAGED_BY| art_Dockerfile
art_Dockerfile -->|BUILT_BY| job_ci_yml_container_build
407ede35-3553-4a95-87c3-653ba7015dbe (code_module) —[BUILT_BY]—> ci.yml#container-build (ci_job)407ede35-3553-4a95-87c3-653ba7015dbe (code_module) —[PACKAGED_BY]—> Dockerfile (container)Dockerfile (container) —[BUILT_BY]—> ci.yml#container-build (ci_job)graph TD;
classDef atlasRoot fill:#004882,stroke:#a3c9ff,stroke-width:2px,color:#d3e4ff
classDef atlasCategory fill:#212428,stroke:#E87A48,stroke-width:1.5px,color:#dfe3eb
classDef atlasWorkflow fill:#1b2026,stroke:#a3c9ff,stroke-width:1.5px,color:#dfe3eb
classDef atlasJob fill:#171c22,stroke:#8d9199,stroke-width:1px,color:#dfe3eb
classDef atlasTarget fill:#005227,stroke:#8bd99b,stroke-width:1.5px,color:#a7f6b6
classDef atlasAlert fill:#93000a,stroke:#ffb4ab,stroke-width:1.5px,color:#ffdad6
classDef atlasMore fill:#252a31,stroke:#8d9199,stroke-dasharray:4 4,color:#c3c6cf
pipeline_root(["harness/mcp-server (4 workflows)"]):::atlasRoot
subgraph sg_grp_0_Scheduled___Manual["Scheduled & Manual (2 workflows · 2 jobs)"]
direction TB
subgraph sg_wf_2_Sync_Entity_YAML_Schemas["Sync Entity YAML Schemas (1 jobs)"]
direction TB
wf_2_Sync_Entity_YAML_Schemas(["Trigger: Sync Entity YAML Schemas"]):::atlasWorkflow
job_2_sync_entity_schemas["sync-entity-schemas"]:::atlasJob
wf_2_Sync_Entity_YAML_Schemas --> job_2_sync_entity_schemas
end
pipeline_root --> wf_2_Sync_Entity_YAML_Schemas
subgraph sg_wf_3_Sync_Harness_Schemas["Sync Harness Schemas (1 jobs)"]
direction TB
wf_3_Sync_Harness_Schemas(["Trigger: Sync Harness Schemas"]):::atlasWorkflow
job_3_sync_schemas["sync-schemas"]:::atlasJob
wf_3_Sync_Harness_Schemas --> job_3_sync_schemas
end
pipeline_root --> wf_3_Sync_Harness_Schemas
end
subgraph sg_grp_1_CI___Verification["CI & Verification (1 workflows · 3 jobs)"]
direction TB
subgraph sg_wf_0_CI["CI (3 jobs)"]
direction TB
wf_0_CI(["Trigger: CI"]):::atlasWorkflow
job_0_build_and_test["build-and-test"]:::atlasJob
job_0_smoke_test["smoke-test"]:::atlasJob
job_0_container_build["container-build"]:::atlasJob
wf_0_CI --> job_0_build_and_test
job_0_build_and_test --> job_0_smoke_test
wf_0_CI --> job_0_container_build
end
pipeline_root --> wf_0_CI
end
subgraph sg_grp_2_Release___Deploy["Release & Deploy (1 workflows · 2 jobs)"]
direction TB
subgraph sg_wf_1_Release["Release (2 jobs)"]
direction TB
wf_1_Release(["Trigger: Release"]):::atlasWorkflow
job_1_release["release"]:::atlasJob
job_1_mcpb["mcpb"]:::atlasJob
wf_1_Release --> job_1_release
job_1_release --> job_1_mcpb
end
pipeline_root --> wf_1_Release
endavg_cc=5.04, max_cc=230, duplication=96.21%, dead_code=2
vulnerabilities=0, secrets=0, pipeline_security_findings=14
avg_cognitive=5.01, max_cognitive=492, fitness_violations=3, oversized_files=22
coverage=unavailable, ci_test_job=True, test_files_detected=True
dependencies=329, outdated=0, vulnerable=0, has_lockfile=True
workflows=4, operational_antipatterns=10, parallel_branches=True
stripHtmlsrc/client/harness-client.ts:126TemplateResponsesrc/utils/runtime-input-resolver.ts:64ATRUSS-ARCH-005COMPLEXITY_THRESHOLDsrc/registry/index.ts:1Repository duplication_pct (96.21) exceeds policy threshold (15.0).
ATRUSS-ARCH-005COMPLEXITY_THRESHOLDsrc/registry/index.ts:1Repository max_cognitive_complexity (492.0) exceeds policy threshold (25.0).
ATRUSS-ARCH-005COMPLEXITY_THRESHOLDsrc/registry/index.ts:1Repository max_cyclomatic_complexity (230.0) exceeds policy threshold (20.0).
No known OSV vulnerabilities detected across 329 parsed dependencies.
No hardcoded secret patterns detected.
Single-package repository or no monorepo workspace manifests.