You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+29-5Lines changed: 29 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,10 +6,12 @@ An [MCP Server](https://modelcontextprotocol.io/introduction) to utilize Codelog
6
6
7
7
### Tools
8
8
9
-
The server implements one tool:
9
+
The server implements two tools:
10
10
11
-
- get-impact: Pulls an impact assessment from the codelogic server's API's for your code
12
-
- Takes the given "method" that you're working on and it's associated "class"
11
+
-**codelogic-method-impact**: Pulls an impact assessment from the CodeLogic server's APIs for your code.
12
+
- Takes the given "method" that you're working on and its associated "class".
13
+
-**codelogic-database-impact**: Analyzes impacts between code and database entities.
14
+
- Takes the database entity type (column, table, or view) and its name.
13
15
14
16
### Install
15
17
@@ -67,16 +69,38 @@ Add the following configuration to your file:
67
69
}
68
70
```
69
71
70
-
Add a **global rule** to help windsurf call the tool, create or modify the `~/.codeium/windsurf/memories/global_rules.md` markdown file.
72
+
Add a **global rule** to help Windsurf call the tools, create or modify the `~/.codeium/windsurf/memories/global_rules.md` markdown file.
71
73
72
74
Add the following or something similar:
73
75
74
76
```markdown
75
-
When I ask you to modify existing code, try running the get-impact mcp tool against the code I've provided and any methods or functions that you are changing. Make sure the results sent back from the tool are highlighted as impacts for the given method or function.
77
+
When I ask you to modify existing code, try running the codelogic-method-impact and codelogic-database-impact MCP tools against the code I've provided and any methods or functions that you are changing. Make sure the results sent back from the tool are highlighted as impacts for the given method or function.
76
78
```
77
79
78
80
After adding the configuration, restart Windsurf IDE or refresh the tools to apply the changes.
79
81
82
+
### Environment Variables
83
+
84
+
The following environment variables can be configured to customize the behavior of the server:
85
+
86
+
-`CODELOGIC_SERVER_HOST`: The URL of the CodeLogic server.
87
+
-`CODELOGIC_USERNAME`: Your CodeLogic username.
88
+
-`CODELOGIC_PASSWORD`: Your CodeLogic password.
89
+
-`CODELOGIC_MV_NAME`: The name of the materialized view to use.
90
+
-`CODELOGIC_DEBUG_MODE`: Set to `true` to enable debug mode. When enabled, additional debug files such as `timing_log.txt` and `impact_data*.json` will be generated. Defaults to `false`.
91
+
92
+
#### Example Configuration
93
+
94
+
```json
95
+
"env": {
96
+
"CODELOGIC_SERVER_HOST": "<url to the server e.g. https://myco.app.codelogic.com>",
97
+
"CODELOGIC_USERNAME": "<my username>",
98
+
"CODELOGIC_PASSWORD": "<my password>",
99
+
"CODELOGIC_MV_NAME": "<my materialized view>",
100
+
"CODELOGIC_DEBUG_MODE": "true"
101
+
}
102
+
```
103
+
80
104
#### Pinning the version
81
105
82
106
instead of using the **latest** version of the server, you can pin to a specific version by changing the **args** field to match the version in [pypi](https://pypi.org/project/codelogic-mcp-server/) e.g.
0 commit comments