The TALY MCP (Model Context Protocol) server provides a set of tools that guides AI Agents in modifying specific TALY features (e.g., Dynamic Form). Tool selection is automatic and handled by the client (e.g., GitHub Copilot), not by the server authors.
Clients (AI agents) are responsible for reading and updating the files. Clients like GitHub Copilot can call multiple tools sequentially and retry if generated snippets are incorrect (e.g., violating the JSON schema).
The TALY MCP is shipped as part of the @allianz/taly-core library starting from version 47.4.0
Install the MCP server by running the command below from the workspace root folder.
This will automatically create or update the .vscode/mcp.json file in your project root, adding the necessary MCP server configuration.
npx --no-install taly-add-mcp-serverYou can also configure the MCP manually by adding or updating the MCP JSON configuration.
The exact location changes depending on the IDE (e.g., .vscode/mcp.json for VS Code)
"servers": {
"taly-mcp-server": {
"command": "node",
"type": "stdio",
"args": [
"./node_modules/@allianz/taly-core/mcp/src/index.js"
]
}
}The exact procedure changes depending on the IDE.
In VS Code this can be done by opening the
mcp.jsonin the.vscodefolder. An inline button to start the server should appear on the file after a few seconds. Click "Start."
Open your preferred coding assistant and make sure that the MCP server is activated.
For example: if you are using Github Copilot, switch to the "Agent" mode (the default mode should be "Ask") and click on the "Configure tools" button to ensure that the TALY MCP server is activated.
You can now prompt the agent.
For example: Modify the dynamic form of the playground app to add a mandatory nickname field.