You need to configure your tool to access DTP as an MCP server by providing it one of the following endpoints:
- SSE transport endpoint:
<BASE_URL>/grs/mcp/sse - HTTP stream transport endpoint:
<BASE_URL>/grs/mcp
You can do this a couple ways (note that the SSE transport endpoint is used in the examples below).
Using DTP as an MCP server is only supported with a DTP license that has the "MCP Server" feature. See Using DTP as an MCP Server for more information.
Adding it to Your Configuration
You can add the endpoint to your configuration. For example:
{
"servers": {
"dtp": {
"url": "http://<dtp_host>:8080/grs/mcp/sse",
"headers": {"Authorization": "Basic <credentials>"}
}
}
}
{
"servers": {
"dtp": {
"url": "http://<dtp_host>:8080/grs/mcp/sse",
"headers": {"Authorization": "Bearer <token>"}
}
}
}
Your authorization header can be either "Authorization": "Basic" or "Authorization": "Bearer", as appropriate for your DTP server. When using Bearer authorization, you will need to provide the token. When using Basic authorization, encode your username and password like you would for any other HTTP basic authorization header. For example, if the DTP server credentials are username user and password pass, you would configure as "headers": {"Authorization": "Basic dXNlcjpwYXNz"}.
Adding it with VS Code
You can add the DTP MCP server endpoint using the VS Code CLI. For example:
Linux
code --add-mcp '{"name":"dtp","url":"http://<dtp_host>:8080/grs/mcp/sse","headers":{"Authorization":"Basic <credential>"},"type":"http"}'
Windows
"<VS_CODE_INSTALLATION_DIR>\bin\code" --add-mcp {\"name\":\"dtp\",\"url\":\"http://<dtp_host>:8080/grs/mcp/sse\",\"headers\":{\"Authorization\":\"Basic <credential>\"},\"type\":\"http\"}