Skip to content
Merged
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
13 changes: 7 additions & 6 deletions packages/angular/cli/src/commands/mcp/mcp-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,18 @@ import { AnyMcpToolDeclaration, registerTools } from './tools/tool-registry';
* The set of tools that are enabled by default for the MCP server.
* These tools are considered stable and suitable for general use.
*/
const STABLE_TOOLS = [BEST_PRACTICES_TOOL, DOC_SEARCH_TOOL, LIST_PROJECTS_TOOL] as const;
const STABLE_TOOLS = [
BEST_PRACTICES_TOOL,
DOC_SEARCH_TOOL,
FIND_EXAMPLE_TOOL,
LIST_PROJECTS_TOOL,
] as const;

/**
* The set of tools that are available but not enabled by default.
* These tools are considered experimental and may have limitations.
*/
export const EXPERIMENTAL_TOOLS = [
FIND_EXAMPLE_TOOL,
MODERNIZE_TOOL,
ZONELESS_MIGRATION_TOOL,
] as const;
export const EXPERIMENTAL_TOOLS = [MODERNIZE_TOOL, ZONELESS_MIGRATION_TOOL] as const;

export async function createMcpServer(
options: {
Expand Down
9 changes: 8 additions & 1 deletion packages/angular/cli/src/commands/mcp/tools/examples.ts
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,14 @@ function parseFrontmatter(content: string): Record<string, unknown> {
isArray = value.trim() === '';

if (!isArray) {
data[currentKey] = value.trim();
const trimmedValue = value.trim();
if (trimmedValue === 'true') {
data[currentKey] = true;
} else if (trimmedValue === 'false') {
data[currentKey] = false;
} else {
data[currentKey] = trimmedValue;
}
}
} else {
const arrayItemMatch = line.match(/^\s*-\s*(.*)/);
Expand Down
9 changes: 8 additions & 1 deletion tools/example_db_generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,14 @@ function parseFrontmatter(content) {
isArray = value.trim() === '';

if (!isArray) {
data[currentKey] = value.trim();
const trimmedValue = value.trim();
if (trimmedValue === 'true') {
data[currentKey] = true;
} else if (trimmedValue === 'false') {
data[currentKey] = false;
} else {
data[currentKey] = trimmedValue;
}
}
} else {
const arrayItemMatch = line.match(/^\s*-\s*(.*)/);
Expand Down