feat: change default MCP tool tier from 'all' to 'core' (#1490)

This commit is contained in:
Ralph Khreish
2025-12-06 14:08:44 +01:00
committed by GitHub
parent b0199f1cfa
commit bf4515b6de
10 changed files with 124 additions and 61 deletions

View File

@@ -15,14 +15,14 @@ import {
/**
* Helper function to safely read and normalize the TASK_MASTER_TOOLS environment variable
* @returns {string} The tools configuration string, defaults to 'all'
* @returns {string} The tools configuration string, defaults to 'core'
*/
export function getToolsConfiguration() {
const rawValue = process.env.TASK_MASTER_TOOLS;
if (!rawValue || rawValue.trim() === '') {
logger.debug('No TASK_MASTER_TOOLS env var found, defaulting to "all"');
return 'all';
logger.debug('No TASK_MASTER_TOOLS env var found, defaulting to "core"');
return 'core';
}
const normalizedValue = rawValue.trim();
@@ -37,7 +37,7 @@ export function getToolsConfiguration() {
* @param {string} toolMode - The tool mode configuration (defaults to 'all')
* @returns {Object} Object containing registered tools, failed tools, and normalized mode
*/
export function registerTaskMasterTools(server, toolMode = 'all') {
export function registerTaskMasterTools(server, toolMode = 'core') {
const registeredTools = [];
const failedTools = [];