register-service
Register a service with Consul by specifying its name, ID, port, address, and optional tags. Simplifies service discovery and management within the Consul MCP Server framework.
Instructions
Register a service with Consul
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | No | Address the service is running on | |
| id | No | ID of the service (defaults to name if not provided) | |
| name | No | Name of the service to register | |
| port | No | Port the service is running on | |
| tags | No | Tags to associate with the service |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"address": {
"default": "",
"description": "Address the service is running on",
"type": "string"
},
"id": {
"default": "",
"description": "ID of the service (defaults to name if not provided)",
"type": "string"
},
"name": {
"default": "",
"description": "Name of the service to register",
"type": "string"
},
"port": {
"description": "Port the service is running on",
"type": "number"
},
"tags": {
"description": "Tags to associate with the service",
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
}