71 lines
2.0 KiB
JSON
71 lines
2.0 KiB
JSON
{
|
|
"tools": [
|
|
{
|
|
"name": "nomad_mcp",
|
|
"description": "Manage Nomad jobs through the MCP service",
|
|
"api_endpoints": [
|
|
{
|
|
"name": "list_jobs",
|
|
"description": "List all jobs in a namespace",
|
|
"method": "GET",
|
|
"url": "http://127.0.0.1:8000/api/claude/list-jobs",
|
|
"params": [
|
|
{
|
|
"name": "namespace",
|
|
"type": "string",
|
|
"description": "Nomad namespace",
|
|
"required": false,
|
|
"default": "development"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "manage_job",
|
|
"description": "Manage a job (status, stop, restart)",
|
|
"method": "POST",
|
|
"url": "http://127.0.0.1:8000/api/claude/jobs",
|
|
"body": {
|
|
"job_id": "string",
|
|
"action": "string",
|
|
"namespace": "string",
|
|
"purge": "boolean"
|
|
}
|
|
},
|
|
{
|
|
"name": "create_job",
|
|
"description": "Create a new job",
|
|
"method": "POST",
|
|
"url": "http://127.0.0.1:8000/api/claude/create-job",
|
|
"body": {
|
|
"job_id": "string",
|
|
"name": "string",
|
|
"type": "string",
|
|
"datacenters": "array",
|
|
"namespace": "string",
|
|
"docker_image": "string",
|
|
"count": "integer",
|
|
"cpu": "integer",
|
|
"memory": "integer",
|
|
"ports": "array",
|
|
"env_vars": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "get_job_logs",
|
|
"description": "Get logs for a job",
|
|
"method": "GET",
|
|
"url": "http://127.0.0.1:8000/api/claude/job-logs/{job_id}",
|
|
"params": [
|
|
{
|
|
"name": "namespace",
|
|
"type": "string",
|
|
"description": "Nomad namespace",
|
|
"required": false,
|
|
"default": "development"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |