Some oci cli commands are returning plain text -- E.g.:
$ oci iam db-token get --scope "${iot_db_token_scope}"
Private key written at /home/<redacted>/.oci/db-token/oci_db_key.pem
db-token written at: /home/<redacted>/.oci/db-token/token
db-token is valid until 2025-10-20 23:13:48
The oci-api-mcp-server runs json.loads(result.stdout) without safeguard, generating a stack trace when it is not json:
|
json.loads(result.stdout) |
Possible fix would be to to wrap the output in json when it is not serializable -- e.g. { "response" : result.stdout}