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
5 changes: 1 addition & 4 deletions .cursor/flows/ds-refactoring-flow/04-validate-changes.mdc
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@ This contains the list of available component contracts.

Now, follow these steps:

1. Use the `lint-changes` tool to perform static code analysis on the refactored files. Call the tool like this:
<tool_call>lint-changes {{REFACTORED_FILES}}</tool_call>

If there are any errors reported by the lint tool, list them and ask the user what to do. Wait for the user's response before proceeding.
1. Fix eslint issues in {{REFACTORED_FILES}} using `lint-files`. DO NOT go to next step until lint errors are fixed. If there are unfixable errors ask user what to do.

2. Use the `build_component_contract` tool to capture the refactored state of the components:
<tool_call>build_component_contract {{REFACTORED_FILES}}</tool_call>
Expand Down
7 changes: 6 additions & 1 deletion .cursor/mcp.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,16 @@
"command": "node",
"args": [
"./packages/angular-mcp/dist/main.js",
"--workspaceRoot=root/path/to/workspace",
"--workspaceRoot=/home/spoltorak/projects/x-mcp",
"--ds.storybookDocsRoot=packages/minimal-repo/packages/design-system/storybook-host-app/src/components",
"--ds.deprecatedCssClassesPath=packages/minimal-repo/packages/design-system/component-options.js",
"--ds.uiRoot=packages/minimal-repo/packages/design-system/ui"
]
},
"ESLint": {
"type": "stdio",
"command": "npx",
"args": ["@eslint/mcp@latest"]
}
}
}
22 changes: 22 additions & 0 deletions .cursor/mcp.json.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"mcpServers": {
"nx-mcp": {
"url": "http://localhost:9665/sse"
},
"angular-toolkit-mcp": {
"command": "node",
"args": [
"/absolute/path/to/angular-mcp-server/packages/angular-mcp-server/dist/index.js",
"--workspaceRoot=/absolute/path/to/your/angular/workspace",
"--ds.storybookDocsRoot=relative/path/to/storybook/docs",
"--ds.deprecatedCssClassesPath=relative/path/to/component-options.js",
"--ds.uiRoot=relative/path/to/ui/components"
]
},
"ESLint": {
"type": "stdio",
"command": "npx",
"args": ["@eslint/mcp@latest"]
}
}
}
5 changes: 1 addition & 4 deletions .cursor/rules/04-validate-changes.mdc
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@ This contains the list of available component contracts.

Now, follow these steps:

1. Use the `lint-changes` tool to perform static code analysis on the refactored files. Call the tool like this:
<tool_call>lint-changes {{REFACTORED_FILES}}</tool_call>

If there are any errors reported by the lint tool, list them and ask the user what to do. Wait for the user's response before proceeding.
1. Fix eslint issues in {{REFACTORED_FILES}} using `lint-files`. DO NOT go to next step until lint errors are fixed. If there are unfixable errors ask user what to do.

2. Use the `build_component_contract` tool to capture the refactored state of the components:
<tool_call>build_component_contract {{REFACTORED_FILES}}</tool_call>
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,5 @@ vitest.config.*.timestamp*
.code-pushup

.cursor/rules/nx-rules.mdc
.cursor/mcp.json
.github/instructions/nx.instructions.md
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,12 @@ Add the server to your MCP client configuration (e.g., Claude Desktop, Cursor, C

#### For Cursor (`.cursor/mcp.json` or MCP settings):

Open the project you working with and register the mcp with next parameters:
Copy `.cursor/mcp.json.example` to the project you're working on. Copied file should be: `.cursor/mcp.json` and update `angular-toolkit-mcp` values accordingly:

```json
{
"mcpServers": {
...(other servers)...
"angular-toolkit-mcp": {
"command": "node",
"args": [
Expand All @@ -66,6 +67,8 @@ Open the project you working with and register the mcp with next parameters:
}
```

> **Note**: The example file contains configuration for `ESLint` official MCP which is required for the toolkit to work properly.

### Configuration Parameters

#### Required Parameters
Expand Down
Loading