aas-mcp

v0.0.1
aas-mcp Checked 3 days ago Published 1 year ago

A Python Model Context Protocol (MCP) Server for Eclipse BaSyx to manage Asset Administration Shells (AAS)

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_shells Get Shells

Retrieves all Shells from the AAS server. Corresponds to: GET /shells

ParameterTypeDescription
hoststringBase URL of the AAS server. Defaults to configured host.

get_shell Get Shell

Retrieves a specific Shell by its ID. Corresponds to: GET /shells/{shell_id}

ParameterTypeDescription
shell_id *stringThe unique identifier of the Shell.
encodebooleanWhether to Base64-encode the Shell ID. Defaults to True.
hoststringBase URL of the AAS server. Defaults to configured host.

create_shell Create Shell

Creates a new Shell on the AAS server. Corresponds to: POST /shells

ParameterTypeDescription
shell *objectA dictionary representing the Shell to be created.
hoststringBase URL of the AAS server. Defaults to configured host.

update_shell Update Shell

Updates an existing Shell on the AAS server by its ID. Corresponds to: PUT /shells/{shell_id}

ParameterTypeDescription
shell *objectA dictionary representing the updated Shell content.
shell_id *stringThe unique identifier of the Shell.
encodebooleanWhether to Base64-encode the Shell ID. Defaults to True.
hoststringBase URL of the AAS server. Defaults to configured host.

delete_shell Delete Shell

Deletes a specific Shell by its ID. Corresponds to: DELETE /shells/{shell_id}

ParameterTypeDescription
shell_id *stringThe unique identifier of the Shell.
encodebooleanWhether to Base64-encode the Shell ID. Defaults to True.
hoststringBase URL of the AAS server. Defaults to configured host.

get_submodel_refs Get Submodel Refs

Retrieves all submodel references from a specific Shell. Corresponds to: GET /shells/{shell_id}/submodel-refs

ParameterTypeDescription
shell_id *stringThe unique identifier of the Shell.
encodebooleanWhether to Base64-encode the Shell ID. Defaults to True.
hoststringBase URL of the AAS server. Defaults to configured host.

create_submodel_ref Create Submodel Ref

Creates a submodel reference for a specific Shell. Corresponds to: POST /shells/{shell_id}/submodel-refs

ParameterTypeDescription
shell_id *stringThe unique identifier of the Shell.
submodel_ref *objectA dictionary representing the submodel reference to be added.
encodebooleanWhether to Base64-encode the Shell ID. Defaults to True.
hoststringBase URL of the AAS server. Defaults to configured host.

delete_submodel_ref Delete Submodel Ref

Deletes a specific submodel reference from a Shell. Corresponds to: DELETE /shells/{shell_id}/submodel-refs/{submodel_id}

ParameterTypeDescription
shell_id *stringThe unique identifier of the Shell.
submodel_id *stringThe unique identifier of the submodel.
encodebooleanWhether to Base64-encode both identifiers. Defaults to True.
hoststringBase URL of the AAS server. Defaults to configured host.

get_submodels Get Submodels

Retrieves all Submodels from the AAS server. Corresponds to: GET /submodels

ParameterTypeDescription
hoststringBase URL of the AAS server. Defaults to configured host.

get_submodel Get Submodel

Retrieves a specific Submodel by its ID. Corresponds to: GET /submodels/{submodel_id}

ParameterTypeDescription
submodel_id *stringThe unique identifier of the submodel.
encodebooleanWhether to Base64-encode the submodel ID. Defaults to True.
hoststringBase URL of the AAS server. Defaults to configured host.

create_submodel Create Submodel

Creates a new Submodel on the AAS server. Corresponds to: POST /submodels

ParameterTypeDescription
submodel *objectA dictionary representing the Submodel to be created.
hoststringBase URL of the AAS server. Defaults to configured host.

update_submodel Update Submodel

Updates an existing Submodel by its ID. Corresponds to: PUT /submodels/{submodel_id}

ParameterTypeDescription
submodel *objectA dictionary representing the updated Submodel content.
submodel_id *stringThe unique identifier of the Submodel.
encodebooleanWhether to Base64-encode the Submodel ID. Defaults to True.
hoststringBase URL of the AAS server. Defaults to configured host.

delete_submodel Delete Submodel

Deletes a specific Submodel by its ID. Corresponds to: DELETE /submodels/{submodel_id}

ParameterTypeDescription
submodel_id *stringThe unique identifier of the Submodel.
encodebooleanWhether to Base64-encode the Submodel ID. Defaults to True.
hoststringBase URL of the AAS server. Defaults to configured host.

get_submodel_value Get Submodel Value

Retrieves the raw value of a specific Submodel. Corresponds to: GET /submodels/{submodel_id}/$value

ParameterTypeDescription
submodel_id *stringThe unique identifier of the Submodel.
encodebooleanWhether to Base64-encode the Submodel ID. Defaults to True.
hoststringBase URL of the AAS server. Defaults to configured host.

