VSCode Extension Use of AI

VSCode Extension Use of AI#

The Lattix MCP server can be used to assist those using Lattix in VSCode. The AI you are using in VSCode (e.g. Claude or CoPilot) will have access to a variety of tools to gather information about your Lattix project.

To check if the Lattix MCP server is running, enter Ctrl-Shift-P and enter the command “MCP: List Servers”. Make sure that the Lattix Model server is running.

lattixModelServerRunning

Examples of intended uses are:

  • “Tell me how I can refactor my code to fix the Lattix rule violations currently found in the project”

  • “Use Lattix metrics to tell me about the system stability, and which partitions may be causing stability issues”

  • “Tell me about cycles in my Lattix project, and give suggestions on how I could remove them”

  • “Which partitions is <partition x> used by? If I make changes to that partition, what could the impact be?”

The currently available tools are:

General:

Get Project Name

List All Partitions

Violations:

Get All Rule Violations in Project

Get Rule Violations for a Partition

Get Rule Violations for Multiple Partitions

Get Rule Violations Between Two Partitions

Dependencies:

Get The Partitions That The Given Partition Uses

Get The Partitions That The Given Partition Is Used By

Get Dependencies Between Two Partitions

Metrics:

List All Available Metrics

Get Metric(s) for Partition(s)

Rules:

List All Rules

Get Rules for a Partition

Cycles:

List All Cycles

Tags:

List All Tags

Get All Tags on a Given Partition

Get All Partitions which have a Given Tags

Add a Tag to a Partition