Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .claude/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"command": "npx",
"args": ["-y", "@ivotoby/openapi-mcp-server"],
"env": {
"API_BASE_URL": "https://13.124.170.169.nip.io",
"OPENAPI_SPEC_PATH": "https://13.124.170.169.nip.io/v3/api-docs"
"API_BASE_URL": "https://api-dev.v4.weeth.kr",
"OPENAPI_SPEC_PATH": "https://api-dev.v4.weeth.kr/swagger-ui/index.html#/"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

UI_URL='https://api-dev.v4.weeth.kr/swagger-ui/index.html#/'
SPEC_URL='https://api-dev.v4.weeth.kr/v3/api-docs'

echo '[1] 현재 설정된 URL의 헤더(HTML 여부 확인)'
curl -sSI "$UI_URL" | sed -n '1,10p'

echo '[2] 현재 설정된 URL 바디 앞부분'
curl -sS "$UI_URL" | head -n 5

echo '[3] OpenAPI JSON 후보 URL 헤더'
curl -sSI "$SPEC_URL" | sed -n '1,10p'

echo '[4] OpenAPI JSON 핵심 키 확인(openapi/info/paths)'
curl -sS "$SPEC_URL" | python - <<'PY'
import json, sys
obj = json.load(sys.stdin)
print("has_openapi:", "openapi" in obj)
print("has_info:", "info" in obj)
print("has_paths:", "paths" in obj)
PY

Repository: Team-Weeth/weeth-client

Length of output: 1733


OPENAPI_SPEC_PATH가 Swagger UI HTML 페이지를 가리키고 있어 MCP 파싱이 실패합니다.

현재 설정(https://api-dev.v4.weeth.kr/swagger-ui/index.html#/)은 HTML 페이지를 반환하지만, openapi-mcp-server는 OpenAPI 스펙 문서(JSON)를 필요로 합니다.

올바른 스펙 엔드포인트인 https://api-dev.v4.weeth.kr/v3/api-docs로 변경하세요.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.claude/settings.json at line 8, The OPENAPI_SPEC_PATH setting currently
points to the Swagger UI HTML page which causes MCP parsing to fail; update the
OPENAPI_SPEC_PATH value (the JSON key OPENAPI_SPEC_PATH in
.claude/settings.json) to the actual OpenAPI JSON endpoint (replace the current
"https://api-dev.v4.weeth.kr/swagger-ui/index.html#/" with
"https://api-dev.v4.weeth.kr/v3/api-docs") so openapi-mcp-server can fetch the
spec.

}
}
},
Expand Down
3 changes: 2 additions & 1 deletion .claude/settings.local.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"Bash(ls -la \"D:\\\\project\\\\weeth-client\\\\src\\\\app\\\\\\(private\\)\\\\\\(main\\)\\\\mypage\")",
"Bash(ls -la \"D:\\\\project\\\\weeth-client\\\\src\\\\app\\\\\\(private\\)\\\\\\(main\\)\\\\mypage\\\\edit\")",
"Bash(find D:projectweeth-clientsrccomponentsui -type f \\\\\\(-name *.tsx -o -name *.ts \\\\\\))",
"Bash(find D:/project/weeth-client/src/constants -name *.ts)"
"Bash(find D:/project/weeth-client/src/constants -name *.ts)",
"Bash(grep -r \"POSTHOG\\\\|PostHog\" D:projectweeth-client/.env*)"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

경로 문자열 형식이 깨져 명령이 실패할 수 있습니다.

Line 19의 D:projectweeth-client/.env*는 드라이브 경로 구분자가 빠져 있어 대상 파일을 찾지 못할 가능성이 큽니다.

수정 예시
-      "Bash(grep -r \"POSTHOG\\\\|PostHog\" D:projectweeth-client/.env*)"
+      "Bash(grep -r \"POSTHOG\\\\|PostHog\" D:/project/weeth-client/.env*)"
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"Bash(grep -r \"POSTHOG\\\\|PostHog\" D:projectweeth-client/.env*)"
"Bash(grep -r \"POSTHOG\\\\|PostHog\" D:/project/weeth-client/.env*)"
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.claude/settings.local.json at line 19, The path string "Bash(grep -r
\"POSTHOG\\|PostHog\" D:projectweeth-client/.env*)" is missing the path
separator after the Windows drive letter and will fail to find files; update the
path segment to include the separator (e.g., add a slash after "D:" like
"D:/projectweeth-client/.env*" or "D:\\projectweeth-client\\.env*") and ensure
any backslashes are properly escaped for JSON; replace the original string in
.claude/settings.local.json with the corrected, properly escaped path variant so
the grep command can locate the .env files.

]
}
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,4 @@ yarn-error.log*
# typescript
*.tsbuildinfo
next-env.d.ts
.env.local
8 changes: 8 additions & 0 deletions instrumentation-client.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import posthog from 'posthog-js';

if (process.env.NEXT_PUBLIC_POSTHOG_KEY) {
posthog.init(process.env.NEXT_PUBLIC_POSTHOG_KEY, {
api_host: process.env.NEXT_PUBLIC_POSTHOG_HOST,
defaults: '2026-01-30',
});
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
"lowlight": "^3.3.0",
"lucide-react": "^0.468.0",
"next": "16.1.6",
"posthog-js": "^1.364.4",
"radix-ui": "^1.4.3",
"react": "19.2.3",
"react-dom": "19.2.3",
Expand Down
Loading
Loading