Code Quality
Weight 20%avg_cc=2.51, max_cc=89, duplication=71.25%, dead_code=5
| Primary Language | Python |
|---|---|
| Primary Framework | Unknown |
| Detected Frameworks | Docker Compose; Container |
| Technology Stack | Python, Docker, CI/CD |
| Default Branch | main |
| Documentation Priority | P2 |
| Last Repository Scan | 11/15/2026, 5:19:26 AM |
| Source Repository | Open on GitHub |
8d00c24a6b77d912631a5dd29c932b6a73dabc97appwrite/mcp8d00c24a6b77d912631a5dd29c932b6a73dabc97graph 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
Service["Service : SERVICE"]:::atlasJob
ToolManager["ToolManager : SERVICE"]:::atlasJob
Provider["Provider : DATA_ACCESS_LAYER"]:::atlasJob
Payload["Payload : DATA_ACCESS_LAYER"]:::atlasJob
FunctionsService["FunctionsService : SERVICE"]:::atlasJob
FailingSdkService["FailingSdkService : SERVICE"]:::atlasJob
SuccessfulSdkService["SuccessfulSdkService : SERVICE"]:::atlasJob
FailingService["FailingService : SERVICE"]:::atlasJob
SuccessfulService["SuccessfulService : SERVICE"]:::atlasJob
FirstService["FirstService : SERVICE"]:::atlasJob
SecondService["SecondService : SERVICE"]:::atlasJob
AvatarService["AvatarService : SERVICE"]:::atlasJob
StorageService["StorageService : SERVICE"]:::atlasJob
UsersService["UsersService : SERVICE"]:::atlasJob
ExampleService["ExampleService : SERVICE"]:::atlasJob
BinaryService["BinaryService : SERVICE"]:::atlasJob
QueryService["QueryService : SERVICE"]:::atlasJob
repo_root(["appwrite/mcp"]):::atlasRoot
repo_root --> Payload
repo_root --> Provider
AvatarService --> ToolManager
BinaryService --> Service
ExampleService --> Service
FailingSdkService --> ToolManager
FailingService --> ToolManager
FirstService --> ToolManager
FunctionsService --> ToolManager
QueryService --> Service
SecondService --> ToolManager
StorageService --> ToolManager
SuccessfulSdkService --> ToolManager
SuccessfulService --> ToolManager
ToolManager --> Service
UsersService --> ToolManager
src/mcp_server_appwrite/service.py): SERVICEsrc/mcp_server_appwrite/tool_manager.py): SERVICE (deps: Service)tests/unit/test_error_classification.py): DATA_ACCESS_LAYERtests/unit/test_error_monitoring.py): DATA_ACCESS_LAYERtests/unit/test_server.py): SERVICE (deps: ToolManager)tests/unit/test_server.py): SERVICE (deps: ToolManager)tests/unit/test_server.py): SERVICE (deps: ToolManager)tests/unit/test_server.py): SERVICE (deps: ToolManager)tests/unit/test_server.py): SERVICE (deps: ToolManager)tests/unit/test_server.py): SERVICE (deps: ToolManager)tests/unit/test_server.py): SERVICE (deps: ToolManager)tests/unit/test_server.py): SERVICE (deps: ToolManager)tests/unit/test_server.py): SERVICE (deps: ToolManager)tests/unit/test_server.py): SERVICE (deps: ToolManager)tests/unit/test_service.py): SERVICE (deps: Service)tests/unit/test_service.py): SERVICE (deps: Service)tests/unit/test_service.py): SERVICE (deps: Service)F (45.85/100)| Dimension | Grade | Score | Weight | Details |
|---|---|---|---|---|
| Code Quality | F | 40.00 | 0.20 | avg_cc=2.51, max_cc=89, duplication=71.25%, dead_code=5 |
| Dependency Health | A | 100.00 | 0.15 | dependencies=114, outdated=0, vulnerable=0, has_lockfile=True |
| Maintainability | F | 37.00 | 0.15 | avg_cognitive=2.00, max_cognitive=122, fitness_violations=3, oversized_files=12 |
| Pipeline Health | F | 0.00 | 0.15 | workflows=5, operational_antipatterns=21, parallel_branches=True |
| Security | F | 34.00 | 0.20 | vulnerabilities=0, secrets=3, pipeline_security_findings=1 |
| 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 (71.25) exceeds policy threshold (15.0).ATRUSS-ARCH-005 (COMPLEXITY_THRESHOLD): Repository max_cognitive_complexity (122.0) exceeds policy threshold (25.0).ATRUSS-ARCH-005 (COMPLEXITY_THRESHOLD): Repository max_cyclomatic_complexity (89.0) exceeds policy threshold (20.0).ATRUSS-SEC-005 at tests/e2e/support.py:1875 ("password": "$arg***REDACTED***",)ATRUSS-SEC-005 at tests/unit/fixtures/jwe-v1.json:38 ("secret": "whse***REDACTED***")ATRUSS-SEC-005 at tests/unit/fixtures/jwe-v1.json:47 ("token": "eyJh***REDACTED***")anyio 4.0.0 (PyPI, pyproject.toml)anyio 4.14.2 (PyPI, uv.lock)appwrite-console 0.16.0 (PyPI, pyproject.toml)appwrite-console 0.16.0 (PyPI, uv.lock)argon2-cffi 23.1.0 (PyPI, pyproject.toml)argon2-cffi 25.1.0 (PyPI, uv.lock)bcrypt 4.1.2 (PyPI, pyproject.toml)bcrypt 5.0.0 (PyPI, uv.lock)black 26.10.1 (PyPI, pyproject.toml)black 26.10.1 (PyPI, uv.lock)cryptography 44.0.0 (PyPI, pyproject.toml)cryptography 50.0.2 (PyPI, uv.lock)docstring-parser 0.16 (PyPI, pyproject.toml)docstring-parser 0.16 (PyPI, uv.lock)httpcore 1.0 (PyPI, pyproject.toml)httpcore 1.0.9 (PyPI, uv.lock)httpx 0.27.0 (PyPI, pyproject.toml)httpx 0.28.1 (PyPI, uv.lock)jsonschema 4.26 (PyPI, pyproject.toml)jsonschema 4.26.0 (PyPI, uv.lock)mcp 2.3 (PyPI, pyproject.toml)mcp 2.3.0 (PyPI, uv.lock)mcp-event-subscriptions 0.1.0a2 (PyPI, pyproject.toml)mcp-event-subscriptions 0.1.0a2 (PyPI, uv.lock)numpy 2.0 (PyPI, pyproject.toml)numpy 2.5.0 (PyPI, uv.lock)openai 1.40 (PyPI, pyproject.toml)openai 2.43.0 (PyPI, uv.lock)opentelemetry-api 1.28 (PyPI, pyproject.toml)opentelemetry-api 1.45.2 (PyPI, uv.lock)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_2a63f5ff_f36e_4da1_b4d1_9eb9b4e2dbd7["2a63f5ff-f36e-4da1-b4d1-9eb9b4e2dbd7"]:::atlasCategory
end
subgraph build_artifacts["Build Artifacts / Containers"]
art_Dockerfile["Dockerfile"]:::atlasWorkflow
end
subgraph ci_jobs["CI/CD Jobs"]
job_ci_yml_docker["ci.yml#docker"]:::atlasJob
job_ci_yml_e2e["ci.yml#e2e"]:::atlasJob
job_ci_yml_integration["ci.yml#integration"]:::atlasJob
job_ci_yml_lint["ci.yml#lint"]:::atlasJob
job_ci_yml_unit["ci.yml#unit"]:::atlasJob
job_production_yml_build["production.yml#build"]:::atlasJob
job_production_yml_deploy["production.yml#deploy"]:::atlasJob
job_publish_yml_publish["publish.yml#publish"]:::atlasJob
job_publish_yml_publish_mcp_registry["publish.yml#publish-mcp-registry"]:::atlasJob
job_staging_yml_build["staging.yml#build"]:::atlasJob
job_staging_yml_deploy["staging.yml#deploy"]:::atlasJob
job_update_docs_index_yml_update["update-docs-index.yml#update"]:::atlasJob
end
mod_2a63f5ff_f36e_4da1_b4d1_9eb9b4e2dbd7 -->|BUILT_BY| job_ci_yml_docker
mod_2a63f5ff_f36e_4da1_b4d1_9eb9b4e2dbd7 -->|BUILT_BY| job_ci_yml_e2e
mod_2a63f5ff_f36e_4da1_b4d1_9eb9b4e2dbd7 -->|BUILT_BY| job_ci_yml_integration
mod_2a63f5ff_f36e_4da1_b4d1_9eb9b4e2dbd7 -->|BUILT_BY| job_ci_yml_lint
mod_2a63f5ff_f36e_4da1_b4d1_9eb9b4e2dbd7 -->|BUILT_BY| job_ci_yml_unit
mod_2a63f5ff_f36e_4da1_b4d1_9eb9b4e2dbd7 -->|BUILT_BY| job_production_yml_build
mod_2a63f5ff_f36e_4da1_b4d1_9eb9b4e2dbd7 -->|BUILT_BY| job_staging_yml_build
mod_2a63f5ff_f36e_4da1_b4d1_9eb9b4e2dbd7 -->|BUILT_BY| job_update_docs_index_yml_update
mod_2a63f5ff_f36e_4da1_b4d1_9eb9b4e2dbd7 -->|DEPLOYED_BY| job_production_yml_deploy
mod_2a63f5ff_f36e_4da1_b4d1_9eb9b4e2dbd7 -->|DEPLOYED_BY| job_publish_yml_publish
mod_2a63f5ff_f36e_4da1_b4d1_9eb9b4e2dbd7 -->|DEPLOYED_BY| job_publish_yml_publish_mcp_registry
mod_2a63f5ff_f36e_4da1_b4d1_9eb9b4e2dbd7 -->|DEPLOYED_BY| job_staging_yml_deploy
mod_2a63f5ff_f36e_4da1_b4d1_9eb9b4e2dbd7 -->|PACKAGED_BY| art_Dockerfile
art_Dockerfile -->|BUILT_BY| job_production_yml_build
art_Dockerfile -->|BUILT_BY| job_staging_yml_build
art_Dockerfile -->|DEPLOYED_BY| job_production_yml_deploy
art_Dockerfile -->|DEPLOYED_BY| job_publish_yml_publish
art_Dockerfile -->|DEPLOYED_BY| job_publish_yml_publish_mcp_registry
art_Dockerfile -->|DEPLOYED_BY| job_staging_yml_deploy
2a63f5ff-f36e-4da1-b4d1-9eb9b4e2dbd7 (code_module) —[BUILT_BY]—> ci.yml#docker (ci_job)2a63f5ff-f36e-4da1-b4d1-9eb9b4e2dbd7 (code_module) —[BUILT_BY]—> ci.yml#e2e (ci_job)2a63f5ff-f36e-4da1-b4d1-9eb9b4e2dbd7 (code_module) —[BUILT_BY]—> ci.yml#integration (ci_job)2a63f5ff-f36e-4da1-b4d1-9eb9b4e2dbd7 (code_module) —[BUILT_BY]—> ci.yml#lint (ci_job)2a63f5ff-f36e-4da1-b4d1-9eb9b4e2dbd7 (code_module) —[BUILT_BY]—> ci.yml#unit (ci_job)2a63f5ff-f36e-4da1-b4d1-9eb9b4e2dbd7 (code_module) —[BUILT_BY]—> production.yml#build (ci_job)2a63f5ff-f36e-4da1-b4d1-9eb9b4e2dbd7 (code_module) —[BUILT_BY]—> staging.yml#build (ci_job)2a63f5ff-f36e-4da1-b4d1-9eb9b4e2dbd7 (code_module) —[BUILT_BY]—> update-docs-index.yml#update (ci_job)2a63f5ff-f36e-4da1-b4d1-9eb9b4e2dbd7 (code_module) —[DEPLOYED_BY]—> production.yml#deploy (ci_job)2a63f5ff-f36e-4da1-b4d1-9eb9b4e2dbd7 (code_module) —[DEPLOYED_BY]—> publish.yml#publish (ci_job)2a63f5ff-f36e-4da1-b4d1-9eb9b4e2dbd7 (code_module) —[DEPLOYED_BY]—> publish.yml#publish-mcp-registry (ci_job)2a63f5ff-f36e-4da1-b4d1-9eb9b4e2dbd7 (code_module) —[DEPLOYED_BY]—> staging.yml#deploy (ci_job)2a63f5ff-f36e-4da1-b4d1-9eb9b4e2dbd7 (code_module) —[PACKAGED_BY]—> Dockerfile (container)Dockerfile (container) —[BUILT_BY]—> production.yml#build (ci_job)Dockerfile (container) —[BUILT_BY]—> staging.yml#build (ci_job)Dockerfile (container) —[DEPLOYED_BY]—> production.yml#deploy (ci_job)Dockerfile (container) —[DEPLOYED_BY]—> publish.yml#publish (ci_job)Dockerfile (container) —[DEPLOYED_BY]—> publish.yml#publish-mcp-registry (ci_job)Dockerfile (container) —[DEPLOYED_BY]—> staging.yml#deploy (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(["appwrite/mcp (5 workflows)"]):::atlasRoot
subgraph sg_grp_0_Release___Deploy["Release & Deploy (3 workflows · 6 jobs)"]
direction TB
subgraph sg_wf_1_Production_deployment["Production deployment (2 jobs)"]
direction TB
wf_1_Production_deployment(["Trigger: Production deployment"]):::atlasWorkflow
job_1_build["build"]:::atlasJob
job_1_deploy["deploy"]:::atlasJob
wf_1_Production_deployment --> job_1_build
job_1_build --> job_1_deploy
end
pipeline_root --> wf_1_Production_deployment
subgraph sg_wf_2_Publish["Publish (2 jobs)"]
direction TB
wf_2_Publish(["Trigger: Publish"]):::atlasWorkflow
job_2_publish["publish"]:::atlasJob
job_2_publish_mcp_registry["publish-mcp-registry"]:::atlasJob
wf_2_Publish --> job_2_publish
job_2_publish --> job_2_publish_mcp_registry
end
pipeline_root --> wf_2_Publish
subgraph sg_wf_3_Staging_deployment["Staging deployment (2 jobs)"]
direction TB
wf_3_Staging_deployment(["Trigger: Staging deployment"]):::atlasWorkflow
job_3_build["build"]:::atlasJob
job_3_deploy["deploy"]:::atlasJob
wf_3_Staging_deployment --> job_3_build
job_3_build --> job_3_deploy
end
pipeline_root --> wf_3_Staging_deployment
end
subgraph sg_grp_1_CI___Verification["CI & Verification (1 workflows · 5 jobs)"]
direction TB
subgraph sg_wf_0_CI["CI (5 jobs)"]
direction TB
wf_0_CI(["Trigger: CI"]):::atlasWorkflow
job_0_lint["lint"]:::atlasJob
job_0_unit["unit"]:::atlasJob
job_0_e2e["e2e"]:::atlasJob
wf_0_CI --> job_0_lint
wf_0_CI --> job_0_unit
wf_0_CI --> job_0_e2e
end
pipeline_root --> wf_0_CI
end
subgraph sg_grp_2_Scheduled___Manual["Scheduled & Manual (1 workflows · 1 jobs)"]
direction TB
subgraph sg_wf_4_Docs["Docs (1 jobs)"]
direction TB
wf_4_Docs(["Trigger: Docs"]):::atlasWorkflow
job_4_update["update"]:::atlasJob
wf_4_Docs --> job_4_update
end
pipeline_root --> wf_4_Docs
endavg_cc=2.51, max_cc=89, duplication=71.25%, dead_code=5
vulnerabilities=0, secrets=3, pipeline_security_findings=1
avg_cognitive=2.00, max_cognitive=122, fitness_violations=3, oversized_files=12
coverage=unavailable, ci_test_job=True, test_files_detected=True
dependencies=114, outdated=0, vulnerable=0, has_lockfile=True
workflows=5, operational_antipatterns=21, parallel_branches=True
is_enabledsrc/mcp_server_appwrite/error_monitoring.py:46_find_appwrite_exceptionsrc/mcp_server_appwrite/error_monitoring.py:203_has_schema_propertysrc/mcp_server_appwrite/operator.py:975_validate_fetch_urlsrc/mcp_server_appwrite/server.py:626is_enabledsrc/mcp_server_appwrite/telemetry.py:110ATRUSS-ARCH-005COMPLEXITY_THRESHOLDsrc/mcp_server_appwrite/server.py:1Repository duplication_pct (71.25) exceeds policy threshold (15.0).
ATRUSS-ARCH-005COMPLEXITY_THRESHOLDsrc/mcp_server_appwrite/server.py:1Repository max_cognitive_complexity (122.0) exceeds policy threshold (25.0).
ATRUSS-ARCH-005COMPLEXITY_THRESHOLDsrc/mcp_server_appwrite/server.py:1Repository max_cyclomatic_complexity (89.0) exceeds policy threshold (20.0).
No known OSV vulnerabilities detected across 114 parsed dependencies.
ATRUSS-SEC-005tests/e2e/support.py:1875High-entropy credential candidate (H=4.52 > 4.5) detected.
"password": "$arg***REDACTED***",ATRUSS-SEC-005tests/unit/fixtures/jwe-v1.json:38High-entropy credential candidate (H=4.82 > 4.5) detected.
"secret": "whse***REDACTED***"ATRUSS-SEC-005tests/unit/fixtures/jwe-v1.json:47High-entropy credential candidate (H=5.96 > 4.5) detected.
"token": "eyJh***REDACTED***"Single-package repository or no monorepo workspace manifests.