agycraft-mcp 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -5
- package/dist/index.js +3592 -1682
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/snapshots/channels.json +272 -0
- package/snapshots/models.json +944 -30
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agycraft-mcp",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Privacy-first local MCP server & CLI doctor for Antigravity (AGY) and Gemini CLI — token usage audit, KV cache diagnostics, error attribution, and model selection.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema_version": "1.0.0",
|
|
3
|
+
"generated_at": "2026-12-02T00:00:00Z",
|
|
4
|
+
"updated_at": "2026-12-02T00:00:00Z",
|
|
5
|
+
"channels": [
|
|
6
|
+
{
|
|
7
|
+
"channel_id": "google_oauth",
|
|
8
|
+
"aliases": [],
|
|
9
|
+
"display_name": "Google Account OAuth (Consumer / Workspace)",
|
|
10
|
+
"category": "subscription",
|
|
11
|
+
"billing_model": "shared_bucket",
|
|
12
|
+
"priority": 30,
|
|
13
|
+
"detection": {
|
|
14
|
+
"endpoint_regexes": [
|
|
15
|
+
"daily-cloudcode-pa\\.googleapis\\.com",
|
|
16
|
+
"cloudaicompanion\\.googleapis\\.com",
|
|
17
|
+
"antigravity-unleash\\.goog"
|
|
18
|
+
],
|
|
19
|
+
"log_auth_method_values": [
|
|
20
|
+
"google_oauth",
|
|
21
|
+
"oauth",
|
|
22
|
+
"login_with_google",
|
|
23
|
+
"agy_oauth",
|
|
24
|
+
"consumer"
|
|
25
|
+
],
|
|
26
|
+
"settings_auth_type_patterns": [
|
|
27
|
+
"oauth"
|
|
28
|
+
],
|
|
29
|
+
"env_presence_keys": [],
|
|
30
|
+
"env_conflict_keys": [
|
|
31
|
+
"GEMINI_API_KEY",
|
|
32
|
+
"GOOGLE_API_KEY",
|
|
33
|
+
"GOOGLE_CLOUD_PROJECT",
|
|
34
|
+
"GOOGLE_GENAI_USE_VERTEXAI",
|
|
35
|
+
"GOOGLE_APPLICATION_CREDENTIALS",
|
|
36
|
+
"GOOGLE_CLOUD_API_KEY"
|
|
37
|
+
],
|
|
38
|
+
"local_config_files": [
|
|
39
|
+
"~/.gemini/oauth_creds.json",
|
|
40
|
+
"~/.gemini/antigravity-cli/antigravity-oauth-token"
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
"error_signature_regexes": [
|
|
44
|
+
"WEEKLY_LIMIT_EXCEEDED",
|
|
45
|
+
"Reset Onboarding",
|
|
46
|
+
"5-hour|rolling\\s*5h|weekly\\s*limit",
|
|
47
|
+
"AI Pro|AI Ultra|AI Credits",
|
|
48
|
+
"daily-cloudcode-pa\\.googleapis\\.com",
|
|
49
|
+
"cloudaicompanion\\.googleapis\\.com",
|
|
50
|
+
"antigravity-unleash\\.goog",
|
|
51
|
+
"oauth_creds\\.json"
|
|
52
|
+
],
|
|
53
|
+
"quota_reset_policy": {
|
|
54
|
+
"window_type": "rolling_5h_7d",
|
|
55
|
+
"reset_timezone": "America/Los_Angeles",
|
|
56
|
+
"reset_clock": "00:00",
|
|
57
|
+
"supports_kv_cache_discount": false,
|
|
58
|
+
"background_call_billed": false,
|
|
59
|
+
"thinking_bucket_multiplier": "4x-8x"
|
|
60
|
+
},
|
|
61
|
+
"recommended_behaviors": {
|
|
62
|
+
"thinking_guidance": "Thinking 按 4x–8x 输入倍率消耗 5h/7d 共享配额桶,常规编码建议降级为 Medium/Low。",
|
|
63
|
+
"kv_cache_guidance": "高缓存命中(>=85%)时避免频繁 /compact 破坏前缀,以延长共享配额桶续航。",
|
|
64
|
+
"throttling_guidance": "错峰安排重型批处理至 5h 滚动窗口,并对齐 PT 午夜(America/Los_Angeles 00:00)配额重置。",
|
|
65
|
+
"model_routing_guidance": "采用 Orchestrator 路由(Neon 规划 → Hydrogen/Flash 执行)以最大化 5h/7d 桶续航。",
|
|
66
|
+
"isolation_commands": [
|
|
67
|
+
"unset GEMINI_API_KEY GOOGLE_API_KEY GOOGLE_CLOUD_PROJECT GOOGLE_APPLICATION_CREDENTIALS CLAUDE_CODE_USE_VERTEX GOOGLE_GENAI_USE_VERTEXAI GOOGLE_CLOUD_API_KEY"
|
|
68
|
+
],
|
|
69
|
+
"verify_command": "npx agycraft-mcp doctor --auth-mode google_oauth"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"channel_id": "gcp_vertex_adc",
|
|
74
|
+
"legacy_id": "gcp_adc",
|
|
75
|
+
"aliases": [
|
|
76
|
+
"gcp_adc"
|
|
77
|
+
],
|
|
78
|
+
"display_name": "GCP Vertex AI (ADC / Service Account)",
|
|
79
|
+
"category": "cloud_payg",
|
|
80
|
+
"billing_model": "payg_credit",
|
|
81
|
+
"priority": 80,
|
|
82
|
+
"detection": {
|
|
83
|
+
"endpoint_regexes": [
|
|
84
|
+
"([a-z0-9-]+-)?aiplatform\\.googleapis\\.com(?!/.*\\?key=)"
|
|
85
|
+
],
|
|
86
|
+
"log_auth_method_values": [
|
|
87
|
+
"gcp_adc",
|
|
88
|
+
"gcp_vertex_adc",
|
|
89
|
+
"vertex_adc",
|
|
90
|
+
"vertex_ai",
|
|
91
|
+
"service_account",
|
|
92
|
+
"gcp"
|
|
93
|
+
],
|
|
94
|
+
"settings_auth_type_patterns": [
|
|
95
|
+
"vertex",
|
|
96
|
+
"adc",
|
|
97
|
+
"compute",
|
|
98
|
+
"gcp"
|
|
99
|
+
],
|
|
100
|
+
"env_presence_keys": [
|
|
101
|
+
"GOOGLE_GENAI_USE_VERTEXAI",
|
|
102
|
+
"GOOGLE_CLOUD_PROJECT",
|
|
103
|
+
"GOOGLE_APPLICATION_CREDENTIALS",
|
|
104
|
+
"CLAUDE_CODE_USE_VERTEX",
|
|
105
|
+
"ANTHROPIC_VERTEX_PROJECT_ID"
|
|
106
|
+
],
|
|
107
|
+
"env_true_only_keys": [
|
|
108
|
+
"GOOGLE_GENAI_USE_VERTEXAI",
|
|
109
|
+
"CLAUDE_CODE_USE_VERTEX"
|
|
110
|
+
],
|
|
111
|
+
"env_conflict_keys": [
|
|
112
|
+
"GEMINI_API_KEY",
|
|
113
|
+
"GOOGLE_API_KEY"
|
|
114
|
+
],
|
|
115
|
+
"local_config_files": [
|
|
116
|
+
"~/.config/gcloud/application_default_credentials.json"
|
|
117
|
+
],
|
|
118
|
+
"agy_settings_keys": [
|
|
119
|
+
"gcp"
|
|
120
|
+
]
|
|
121
|
+
},
|
|
122
|
+
"error_signature_regexes": [
|
|
123
|
+
"aiplatform\\.googleapis\\.com(?!/.*\\?key=)",
|
|
124
|
+
"projects/[^/]+/locations/",
|
|
125
|
+
"SERVICE_DISABLED",
|
|
126
|
+
"roles/aiplatform\\.user",
|
|
127
|
+
"aiplatform\\.endpoints\\.predict",
|
|
128
|
+
"not found in location",
|
|
129
|
+
"VPC Service Controls|vpcServiceControlsUniqueIdentifier",
|
|
130
|
+
"invalid_grant|reauth related error|Refreshing credentials failed",
|
|
131
|
+
"GOOGLE_APPLICATION_CREDENTIALS|GOOGLE_GENAI_USE_VERTEXAI"
|
|
132
|
+
],
|
|
133
|
+
"quota_reset_policy": {
|
|
134
|
+
"window_type": "rpm_tpm_regional",
|
|
135
|
+
"reset_timezone": "UTC",
|
|
136
|
+
"reset_clock": null,
|
|
137
|
+
"supports_kv_cache_discount": true,
|
|
138
|
+
"kv_cache_discount_rate": "10%",
|
|
139
|
+
"background_call_billed": true,
|
|
140
|
+
"thinking_bucket_multiplier": null
|
|
141
|
+
},
|
|
142
|
+
"recommended_behaviors": {
|
|
143
|
+
"thinking_guidance": "按 Vertex AI 实际输出单价实时扣除美元/Credit(无 5h/7d 桶),仅在复杂多文件推理时开启 High Thinking。",
|
|
144
|
+
"kv_cache_guidance": "保持前缀稳定可触发隐式 KV Cache(10% 费率省钱效应,需满足 >=4,096 base tokens + 每轮 >=2,050 new tokens),直接降低真实美元账单。",
|
|
145
|
+
"throttling_guidance": "突发 429 源于项目级区域 RPM/TPM 或 DSQ 拥堵;建议设置 GOOGLE_CLOUD_LOCATION=global、分散并发或申请提升区域配额。",
|
|
146
|
+
"background_spend_guidance": "后台监控(MODEL_TIER_FLASH_LITE)与高频 CHECKPOINT 在 Vertex AI 下均会产生真实按量计费,请避免无意义空转。",
|
|
147
|
+
"model_routing_guidance": "Orchestrator 路由(Neon 规划 → Hydrogen/Flash 执行)可直接降低单次请求真实美元/Credit 支出。",
|
|
148
|
+
"isolation_commands": [
|
|
149
|
+
"unset GEMINI_API_KEY GOOGLE_API_KEY",
|
|
150
|
+
"export GOOGLE_GENAI_USE_VERTEXAI=true"
|
|
151
|
+
],
|
|
152
|
+
"verify_command": "gcloud config get-value project && gcloud auth application-default print-access-token >/dev/null && echo OK"
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"channel_id": "gemini_api_key",
|
|
157
|
+
"legacy_id": "api_key",
|
|
158
|
+
"aliases": [
|
|
159
|
+
"api_key"
|
|
160
|
+
],
|
|
161
|
+
"display_name": "Gemini Developer API (AI Studio API Key)",
|
|
162
|
+
"category": "developer_api",
|
|
163
|
+
"billing_model": "tiered_api_key",
|
|
164
|
+
"priority": 100,
|
|
165
|
+
"detection": {
|
|
166
|
+
"endpoint_regexes": [
|
|
167
|
+
"generativelanguage\\.googleapis\\.com"
|
|
168
|
+
],
|
|
169
|
+
"log_auth_method_values": [
|
|
170
|
+
"api_key",
|
|
171
|
+
"api-key",
|
|
172
|
+
"apikey",
|
|
173
|
+
"gemini_api_key",
|
|
174
|
+
"ai_studio"
|
|
175
|
+
],
|
|
176
|
+
"settings_auth_type_patterns": [
|
|
177
|
+
"api-key",
|
|
178
|
+
"api_key",
|
|
179
|
+
"gemini-api-key"
|
|
180
|
+
],
|
|
181
|
+
"env_presence_keys": [
|
|
182
|
+
"GEMINI_API_KEY",
|
|
183
|
+
"GOOGLE_API_KEY"
|
|
184
|
+
],
|
|
185
|
+
"env_conflict_keys": [
|
|
186
|
+
"GOOGLE_GENAI_USE_VERTEXAI",
|
|
187
|
+
"GOOGLE_APPLICATION_CREDENTIALS",
|
|
188
|
+
"GOOGLE_CLOUD_PROJECT"
|
|
189
|
+
],
|
|
190
|
+
"local_config_files": []
|
|
191
|
+
},
|
|
192
|
+
"error_signature_regexes": [
|
|
193
|
+
"generativelanguage\\.googleapis\\.com",
|
|
194
|
+
"API_KEY_INVALID",
|
|
195
|
+
"x-goog-api-key",
|
|
196
|
+
"AI Studio|Free Tier|Tier 1.*spend cap"
|
|
197
|
+
],
|
|
198
|
+
"quota_reset_policy": {
|
|
199
|
+
"window_type": "rpm_tpm_rpd_tiered",
|
|
200
|
+
"reset_timezone": "America/Los_Angeles",
|
|
201
|
+
"reset_clock": "00:00",
|
|
202
|
+
"supports_kv_cache_discount": true,
|
|
203
|
+
"kv_cache_discount_rate": "10%-25%",
|
|
204
|
+
"background_call_billed": true,
|
|
205
|
+
"thinking_bucket_multiplier": null
|
|
206
|
+
},
|
|
207
|
+
"recommended_behaviors": {
|
|
208
|
+
"thinking_guidance": "AI Studio Paid Tier 按实际输出 Token 计费(Free Tier 受严格 RPD/RPM 限制),请按需控制 Thinking 预算。",
|
|
209
|
+
"kv_cache_guidance": "利用隐式/显式 Context Caching 降低重复前缀成本;注意 Free Tier 提示词可能受限于不同的数据留存政策。",
|
|
210
|
+
"throttling_guidance": "429 源于 AI Studio 所属 Tier 的 RPM/TPM/RPD 或 10 分钟 Spend Cap 上限;检查 aistudio.google.com 配额页或升级付费 Tier(不支持 gcloud 区域切换)。",
|
|
211
|
+
"background_spend_guidance": "若将 GEMINI_API_KEY 暴露在 AGY/CLI Shell 中,不仅会劫持 OAuth/ADC 通道,还会导致后台调用消耗个人 API Key 额度。",
|
|
212
|
+
"model_routing_guidance": "轻量任务路由至 Flash/Flash-Lite 以节省 RPD 与付费 Tier 费用。",
|
|
213
|
+
"isolation_commands": [
|
|
214
|
+
"unset GOOGLE_GENAI_USE_VERTEXAI GOOGLE_APPLICATION_CREDENTIALS GOOGLE_CLOUD_PROJECT"
|
|
215
|
+
],
|
|
216
|
+
"verify_command": "npx agycraft-mcp doctor --auth-mode gemini_api_key"
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"channel_id": "vertex_express_key",
|
|
221
|
+
"aliases": [],
|
|
222
|
+
"display_name": "Vertex AI Express Mode (90-Day Trial API Key)",
|
|
223
|
+
"category": "cloud_payg",
|
|
224
|
+
"billing_model": "express_trial_90d",
|
|
225
|
+
"priority": 90,
|
|
226
|
+
"detection": {
|
|
227
|
+
"endpoint_regexes": [
|
|
228
|
+
"aiplatform\\.googleapis\\.com/.*\\?key="
|
|
229
|
+
],
|
|
230
|
+
"log_auth_method_values": [
|
|
231
|
+
"vertex_express",
|
|
232
|
+
"vertex_express_key",
|
|
233
|
+
"express_mode"
|
|
234
|
+
],
|
|
235
|
+
"settings_auth_type_patterns": [
|
|
236
|
+
"express"
|
|
237
|
+
],
|
|
238
|
+
"env_presence_keys": [
|
|
239
|
+
"GOOGLE_CLOUD_API_KEY"
|
|
240
|
+
],
|
|
241
|
+
"env_conflict_keys": [
|
|
242
|
+
"GEMINI_API_KEY"
|
|
243
|
+
],
|
|
244
|
+
"local_config_files": []
|
|
245
|
+
},
|
|
246
|
+
"error_signature_regexes": [
|
|
247
|
+
"Express Mode|90-day.*trial|GOOGLE_CLOUD_API_KEY",
|
|
248
|
+
"aiplatform\\.googleapis\\.com/.*\\?key="
|
|
249
|
+
],
|
|
250
|
+
"quota_reset_policy": {
|
|
251
|
+
"window_type": "rpm_tpm_regional",
|
|
252
|
+
"reset_timezone": "UTC",
|
|
253
|
+
"reset_clock": null,
|
|
254
|
+
"supports_kv_cache_discount": true,
|
|
255
|
+
"kv_cache_discount_rate": "10%",
|
|
256
|
+
"background_call_billed": true,
|
|
257
|
+
"thinking_bucket_multiplier": null
|
|
258
|
+
},
|
|
259
|
+
"recommended_behaviors": {
|
|
260
|
+
"thinking_guidance": "Vertex Express Mode 拥有严格的项目级原型 RPM/TPM 限制,建议常规测试使用 Flash/Medium Thinking。",
|
|
261
|
+
"kv_cache_guidance": "支持 Vertex AI 隐式缓存,注意 90 天免费试用期到期后需绑定 Cloud Billing 转入标准按量模式。",
|
|
262
|
+
"throttling_guidance": "429 通常意味着触发 Express 免费额度上限或 90 天试用期届满,请在 GCP Console 绑定结算账号解除限制。",
|
|
263
|
+
"background_spend_guidance": "Vertex Express Mode 后台轻量调用会消耗有限的 90 天试用 RPM/TPM 与免费额度。",
|
|
264
|
+
"model_routing_guidance": "原型验证阶段优先使用 Flash/Flash-Lite,避免快速耗尽 Express 免费额度。",
|
|
265
|
+
"isolation_commands": [
|
|
266
|
+
"unset GEMINI_API_KEY"
|
|
267
|
+
],
|
|
268
|
+
"verify_command": "npx agycraft-mcp doctor --auth-mode vertex_express_key"
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
]
|
|
272
|
+
}
|