🤖 AI Gateway | AI Native API Gateway
This report presents the forensic synthetic code analysis of higress-group/higress, a Go project with 8,853 GitHub stars. SynthScan v2.0 examined 454,566 lines of code across 1810 source files, recording 1192 pattern matches distributed across 17 syntactic categories. The overall adjusted score of 3.0 places this repository in the Likely human-written band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 1192 distinct pattern matches across 17 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | get_helm.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | cmd/higress/main.go | 1 | // Copyright (c) 2022 Alibaba Group Holding Ltd. | COMMENT |
| LOW | tools/hack/create-cluster.sh | 1 | # Copyright (c) 2022 Alibaba Group Holding Ltd. | COMMENT |
| LOW | tools/hack/gobuild.sh | 1 | #!/bin/bash | COMMENT |
| LOW | tools/hack/kind-load-image.sh | 1 | # Copyright (c) 2022 Alibaba Group Holding Ltd. | COMMENT |
| LOW | tools/hack/build-istio-pilot.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | tools/hack/docker-pull-image.sh | 1 | # Copyright (c) 2022 Alibaba Group Holding Ltd. | COMMENT |
| LOW | tools/hack/report_build_info.sh | 1 | #!/bin/bash | COMMENT |
| LOW | tools/hack/build-wasm-plugins.sh | 1 | # Copyright (c) 2022 Alibaba Group Holding Ltd. | COMMENT |
| LOW | tools/hack/run.sh | 1 | #!/bin/bash | COMMENT |
| LOW | tools/hack/build-golang-filters.sh | 1 | # Copyright (c) 2022 Alibaba Group Holding Ltd. | COMMENT |
| LOW | tools/hack/check-golang-filter-envoy-sync.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | tools/hack/build-envoy.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | tools/hack/setup_env.sh | 1 | #!/bin/bash | COMMENT |
| LOW | tools/hack/build-istio-image.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | tools/hack/get-hgctl.sh | 1 | # Copyright (c) 2022 Alibaba Group Holding Ltd. | COMMENT |
| LOW | tools/hack/setup-istio-env.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | tools/src/kind/pin.go | 1 | // Copyright (c) 2022 Alibaba Group Holding Ltd. | COMMENT |
| LOW | tools/src/golangci-lint/pin.go | 1 | // Copyright (c) 2022 Alibaba Group Holding Ltd. | COMMENT |
| LOW | tools/src/kustomize/pin.go | 1 | // Copyright (c) 2022 Alibaba Group Holding Ltd. | COMMENT |
| LOW | tools/src/controller-gen/pin.go | 1 | // Copyright (c) 2022 Alibaba Group Holding Ltd. | COMMENT |
| LOW | tools/src/setup-envtest/pin.go | 1 | // Copyright (c) 2022 Alibaba Group Holding Ltd. | COMMENT |
| LOW | tools/src/kind-gateway-api/pin.go | 1 | // Copyright (c) 2026 Alibaba Group Holding Ltd. | COMMENT |
| LOW | docker/docker-copy.sh | 1 | #!/bin/bash | COMMENT |
| LOW | test/e2e/e2e_test.go | 1 | // Copyright (c) 2022 Alibaba Group Holding Ltd. | COMMENT |
| LOW | test/e2e/conformance/embed.go | 1 | // Copyright (c) 2022 Alibaba Group Holding Ltd. | COMMENT |
| LOW | …e/conformance/tests/httproute-exact-domain-fallback.go | 1 | // Copyright (c) 2022 Alibaba Group Holding Ltd. | COMMENT |
| LOW | test/e2e/conformance/tests/go-wasm-bot-detect.yaml | 1 | # Copyright (c) 2022 Alibaba Group Holding Ltd. | COMMENT |
| LOW | test/e2e/conformance/tests/httproute-timeout.yaml | 1 | # Copyright (c) 2022 Alibaba Group Holding Ltd. | COMMENT |
| LOW | …ts/httproute-canary-header-with-customized-header.yaml | 1 | # Copyright (c) 2022 Alibaba Group Holding Ltd. | COMMENT |
| LOW | test/e2e/conformance/tests/go-wasm-ai-cache.go | 1 | // Copyright (c) 2022 Alibaba Group Holding Ltd. | COMMENT |
| LOW | test/e2e/conformance/tests/httproute-dns-registry.yaml | 1 | # Copyright (c) 2022 Alibaba Group Holding Ltd. | COMMENT |
| LOW | test/e2e/conformance/tests/go-wasm-opa.yaml | 1 | # Copyright (c) 2022 Alibaba Group Holding Ltd. | COMMENT |
| LOW | …onformance/tests/go-wasm-jwt-auth-single-consumer.yaml | 1 | # Copyright (c) 2024 Alibaba Group Holding Ltd. | COMMENT |
| LOW | test/e2e/conformance/tests/go-wasm-basic-auth.yaml | 1 | # Copyright (c) 2022 Alibaba Group Holding Ltd. | COMMENT |
| LOW | …2e/conformance/tests/httproute-match-query-params.yaml | 1 | # Copyright (c) 2022 Alibaba Group Holding Ltd. | COMMENT |
| LOW | test/e2e/conformance/tests/go-wasm-jwt-auth-deny.yaml | 1 | # Copyright (c) 2024 Alibaba Group Holding Ltd. | COMMENT |
| LOW | test/e2e/conformance/tests/cpp-wasm-key-auth.yaml | 1 | # Copyright (c) 2022 Alibaba Group Holding Ltd. | COMMENT |
| LOW | test/e2e/conformance/tests/httproute-consul-httpbin.go | 1 | // Copyright (c) 2022 Alibaba Group Holding Ltd. | COMMENT |
| LOW | …/e2e/conformance/tests/go-wasm-reroute-match-rule.yaml | 1 | # Copyright (c) 2022 Alibaba Group Holding Ltd. | COMMENT |
| LOW | …t/e2e/conformance/tests/httproute-full-path-regex.yaml | 1 | # Copyright (c) 2022 Alibaba Group Holding Ltd. | COMMENT |
| LOW | test/e2e/conformance/tests/httproute-default-backend.go | 1 | // Copyright (c) 2022 Alibaba Group Holding Ltd. | COMMENT |
| LOW | test/e2e/conformance/tests/httproute-match-path.yaml | 1 | # Copyright (c) 2022 Alibaba Group Holding Ltd. | COMMENT |
| LOW | test/e2e/conformance/tests/go-wasm-ai-proxy.go | 1 | // Copyright (c) 2025 Alibaba Group Holding Ltd. | COMMENT |
| LOW | test/e2e/conformance/tests/go-wasm-opa.go | 1 | // Copyright (c) 2022 Alibaba Group Holding Ltd. | COMMENT |
| LOW | test/e2e/conformance/tests/configmap-global.yaml | 1 | # Copyright (c) 2022 Alibaba Group Holding Ltd. | COMMENT |
| LOW | test/e2e/conformance/tests/httproute-match-headers.go | 1 | // Copyright (c) 2022 Alibaba Group Holding Ltd. | COMMENT |
| LOW | test/e2e/conformance/tests/go-wasm-request-block.yaml | 1 | # Copyright (c) 2022 Alibaba Group Holding Ltd. | COMMENT |
| LOW | test/e2e/conformance/tests/go-wasm-key-auth.go | 1 | // Copyright (c) 2023 Alibaba Group Holding Ltd. | COMMENT |
| LOW | …/conformance/tests/httproute-whitelist-source-range.go | 1 | // Copyright (c) 2022 Alibaba Group Holding Ltd. | COMMENT |
| LOW | test/e2e/conformance/tests/go-wasm-basic-auth.go | 1 | // Copyright (c) 2022 Alibaba Group Holding Ltd. | COMMENT |
| LOW | …t/e2e/conformance/tests/httproute-default-backend.yaml | 1 | # Copyright (c) 2022 Alibaba Group Holding Ltd. | COMMENT |
| LOW | test/e2e/conformance/tests/httproute-dns-registry.go | 1 | // Copyright (c) 2022 Alibaba Group Holding Ltd. | COMMENT |
| LOW | test/e2e/conformance/tests/httproute-canary-weight.go | 1 | // Copyright (c) 2022 Alibaba Group Holding Ltd. | COMMENT |
| LOW | test/e2e/conformance/tests/go-wasm-request-block.go | 1 | // Copyright (c) 2022 Alibaba Group Holding Ltd. | COMMENT |
| LOW | …/conformance/tests/httproute-request-header-control.go | 1 | // Copyright (c) 2022 Alibaba Group Holding Ltd. | COMMENT |
| LOW | …/e2e/conformance/tests/httproute-redirct-as-https.yaml | 1 | # Copyright (c) 2022 Alibaba Group Holding Ltd. | COMMENT |
| LOW | test/e2e/conformance/tests/go-wasm-geo-ip.go | 1 | // Copyright (c) 2022 Alibaba Group Holding Ltd. | COMMENT |
| LOW | …e2e/conformance/tests/go-wasm-basic-auth-template.yaml | 1 | # Copyright (c) 2022 Alibaba Group Holding Ltd. | COMMENT |
| LOW | …t/e2e/conformance/tests/httproute-temporal-redirect.go | 1 | // Copyright (c) 2022 Alibaba Group Holding Ltd. | COMMENT |
| 911 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | plugins/wasm-go/extensions/mcp-server/main_test.go | 2024 | // Step 1: Mock SSE channel response headers (GET request response) | COMMENT |
| LOW⚡ | plugins/wasm-go/extensions/mcp-server/main_test.go | 2033 | // Step 2: Send SSE endpoint message | COMMENT |
| LOW⚡ | plugins/wasm-go/extensions/mcp-server/main_test.go | 2043 | // Step 3: Mock initialize response via RouteCluster callback | COMMENT |
| LOW⚡ | plugins/wasm-go/extensions/mcp-server/main_test.go | 2050 | // Step 4: Send SSE initialize response in the stream | COMMENT |
| LOW⚡ | plugins/wasm-go/extensions/mcp-server/main_test.go | 2059 | // Step 5: Mock notification response via RouteCluster callback | COMMENT |
| LOW⚡ | plugins/wasm-go/extensions/mcp-server/main_test.go | 2067 | // Step 6: Mock tools/list response via RouteCluster callback | COMMENT |
| LOW⚡ | plugins/wasm-go/extensions/mcp-server/main_test.go | 2074 | // Step 7: Send SSE tools/list response in the stream | COMMENT |
| LOW⚡ | plugins/wasm-go/extensions/mcp-server/main_test.go | 2148 | // Step 1: Mock SSE channel response headers | COMMENT |
| LOW⚡ | plugins/wasm-go/extensions/mcp-server/main_test.go | 2156 | // Step 2: Send SSE endpoint message | COMMENT |
| LOW⚡ | plugins/wasm-go/extensions/mcp-server/main_test.go | 2163 | // Step 3: Mock initialize response via RouteCluster callback | COMMENT |
| LOW⚡ | plugins/wasm-go/extensions/mcp-server/main_test.go | 2170 | // Step 4: Send SSE initialize response in the stream | COMMENT |
| LOW⚡ | plugins/wasm-go/extensions/mcp-server/main_test.go | 2177 | // Step 5: Mock notification response via RouteCluster callback | COMMENT |
| LOW⚡ | plugins/wasm-go/extensions/mcp-server/main_test.go | 2184 | // Step 6: Mock tools/call response via RouteCluster callback | COMMENT |
| LOW⚡ | plugins/wasm-go/extensions/mcp-server/main_test.go | 2191 | // Step 7: Send SSE tools/call response in the stream | COMMENT |
| LOW⚡ | plugins/wasm-go/extensions/oidc/README.md | 113 | #### Step 1: 配置 Auth0 账户 | COMMENT |
| LOW⚡ | plugins/wasm-go/extensions/oidc/README.md | 120 | #### Step 2: Higress 配置服务来源 | COMMENT |
| LOW⚡ | plugins/wasm-go/extensions/oidc/README.md | 126 | #### Step 3: OIDC 服务 HTTPS 配置 | COMMENT |
| LOW | plugins/wasm-go/extensions/oidc/README.md | 152 | #### Step 4: Wasm 插件配置 | COMMENT |
| LOW⚡ | plugins/wasm-go/extensions/oidc/README.md | 202 | #### Step 1: Get started with keycloak on docker | COMMENT |
| LOW⚡ | plugins/wasm-go/extensions/oidc/README.md | 208 | #### Step 2: Higress 配置服务来源 | COMMENT |
| LOW⚡ | plugins/wasm-go/extensions/oidc/README.md | 214 | #### Step 3: Wasm 插件配置 | COMMENT |
| LOW⚡ | plugins/wasm-go/extensions/oidc/README.md | 259 | #### Step 1: 配置 Aliyun OAuth应用 | COMMENT |
| LOW⚡ | plugins/wasm-go/extensions/oidc/README.md | 263 | #### Step 2: Higress 配置服务来源 | COMMENT |
| LOW⚡ | plugins/wasm-go/extensions/oidc/README.md | 269 | #### Step 3: Wasm 插件配置 | COMMENT |
| LOW⚡ | plugins/wasm-go/extensions/oidc/README.md | 302 | #### Step 1: 配置 Github OAuth应用 | COMMENT |
| LOW⚡ | plugins/wasm-go/extensions/oidc/README.md | 306 | #### Step 2: Higress 配置服务来源 | COMMENT |
| LOW⚡ | plugins/wasm-go/extensions/oidc/README.md | 313 | #### Step 3: OIDC 服务 HTTPS 配置 | COMMENT |
| LOW⚡ | plugins/wasm-go/extensions/oidc/README.md | 317 | #### Step 4: Wasm 插件配置 | COMMENT |
| LOW⚡ | plugins/wasm-go/extensions/oidc/README_EN.md | 101 | #### Step 1: Configure Auth0 Account | COMMENT |
| LOW⚡ | plugins/wasm-go/extensions/oidc/README_EN.md | 106 | #### Step 2: Higress Configure Service Source | COMMENT |
| LOW⚡ | plugins/wasm-go/extensions/oidc/README_EN.md | 110 | #### Step 3: OIDC Service HTTPS Configuration | COMMENT |
| LOW | plugins/wasm-go/extensions/oidc/README_EN.md | 135 | #### Step 4: Wasm Plugin Configuration | COMMENT |
| LOW⚡ | plugins/wasm-go/extensions/oidc/README_EN.md | 178 | #### Step 1: Get Started with Keycloak on Docker | COMMENT |
| LOW⚡ | plugins/wasm-go/extensions/oidc/README_EN.md | 182 | #### Step 2: Higress Configure Service Source | COMMENT |
| LOW⚡ | plugins/wasm-go/extensions/oidc/README_EN.md | 186 | #### Step 3: Wasm Plugin Configuration | COMMENT |
| LOW⚡ | plugins/wasm-go/extensions/oidc/README_EN.md | 225 | #### Step 1: Configure Aliyun OAuth Application | COMMENT |
| LOW⚡ | plugins/wasm-go/extensions/oidc/README_EN.md | 228 | #### Step 2: Higress Configure Service Source | COMMENT |
| LOW⚡ | plugins/wasm-go/extensions/oidc/README_EN.md | 232 | #### Step 3: Wasm Plugin Configuration | COMMENT |
| LOW⚡ | plugins/wasm-go/extensions/oidc/README_EN.md | 260 | #### Step 1: Configure Github OAuth App | COMMENT |
| LOW⚡ | plugins/wasm-go/extensions/oidc/README_EN.md | 264 | #### Step 2: Higress Configure Service Source | COMMENT |
| LOW⚡ | plugins/wasm-go/extensions/oidc/README_EN.md | 271 | #### Step 3: OIDC Service HTTPS Protocol | COMMENT |
| LOW⚡ | plugins/wasm-go/extensions/oidc/README_EN.md | 274 | #### Step 4: Wasm Plugin Configuration | COMMENT |
| LOW | plugins/wasm-go/pkg/mcp/server/proxy_tool.go | 119 | // Step 1: Send initialize request | COMMENT |
| LOW | plugins/wasm-go/pkg/mcp/server/proxy_tool.go | 200 | // Step 2: Send notifications/initialized | COMMENT |
| LOW | .claude/skills/higress-openclaw-integration/SKILL.md | 12 | ### Step 1: Collect Information from User | COMMENT |
| LOW | .claude/skills/higress-openclaw-integration/SKILL.md | 64 | ### Step 2: Deploy Gateway | COMMENT |
| LOW | .claude/skills/higress-openclaw-integration/SKILL.md | 126 | ### Step 3: Install OpenClaw Plugin | COMMENT |
| LOW⚡ | .claude/skills/higress-openclaw-integration/SKILL.md | 142 | # Step 1: Enable the plugin | COMMENT |
| LOW⚡ | .claude/skills/higress-openclaw-integration/SKILL.md | 145 | # Step 2: Configure provider (interactive - will prompt for Gateway URL, API Key, models, etc.) | COMMENT |
| LOW⚡ | .claude/skills/higress-openclaw-integration/SKILL.md | 148 | # Step 3: Restart OpenClaw gateway to apply changes | COMMENT |
| LOW⚡ | …s/higress-openclaw-integration/scripts/plugin/index.ts | 149 | // Step 1: Get Gateway URL | COMMENT |
| LOW⚡ | …s/higress-openclaw-integration/scripts/plugin/index.ts | 157 | // Step 2: Get Console URL (for auto-router configuration) | COMMENT |
| LOW⚡ | …s/higress-openclaw-integration/scripts/plugin/index.ts | 165 | // Step 3: Test connection (create a new spinner) | COMMENT |
| LOW⚡ | …s/higress-openclaw-integration/scripts/plugin/index.ts | 181 | // Step 4: Get API Key (optional for local gateway) | COMMENT |
| LOW⚡ | …s/higress-openclaw-integration/scripts/plugin/index.ts | 188 | // Step 5: Fetch available models (create a new spinner) | COMMENT |
| LOW⚡ | …s/higress-openclaw-integration/scripts/plugin/index.ts | 196 | // Step 6: Let user customize model list | COMMENT |
| LOW | …s/higress-openclaw-integration/scripts/plugin/index.ts | 213 | // Step 7: Configure default model for auto-routing | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | plugins/wasm-go/extensions/ai-image-reader/README.md | 35 | "apiKey": "YOUR_API_KEY", | CODE |
| HIGH | plugins/wasm-go/extensions/ai-image-reader/README_EN.md | 31 | "apiKey": "YOUR_API_KEY", | CODE |
| HIGH | plugins/wasm-go/extensions/ai-proxy/README.md | 2113 | - "YOUR_API_KEY" | CODE |
| HIGH | plugins/wasm-go/extensions/ai-proxy/README.md | 2235 | - "YOUR_API_KEY" | CODE |
| HIGH | plugins/wasm-go/extensions/ai-proxy/README_EN.md | 1894 | - "YOUR_API_KEY" | CODE |
| HIGH | plugins/wasm-go/extensions/ai-proxy/README_EN.md | 2011 | - "YOUR_API_KEY" | CODE |
| HIGH | plugins/wasm-go/mcp-servers/README.md | 201 | apiKey: your-api-key-here | CODE |
| HIGH | plugins/wasm-go/mcp-servers/README.md | 313 | apiKey: your-api-key-here | CODE |
| HIGH | plugins/wasm-go/mcp-servers/README.md | 400 | apiKey: your-api-key-here | CODE |
| HIGH | plugins/wasm-go/pkg/mcp/validator/example_usage.go | 29 | "apiKey": "your-api-key" | CODE |
| HIGH | plugins/wasm-go/pkg/mcp/validator/example_usage.go | 185 | apiKey: your-api-key | CODE |
| HIGH | plugins/wasm-go/pkg/mcp/validator/README.md | 67 | apiKey: your-api-key | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …r/mcp-server/servers/higress/nginx-migration/README.md | 49 | ### 进阶配置(启用 RAG 知识库) | COMMENT |
| MEDIUM | …r/mcp-server/servers/higress/nginx-migration/README.md | 160 | # 正常启用 RAG | COMMENT |
| MEDIUM | …r/mcp-server/servers/higress/nginx-migration/README.md | 165 | # RAG 未启用 | COMMENT |
| MEDIUM | …r/mcp-server/servers/higress/nginx-migration/README.md | 194 | ### 查询知识库(需启用 RAG) | COMMENT |
| MEDIUM⚡ | …r/mcp-server/servers/higress/nginx-migration/README.md | 220 | │ ├── rag.json.example # RAG 配置示例 | CODE |
| MEDIUM⚡ | …r/mcp-server/servers/higress/nginx-migration/README.md | 221 | │ └── rag.json # RAG 配置(需自行创建) | CODE |
| MEDIUM⚡ | …r/mcp-server/servers/higress/nginx-migration/README.md | 231 | │ └── rag_integration.go # RAG 知识库集成 | CODE |
| MEDIUM⚡ | …r/mcp-server/servers/higress/nginx-migration/README.md | 241 | │ ├── rag/ # RAG 功能实现 | CODE |
| MEDIUM⚡ | …r/mcp-server/servers/higress/nginx-migration/README.md | 242 | │ │ ├── config.go # RAG 配置结构 | CODE |
| MEDIUM⚡ | …r/mcp-server/servers/higress/nginx-migration/README.md | 244 | │ │ └── manager.go # RAG 管理器(查询、缓存) | CODE |
| MEDIUM | plugins/golang-filter/mcp-server/servers/rag/README.md | 1 | # Higress RAG MCP Server | COMMENT |
| MEDIUM | plugins/golang-filter/mcp-server/servers/rag/README.md | 822 | ### 3. Higress RAG mcp server config 配置 | COMMENT |
| MEDIUM | plugins/golang-filter/mcp-server/servers/rag/README.md | 919 | ### 5. Higress RAG MCP 插件和 CherryStudio 集成 | COMMENT |
| MEDIUM | plugins/wasm-go/extensions/ai-search/README_EN.md | 90 | Currently, document vectorization relies on Elasticsearch's embedding model, which requires an Elasticsearch Enterprise | CODE |
| MEDIUM | …-higress-migration/scripts/generate-plugin-scaffold.sh | 2 | # Generate WASM plugin scaffold for nginx snippet migration | COMMENT |
| MEDIUM | hgctl/pkg/agent/README.md | 659 | # 选择 "Improve and test it using agentic core" | COMMENT |
| MEDIUM | release-notes/2.1.8/README.md | 20 | - **feat: add rag mcp server** ([#2930](https://github.com/alibaba/higress/pull/2930)): By introducing the RAG MCP serve | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | plugins/wasm-go/extensions/mcp-server/main_test.go | 2024 | // Step 1: Mock SSE channel response headers (GET request response) | COMMENT |
| LOW⚡ | plugins/wasm-go/extensions/mcp-server/main_test.go | 2033 | // Step 2: Send SSE endpoint message | COMMENT |
| LOW⚡ | plugins/wasm-go/extensions/mcp-server/main_test.go | 2043 | // Step 3: Mock initialize response via RouteCluster callback | COMMENT |
| LOW⚡ | plugins/wasm-go/extensions/mcp-server/main_test.go | 2050 | // Step 4: Send SSE initialize response in the stream | COMMENT |
| LOW⚡ | plugins/wasm-go/extensions/mcp-server/main_test.go | 2059 | // Step 5: Mock notification response via RouteCluster callback | COMMENT |
| LOW⚡ | plugins/wasm-go/extensions/mcp-server/main_test.go | 2067 | // Step 6: Mock tools/list response via RouteCluster callback | COMMENT |
| LOW⚡ | plugins/wasm-go/extensions/mcp-server/main_test.go | 2074 | // Step 7: Send SSE tools/list response in the stream | COMMENT |
| LOW⚡ | plugins/wasm-go/extensions/mcp-server/main_test.go | 2148 | // Step 1: Mock SSE channel response headers | COMMENT |
| LOW⚡ | plugins/wasm-go/extensions/mcp-server/main_test.go | 2156 | // Step 2: Send SSE endpoint message | COMMENT |
| LOW⚡ | plugins/wasm-go/extensions/mcp-server/main_test.go | 2163 | // Step 3: Mock initialize response via RouteCluster callback | COMMENT |
| LOW⚡ | plugins/wasm-go/extensions/mcp-server/main_test.go | 2170 | // Step 4: Send SSE initialize response in the stream | COMMENT |
| LOW⚡ | plugins/wasm-go/extensions/mcp-server/main_test.go | 2177 | // Step 5: Mock notification response via RouteCluster callback | COMMENT |
| LOW⚡ | plugins/wasm-go/extensions/mcp-server/main_test.go | 2184 | // Step 6: Mock tools/call response via RouteCluster callback | COMMENT |
| LOW⚡ | plugins/wasm-go/extensions/mcp-server/main_test.go | 2191 | // Step 7: Send SSE tools/call response in the stream | COMMENT |
| LOW | plugins/wasm-go/extensions/ai-search/main.go | 302 | // When defaultEnable is false, we need to check if web_search_options exists in the request | COMMENT |
| LOW | plugins/wasm-go/pkg/mcp/server/proxy_tool.go | 119 | // Step 1: Send initialize request | COMMENT |
| LOW | plugins/wasm-go/pkg/mcp/server/proxy_tool.go | 200 | // Step 2: Send notifications/initialized | COMMENT |
| LOW⚡ | …s/higress-openclaw-integration/scripts/plugin/index.ts | 149 | // Step 1: Get Gateway URL | COMMENT |
| LOW⚡ | …s/higress-openclaw-integration/scripts/plugin/index.ts | 157 | // Step 2: Get Console URL (for auto-router configuration) | COMMENT |
| LOW⚡ | …s/higress-openclaw-integration/scripts/plugin/index.ts | 165 | // Step 3: Test connection (create a new spinner) | COMMENT |
| LOW⚡ | …s/higress-openclaw-integration/scripts/plugin/index.ts | 181 | // Step 4: Get API Key (optional for local gateway) | COMMENT |
| LOW⚡ | …s/higress-openclaw-integration/scripts/plugin/index.ts | 188 | // Step 5: Fetch available models (create a new spinner) | COMMENT |
| LOW⚡ | …s/higress-openclaw-integration/scripts/plugin/index.ts | 196 | // Step 6: Let user customize model list | COMMENT |
| LOW | …s/higress-openclaw-integration/scripts/plugin/index.ts | 213 | // Step 7: Configure default model for auto-routing | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | plugins/golang-filter/mcp-server/servers/rag/README.md | 477 | except Exception as e: | CODE |
| LOW | plugins/golang-filter/mcp-server/servers/rag/README.md | 510 | except Exception as e: | CODE |
| LOW | plugins/golang-filter/mcp-server/servers/rag/README.md | 536 | except Exception as e: | CODE |
| LOW | plugins/golang-filter/mcp-server/servers/rag/README.md | 568 | except Exception as e: | CODE |
| LOW | plugins/golang-filter/mcp-server/servers/rag/README.md | 605 | except Exception as e: | CODE |
| LOW | plugins/golang-filter/mcp-server/servers/rag/README.md | 643 | except Exception as e: | CODE |
| LOW | plugins/golang-filter/mcp-server/servers/rag/README.md | 670 | except Exception as e: | CODE |
| LOW | plugins/golang-filter/mcp-server/servers/rag/README.md | 693 | except Exception as e: | CODE |
| LOW | plugins/golang-filter/mcp-server/servers/rag/README.md | 719 | except Exception as e: | CODE |
| LOW | …ns/wasm-go/mcp-servers/mcp-scripts/yaml_to_markdown.py | 12 | except Exception as e: | CODE |
| MEDIUM | …ns/wasm-go/mcp-servers/mcp-scripts/yaml_to_markdown.py | 13 | print(f"Error reading YAML file: {e}") | CODE |
| MEDIUM⚡ | …ns/wasm-go/mcp-servers/mcp-scripts/yaml_to_markdown.py | 54 | print("Error: Unexpected API response format") | STRING |
| LOW⚡ | …ns/wasm-go/mcp-servers/mcp-scripts/yaml_to_markdown.py | 56 | except Exception as e: | STRING |
| MEDIUM⚡ | …ns/wasm-go/mcp-servers/mcp-scripts/yaml_to_markdown.py | 57 | print(f"Error calling OpenAI API: {e}") | STRING |
| LOW⚡ | …ns/wasm-go/mcp-servers/mcp-scripts/yaml_to_markdown.py | 65 | except Exception as e: | CODE |
| MEDIUM⚡ | …ns/wasm-go/mcp-servers/mcp-scripts/yaml_to_markdown.py | 66 | print(f"Error saving Markdown file: {e}") | CODE |
| LOW | …ns/wasm-go/mcp-servers/mcp-scripts/translate_readme.py | 12 | except Exception as e: | CODE |
| MEDIUM | …ns/wasm-go/mcp-servers/mcp-scripts/translate_readme.py | 13 | print(f"Error reading file: {e}") | CODE |
| MEDIUM⚡ | …ns/wasm-go/mcp-servers/mcp-scripts/translate_readme.py | 52 | print("Error: Unexpected API response format") | STRING |
| LOW⚡ | …ns/wasm-go/mcp-servers/mcp-scripts/translate_readme.py | 54 | except Exception as e: | STRING |
| MEDIUM⚡ | …ns/wasm-go/mcp-servers/mcp-scripts/translate_readme.py | 55 | print(f"Error calling OpenAI API: {e}") | STRING |
| LOW⚡ | …ns/wasm-go/mcp-servers/mcp-scripts/translate_readme.py | 63 | except Exception as e: | CODE |
| MEDIUM⚡ | …ns/wasm-go/mcp-servers/mcp-scripts/translate_readme.py | 64 | print(f"Error saving Markdown file: {e}") | CODE |
| LOW | .claude/skills/agent-session-monitor/main.py | 111 | except Exception as e: | CODE |
| LOW | .claude/skills/agent-session-monitor/main.py | 298 | except Exception as e: | CODE |
| LOW | .claude/skills/agent-session-monitor/main.py | 308 | except Exception as e: | CODE |
| LOW⚡ | .claude/skills/agent-session-monitor/main.py | 414 | except Exception as e: | CODE |
| LOW | …aude/skills/agent-session-monitor/scripts/webserver.py | 175 | except Exception as e: | CODE |
| LOW | .claude/skills/agent-session-monitor/scripts/cli.py | 103 | except Exception as e: | CODE |
| LOW | .claude/skills/agent-session-monitor/scripts/cli.py | 592 | except Exception as e: | STRING |
| LOW | .github/workflows/translate-readme.yaml | 80 | except Exception as e: | CODE |
| MEDIUM | .github/workflows/translate-readme.yaml | 81 | print("Error parsing chunk:", e) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | .claude/skills/agent-session-monitor/main.py | 20 | # ============================================================================ | COMMENT |
| MEDIUM | .claude/skills/agent-session-monitor/main.py | 22 | # ============================================================================ | COMMENT |
| MEDIUM | .claude/skills/agent-session-monitor/main.py | 84 | # ============================================================================ | COMMENT |
| MEDIUM | .claude/skills/agent-session-monitor/main.py | 86 | # ============================================================================ | COMMENT |
| MEDIUM | .claude/skills/agent-session-monitor/main.py | 280 | # ============================================================================ | COMMENT |
| MEDIUM | .claude/skills/agent-session-monitor/main.py | 282 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | .claude/skills/agent-session-monitor/main.py | 418 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | .claude/skills/agent-session-monitor/main.py | 420 | # ============================================================================ | COMMENT |
| MEDIUM | .claude/skills/agent-session-monitor/main.py | 517 | # ============================================================================ | COMMENT |
| MEDIUM | .claude/skills/agent-session-monitor/main.py | 519 | # ============================================================================ | COMMENT |
| MEDIUM | …o-higress-migration/scripts/generate-migration-test.sh | 172 | # ================================================ | COMMENT |
| MEDIUM | …o-higress-migration/scripts/generate-migration-test.sh | 174 | # ================================================ | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | test/e2e/conformance/tests/go-wasm-ai-proxy.yaml | 407 | - fake_token | CODE |
| LOW⚡ | test/e2e/conformance/tests/go-wasm-ai-proxy.yaml | 417 | - fake_token | CODE |
| LOW⚡ | test/e2e/conformance/tests/go-wasm-ai-proxy.yaml | 427 | - fake_token | CODE |
| LOW⚡ | test/e2e/conformance/tests/go-wasm-ai-proxy.yaml | 437 | - fake_token | CODE |
| LOW⚡ | test/e2e/conformance/tests/go-wasm-ai-proxy.yaml | 447 | - fake_token | CODE |
| LOW⚡ | test/e2e/conformance/tests/go-wasm-ai-proxy.yaml | 456 | - fake_token | CODE |
| LOW⚡ | test/e2e/conformance/tests/go-wasm-ai-proxy.yaml | 466 | - fake_token | CODE |
| LOW⚡ | test/e2e/conformance/tests/go-wasm-ai-proxy.yaml | 476 | - fake_token | CODE |
| LOW⚡ | test/e2e/conformance/tests/go-wasm-ai-proxy.yaml | 535 | - fake_token | CODE |
| LOW⚡ | test/e2e/conformance/tests/go-wasm-ai-proxy.yaml | 545 | - fake_token | CODE |
| LOW⚡ | test/e2e/conformance/tests/go-wasm-ai-proxy.yaml | 555 | - fake_token | CODE |
| LOW⚡ | test/e2e/conformance/tests/go-wasm-ai-proxy.yaml | 565 | - fake_token | CODE |
| LOW⚡ | test/e2e/conformance/tests/go-wasm-ai-proxy.yaml | 575 | - fake_token | CODE |
| LOW⚡ | test/e2e/conformance/tests/go-wasm-ai-proxy.yaml | 585 | - fake_token | CODE |
| LOW⚡ | test/e2e/conformance/tests/go-wasm-ai-proxy.yaml | 595 | - fake_token | CODE |
| LOW | test/e2e/conformance/tests/go-wasm-ai-proxy.yaml | 487 | - fake_token | CODE |
| LOW | test/e2e/conformance/tests/go-wasm-ai-proxy.yaml | 500 | - fake_token | CODE |
| LOW | test/e2e/conformance/tests/go-wasm-ai-proxy.yaml | 510 | - fake_token | CODE |
| LOW | test/e2e/conformance/tests/go-wasm-ai-proxy.yaml | 523 | - fake_token | CODE |
| LOW | test/e2e/conformance/tests/go-wasm-ai-proxy.yaml | 606 | - fake_token | CODE |
| LOW | plugins/wasm-cpp/extensions/jwt_auth/README.md | 339 | "name": "John Doe" | CODE |
| LOW | plugins/wasm-cpp/extensions/jwt_auth/README_EN.md | 293 | "name": "John Doe" | CODE |
| LOW | …ins/wasm-go/extensions/request-validation/main_test.go | 305 | validBody := `{"name": "John Doe", "age": 30}` | CODE |
| LOW | …ins/wasm-go/extensions/request-validation/main_test.go | 361 | invalidBody := `{"name": "John Doe", "age": -5}` | CODE |
| LOW | …ins/wasm-go/extensions/ai-prompt-template/main_test.go | 261 | "recipient": "John Doe", | CODE |
| LOW | plugins/wasm-go/extensions/ai-proxy/provider/azure.go | 184 | defaultModel := "placeholder" | CODE |
| LOW | plugins/wasm-go/extensions/log-request-response/main.go | 228 | "placeholder": value, | CODE |
| LOW | plugins/wasm-go/extensions/log-request-response/main.go | 235 | marshalledRaw := gjson.GetBytes(marshalledHelper, "placeholder").Raw | CODE |
| LOW | plugins/wasm-go/extensions/simple-jwt-auth/main_test.go | 33 | claims["name"] = "John Doe" | CODE |
| LOW | pkg/ingress/kube/secret/controller_test.go | 39 | secretFakeKey = "fake-key" | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tools/hack/setup_env.sh | 139 | # This function is designed for maximum compatibility with various platforms. This runs on | COMMENT |
| MEDIUM | test/e2e/conformance/base/nacos.yaml | 15 | # This file contains the base resources that most conformance tests will rely | COMMENT |
| MEDIUM | test/e2e/conformance/base/eureka.yaml | 15 | # This file contains the base resources that most conformance tests will rely | COMMENT |
| MEDIUM | test/e2e/conformance/base/manifests.yaml | 15 | # This file contains the base resources that most conformance tests will rely | COMMENT |
| MEDIUM | test/e2e/conformance/base/dubbo.yaml | 15 | # This file contains the base resources that most conformance tests will rely | COMMENT |
| MEDIUM | test/e2e/conformance/base/consul.yaml | 15 | # This file contains the base resources that most conformance tests will rely | COMMENT |
| MEDIUM | …m-go/mcp-servers/mcp-scripts/create_api_directories.sh | 26 | # Define the API data with English translations | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | .claude/skills/nginx-to-higress-migration/README.md | 287 | // Auto-generated by AI agent | COMMENT |
| HIGH | .claude/skills/nginx-to-higress-migration/README.md | 482 | ### Q: Can I customize the AI-generated plugin code? | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | plugins/wasm-go/extensions/waf/local/app.py | 1 | CODE | |
| LOW | …ns/wasm-go/mcp-servers/mcp-scripts/yaml_to_markdown.py | 2 | CODE | |
| LOW | …ns/wasm-go/mcp-servers/mcp-scripts/translate_readme.py | 2 | CODE | |
| LOW | .claude/skills/agent-session-monitor/main.py | 9 | CODE | |
| LOW | .claude/skills/agent-session-monitor/main.py | 13 | CODE | |
| LOW | …aude/skills/agent-session-monitor/scripts/webserver.py | 14 | CODE | |
| LOW | …aude/skills/agent-session-monitor/scripts/webserver.py | 14 | CODE | |
| LOW | …aude/skills/agent-session-monitor/scripts/webserver.py | 15 | CODE | |
| LOW | …aude/skills/agent-session-monitor/scripts/webserver.py | 21 | CODE | |
| LOW | .claude/skills/agent-session-monitor/scripts/cli.py | 18 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …m-go/mcp-servers/mcp-scripts/create_api_directories.sh | 46 | # Check if any API codes were found | COMMENT |
| LOW | …/higress-openclaw-integration/scripts/detect-region.sh | 7 | # Check if timezone indicates China region (including Hong Kong) | COMMENT |
| LOW | …/nginx-to-higress-migration/scripts/analyze-ingress.sh | 147 | # Check if supported | COMMENT |
| LOW | …/nginx-to-higress-migration/scripts/analyze-ingress.sh | 156 | # Check if explicitly unsupported | COMMENT |
| LOW | helm/core/values.yaml | 29 | # Set this to false when reusing an existing IngressClass, for example during Nginx Ingress migration. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .claude/skills/agent-session-monitor/main.py | 100 | CODE | |
| LOW | .claude/skills/agent-session-monitor/main.py | 368 | CODE | |
| LOW | …aude/skills/agent-session-monitor/scripts/webserver.py | 37 | CODE | |
| LOW | .claude/skills/agent-session-monitor/scripts/cli.py | 475 | CODE | |
| LOW | .claude/skills/agent-session-monitor/scripts/cli.py | 107 | CODE | |
| LOW | .claude/skills/agent-session-monitor/scripts/cli.py | 414 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | plugins/wasm-rust/extensions/ai-intent/src/lib.rs | 463 | (0, r#" I apologize, but as a responsible AI language model, I cannot provide a response that categorizes a | CODE |
| MEDIUM | plugins/wasm-rust/extensions/ai-intent/src/lib.rs | 464 | (0, r#" I'm so sorry, but as a responsible AI language model, I must intervene to address an important conce | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | plugins/wasm-go/extensions/ai-proxy/provider/bedrock.go | 1160 | // This is more robust for models that are strict about explicit ttl fields. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | plugins/wasm-go/extensions/ip-restriction/utils_test.go | 64 | // TODO: Add test cases. | COMMENT |
| LOW | pkg/ingress/kube/gateway/controller.go | 162 | // TODO: implement | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | plugins/wasm-assemblyscript/assembly/plugin_wrapper.ts | 141 | function getCurrentTimeMilliseconds(): u64 { | CODE |
| LOW | plugins/golang-filter/mcp-server/servers/rag/README.md | 674 | def similarity_search_with_score(self, query: str, k: int = 5) -> List[tuple]: | CODE |