Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space FUNCTDEV and version SVC2025.3

...

You can configure the following settings on the Tool Settings.

Connection Settings

...

Endpoint

Specify the endpoint for the MCP server in the format of http(s)://host[:port]/path. This is required to create a new connection. After the initial connection is created, you can use the connection ID to control which connection you want to work with.

The tool splits the Endpoint into two parts by default:

  • Base URL: http(s)://host[:port]
  • SSE endpoint: /path

Example:

  • Endpoint: http://localhost:8080/sse

Result:

  • Base URL: http://localhost:8080
  • SSE endpoint: /sse

If this rule does not meet your requirement, you can override the base URL by setting the following system property. The tool will then derive the SSE endpoint accordingly:

-J-Dcom.parasoft.soavirt.tool.mcpclient.baseurl=<BASE_URL> 

Keep Alive

Specify either true or false to keep connection open or close connection after test execution. The default is false.

The MCP client allows multiple active connections to be used. If the connection ID matches the ID for a connection that is already open, that connection will be reused. If the connection ID matches an ID for a connection that has been closed or has never been used to open a connection previously, a new connection will be created.

If Keep Alive is true, SOAtest will not close the connection at the end of that test’s execution. If Keep Alive is false, SOAtest will close the connection at the end of that test’s execution. Unlike built-in transports, there is no final cleanup of open connections for this custom tool when execution is finished, so you should set Keep Alive to false for the last test of a given connection. If this is not done, the connection will stay open.

For example, in the following scenario, both connections will be kept open after the test run is over:

  • Connection A (Keep Alive: true)
  • Connection B (Keep Alive: true)
  • Connection A (Keep Alive: true)
  • Connection B (Keep Alive: true)

To fix this, you would set Keep Alive to false for the last test that uses a particular connection:

  • Connection A (Keep Alive: true)
  • Connection B (Keep Alive: true)
  • Connection A (Keep Alive: false)
  • Connection B (Keep Alive: false)
Request TimeoutDefines the maximum seconds to wait for server responses before timing out requests. The default is 20.
Connection ID

Specify a connection ID if you are testing multiple connections. Any string can be used for connection IDs.

If you specify a connection ID that references an already open connection, as well as an Endpoint, Request Timeout, Bearer Token, Basic Auth Username or Basic Auth Password, the Endpoint, Request Timeout, Bearer Token, Basic Auth Username or Basic Auth Password will be ignored because the connection will already be open.

You do not need to set the connection ID if you are working with a single connection within a test suite, SOAtest will use the default value (<default>) for the connection ID.

However, if you want to open and send/receive messages on multiple connections within the same scenario, you need to specify unique connection IDs for each of them.

The default is <default>.

Bearer Token

Specify the OAuth 2.0 access token with which to authenticate to a MCP server that uses OAuth authentication. If no OAuth authentication is needed, leave this field blank. If this field is specified, the Basic Auth Username and Basic Auth Password fields will be ignored.

Basic Auth Username

Specify the username with which to authenticate to a MCP server that uses Basic authentication. If no Basic authentication is needed, leave this field blank. If Bearer Token field is specified, this field will be ignored.

Basic Auth Password

Specify the password with which to authenticate to a MCP server that uses Basic authentication. If no Basic authentication is needed, leave this field blank. If Bearer Token field is specified, this field will be ignored.

Request Settings

...

...

Method

The name of the method to be invoked. The following methods are supported:

  • tools/list
  • tools/call
  • resources/list
  • resources/read
  • prompts/list
  • prompts/get
Parameters: nameThe name of a tool or prompt (used in tools/call or prompts/get method).
Parameters: cursorOptional pagination cursor from a previous list response (used in tools/list, resources/list, or prompts/list method).
Parameters: uriThe URI of a resource (used in resources/read method).
Parameters: argument 1 to Parameters: argument 10

These fields configure arguments that should be sent as part of the request.

You can configure up to ten arguments. Arguments are configured using a name=value format. (The value can be a JSON structure.) For example, message="hello" and entities=[{"name":"John_Smith","entityType":"person","observations":["Speaks fluent Spanish"]}].

Logging Settings

...

Log Level

Specify how much information you want logged to the console and the Event Monitoring view. The following levels are available:

  • 1: error
  • 2: warn
  • 3: info
  • 4: debug

The default is 2.

Change Log

1.1

...

  • Added support for OAuth authentication and Basic authentication.
  • Merged separated Base URL and SSE Endpoint configuration fields into one Endpoint configuration field.

1.0

...

  • Initial release.

Third-Party Content

...

Additional license details are available in this extension’s licenses folder.