update_submodel_value Update Submodel Value

Updates the value of a specific Submodel. Corresponds to: PATCH /submodels/{submodel_id}/$value

ParameterTypeDescription
submodel_id *stringThe unique identifier of the Submodel.
value *arrayA list[dict] representing the updated Submodel value.
encodebooleanWhether to Base64-encode the Submodel ID. Defaults to True.
hoststringBase URL of the AAS server. Defaults to configured host.

get_submodel_metadata Get Submodel Metadata

Retrieves the metadata of a specific Submodel. Corresponds to: GET /submodels/{submodel_id}/$metadata

ParameterTypeDescription
submodel_id *stringThe unique identifier of the Submodel.
encodebooleanWhether to Base64-encode the Submodel ID. Defaults to True.
hoststringBase URL of the AAS server. Defaults to configured host.

get_submodel_elements Get Submodel Elements

Retrieves all Submodel elements from a specific Submodel. Corresponds to: GET /submodels/{submodel_id}/submodel-elements

ParameterTypeDescription
submodel_id *stringThe unique identifier of the Submodel.
encodebooleanWhether to Base64-encode the Submodel ID. Defaults to True.
hoststringBase URL of the AAS server. Defaults to configured host.

create_submodel_element Create Submodel Element

Creates a Submodel element. If `id_short_path` is given, creates the element at that nested path. Otherwise, creates the element at the root level. Corresponds to: POST /submodels/{submodel_id}/submodel-elements POST /submodels/{submodel_id}/submodel-elements/{idShortPath}

ParameterTypeDescription
element *objectA dictionary representing the Submodel element to create.
submodel_id *stringThe unique identifier of the Submodel.
encodebooleanWhether to Base64-encode the Submodel ID. Defaults to True.
hoststringBase URL of the AAS server. Defaults to configured host.
id_short_pathThe idShort path for the new Submodel element.

get_submodel_element Get Submodel Element

Retrieves a specific Submodel element by its idShort path. Corresponds to: GET /submodels/{submodel_id}/submodel-elements/{id_short_path}

ParameterTypeDescription
id_short_path *stringThe idShort path of the Submodel element.
submodel_id *stringThe unique identifier of the Submodel.
encodebooleanWhether to Base64-encode the Submodel ID. Defaults to True.
hoststringBase URL of the AAS server. Defaults to configured host.

update_submodel_element Update Submodel Element

Updates or creates a Submodel element by full replacement. Corresponds to: PUT /submodels/{submodel_id}/submodel-elements/{idShortPath}

ParameterTypeDescription
element *objectA dictionary representing the new element content.
id_short_path *stringThe idShort path of the Submodel element.
submodel_id *stringThe unique identifier of the Submodel.
encodebooleanWhether to Base64-encode the Submodel ID. Defaults to True.
hoststringBase URL of the AAS server. Defaults to configured host.

delete_submodel_element Delete Submodel Element

Deletes a specific Submodel element by its idShort path. Corresponds to: DELETE /submodels/{submodel_id}/submodel-elements/{idShortPath}

ParameterTypeDescription
id_short_path *stringThe idShort path of the Submodel element.
submodel_id *stringThe unique identifier of the Submodel.
encodebooleanWhether to Base64-encode the Submodel ID. Defaults to True.
hoststringBase URL of the AAS server. Defaults to configured host.

get_submodel_element_value Get Submodel Element Value

Retrieves the raw value of a specific Submodel element. Corresponds to: GET /submodels/{submodel_id}/submodel-elements/{idShortPath}/$value

ParameterTypeDescription
id_short_path *stringThe idShort path of the Submodel element.
submodel_id *stringThe unique identifier of the Submodel.
encodebooleanWhether to Base64-encode the Submodel ID. Defaults to True.
hoststringBase URL of the AAS server. Defaults to configured host.

update_submodel_element_value Update Submodel Element Value

Updates the value of a specific Submodel element. Corresponds to: PATCH /submodels/{submodel_id}/submodel-elements/{id_short_path}/$value

ParameterTypeDescription
id_short_path *stringThe idShort path of the Submodel element.
submodel_id *stringThe unique identifier of the Submodel.
value *stringThe new value to assign to the Submodel element.
encodebooleanWhether to Base64-encode the Submodel ID. Defaults to True.
hoststringBase URL of the AAS server. Defaults to configured host.

get_health_status Get Health Status

Check health status of the AAS environment.

ParameterTypeDescription
hoststringBase URL of the AAS server. Defaults to configured host.
timeoutnumberRequest timeout in seconds. Defaults to configured timeout.

is_healthy Is Healthy

Check if the AAS environment is ready for requests.

ParameterTypeDescription
hoststringBase URL of the AAS server. Defaults to configured host.
timeoutnumberRequest timeout in seconds. Defaults to configured timeout.