Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Amazol #513

@AnouarAitAissa

Description

@AnouarAitAissa

#!/bin/bash

Simple takedown script

REGISTRY_URL="${REGISTRY_URL:-https://registry.modelcontextprotocol.io}"

if [ -z "$SERVER_ID" ] || [ -z "$REGISTRY_TOKEN" ]; then
echo "Usage: REGISTRY_TOKEN= SERVER_ID= $0"
exit 1
fi

Get current server and update status to deleted

curl -s "${REGISTRY_URL}/v0/servers/${SERVER_ID}" |
jq '.status = "deleted" | {server: .}' |
curl -X PUT "${REGISTRY_URL}/v0/servers/${SERVER_ID}"
-H "Authorization: Bearer ${REGISTRY_TOKEN}"
-H "Content-Type: application/json"
-d @-


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions