spritecook-mcp 0.2.9 → 0.2.10
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/package.json +1 -1
- package/src/editors.mjs +6 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "spritecook-mcp",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.10",
|
|
4
4
|
"mcpName": "ai.spritecook/generate",
|
|
5
5
|
"description": "SpriteCook MCP Server - Connect your AI agent (Cursor, VS Code, Claude) to SpriteCook for pixel art and game asset generation.",
|
|
6
6
|
"keywords": [
|
package/src/editors.mjs
CHANGED
|
@@ -247,18 +247,18 @@ export function detectEditors() {
|
|
|
247
247
|
});
|
|
248
248
|
|
|
249
249
|
// ── Codex (OpenAI) ──────────────────────────────────────────
|
|
250
|
+
// Always write to global ~/.codex/config.toml regardless of scope choice.
|
|
251
|
+
// Project-level config requires Codex "trusted project" which is unreliable
|
|
252
|
+
// for new projects, and global keeps the API key out of git.
|
|
250
253
|
const codexGlobalPath = join(home, '.codex', 'config.toml');
|
|
251
254
|
const codexProjectPath = join(cwd, '.codex', 'config.toml');
|
|
252
255
|
editors.push({
|
|
253
256
|
name: 'Codex',
|
|
254
257
|
detected: existsSync(codexGlobalPath) || existsSync(codexProjectPath),
|
|
255
|
-
scopes: ['
|
|
258
|
+
scopes: ['global'],
|
|
256
259
|
defaultScope: 'global',
|
|
257
|
-
configPath: (
|
|
258
|
-
write: (apiKey
|
|
259
|
-
scope === 'project' ? codexProjectPath : codexGlobalPath,
|
|
260
|
-
apiKey,
|
|
261
|
-
),
|
|
260
|
+
configPath: () => codexGlobalPath,
|
|
261
|
+
write: (apiKey) => writeCodexConfig(codexGlobalPath, apiKey),
|
|
262
262
|
skillDirs: {
|
|
263
263
|
project: join(cwd, '.agents', 'skills', 'spritecook'),
|
|
264
264
|
global: join(home, '.agents', 'skills', 'spritecook'),
|