Server scripts
Server scripts are individual JavaScript or TypeScript files that run on the Neptune DXP - Open Edition server. They can be grouped into script projects. The MCP server provides tools for both project-level and individual script operations.
Required access: the Script Editor tool (scripteditor) in one of your roles.
Display access is enough to list and read script projects and scripts. Creating
and deleting projects, saving and deleting scripts, and running a script require
Edit access.
If none of your roles includes this tool with the required access, the tool fails immediately with an access denied error. Contact an administrator to request access, or see Access control for more information on how access is enforced.
Available tools
Script projects
Script projects group related server scripts together. Use the project-level tools to manage those groupings.
| Tool | Description |
|---|---|
|
List all server script projects with their scripts. Each project groups related scripts together. |
|
Return a server script project by its ID, including all its scripts. |
|
Create a new server script project with a name, a description, and a development package. |
|
Delete a server script project by its ID. |
Individual scripts
| Tool | Description |
|---|---|
|
Return a server script by its ID, including its source code. |
|
Create or update a server script in JavaScript or TypeScript. Omit |
|
Delete a server script by its ID. Pass the ID of the parent script project so that the project version is updated after the deletion. |
|
List server scripts that are not assigned to any project. |
|
Execute a server script by its ID. The body, path parameters, query parameters,
and headers that you pass are available to the script as |
Related topics
-
Tools overview — the full list of artifact types and required access.
-
Access control — how role and development package checks are enforced on every tool call.