chore(plane): default project workspace to developments

This commit is contained in:
Do Siki
2026-09-28 09:52:18 +02:00
parent b5a8936f42
commit 46bce2f1fd
3 changed files with 25 additions and 4 deletions
+9 -2
View File
@@ -7,6 +7,7 @@ const MCP_PATH = path.join(__dirname, '..', '..', '.mcp.json');
const DEFAULT_PROJECT_ID = '643f7055-1237-4912-912f-99ec49fd0f0e';
const DEFAULT_PROJECT_IDENTIFIER = 'MITHOME';
const DEFAULT_WORKSPACE_SLUG = 'developments';
function loadDotEnv() {
try {
@@ -44,10 +45,16 @@ function getConfig() {
return {
apiKey: process.env.PLANE_API_KEY || mcp.PLANE_API_KEY,
host: (process.env.PLANE_API_HOST_URL || mcp.PLANE_API_HOST_URL || 'https://pm.llmdev.mozdit.hu/').replace(/\/+$/, ''),
workspace: process.env.PLANE_WORKSPACE_SLUG || mcp.PLANE_WORKSPACE_SLUG,
workspace: resolveWorkspaceSlug(process.env, mcp),
projectId: process.env.PLANE_PROJECT_ID || DEFAULT_PROJECT_ID,
projectIdentifier: process.env.PLANE_PROJECT_IDENTIFIER || DEFAULT_PROJECT_IDENTIFIER
};
}
module.exports = { getConfig, loadDotEnv };
function resolveWorkspaceSlug(environment, mcpConfig) {
// DECISION: workspace is project-scoped; prefer this repo's MCP config over
// a workspace slug inherited from another active Conductor connection.
return mcpConfig.PLANE_WORKSPACE_SLUG || environment.PLANE_WORKSPACE_SLUG || DEFAULT_WORKSPACE_SLUG;
}
module.exports = { getConfig, loadDotEnv, resolveWorkspaceSlug };