feat: add credential routes and mcp manifest
This commit is contained in:
149
.well-known/mcp.json
Normal file
149
.well-known/mcp.json
Normal file
@@ -0,0 +1,149 @@
|
||||
{
|
||||
"schema_version": "1.0",
|
||||
"name": "Elysia Documentation",
|
||||
"description": "Development documentation",
|
||||
"version": "0.0.0",
|
||||
"endpoints": {
|
||||
"openapi": "http://localhost:3000/docs/json",
|
||||
"mcp": "http://localhost:3000/.well-known/mcp.json"
|
||||
},
|
||||
"capabilities": {
|
||||
"apikey": {
|
||||
"postApiApikeyCreate": {
|
||||
"method": "POST",
|
||||
"path": "/api/apikey/create",
|
||||
"summary": "create api key",
|
||||
"parameters": {
|
||||
"name": "string",
|
||||
"description": "string",
|
||||
"expiredAt": "string"
|
||||
},
|
||||
"required": [
|
||||
"name",
|
||||
"description"
|
||||
],
|
||||
"command": "curl -X POST http://localhost:3000/api/apikey/create \\\n -H 'Content-Type: application/json' -d '{\"name\":\"name\",\"description\":\"description\",\"expiredAt\":\"expiredAt\"}'"
|
||||
},
|
||||
"getApiApikeyList": {
|
||||
"method": "GET",
|
||||
"path": "/api/apikey/list",
|
||||
"summary": "get api key list",
|
||||
"command": "curl -X GET http://localhost:3000/api/apikey/list"
|
||||
},
|
||||
"deleteApiApikeyDelete": {
|
||||
"method": "DELETE",
|
||||
"path": "/api/apikey/delete",
|
||||
"summary": "delete api key",
|
||||
"parameters": {
|
||||
"id": "string"
|
||||
},
|
||||
"required": [
|
||||
"id"
|
||||
],
|
||||
"command": "curl -X DELETE http://localhost:3000/api/apikey/delete \\\n -H 'Content-Type: application/json' -d '{\"id\":\"id\"}'"
|
||||
}
|
||||
},
|
||||
"darmasaba": {
|
||||
"getApiDarmasabaRepos": {
|
||||
"method": "GET",
|
||||
"path": "/api/darmasaba/repos",
|
||||
"summary": "/repos",
|
||||
"command": "curl -X GET http://localhost:3000/api/darmasaba/repos"
|
||||
},
|
||||
"getApiDarmasabaLs": {
|
||||
"method": "GET",
|
||||
"path": "/api/darmasaba/ls",
|
||||
"summary": "/ls",
|
||||
"command": "curl -X GET http://localhost:3000/api/darmasaba/ls"
|
||||
},
|
||||
"getApiDarmasabaLsByDir": {
|
||||
"method": "GET",
|
||||
"path": "/api/darmasaba/ls/{dir}",
|
||||
"summary": "/ls/:dir",
|
||||
"parameters": {
|
||||
"dir": "string"
|
||||
},
|
||||
"required": [
|
||||
"dir"
|
||||
],
|
||||
"command": "curl -X GET http://localhost:3000/api/darmasaba/ls/{dir} \\\n -H 'Content-Type: application/json' -d '{\"dir\":\"dir\"}'"
|
||||
},
|
||||
"getApiDarmasabaFileByDirByFile_name": {
|
||||
"method": "GET",
|
||||
"path": "/api/darmasaba/file/{dir}/{file_name}",
|
||||
"summary": "/file/:dir/:file_name",
|
||||
"parameters": {
|
||||
"dir": "string",
|
||||
"file_name": "string"
|
||||
},
|
||||
"required": [
|
||||
"dir",
|
||||
"file_name"
|
||||
],
|
||||
"command": "curl -X GET http://localhost:3000/api/darmasaba/file/{dir}/{file_name} \\\n -H 'Content-Type: application/json' -d '{\"dir\":\"dir\",\"file_name\":\"file_name\"}'"
|
||||
}
|
||||
},
|
||||
"default": {
|
||||
"getApiUserFind": {
|
||||
"method": "GET",
|
||||
"path": "/api/user/find",
|
||||
"summary": "",
|
||||
"command": "curl -X GET http://localhost:3000/api/user/find"
|
||||
},
|
||||
"postApiCredentialCreate": {
|
||||
"method": "POST",
|
||||
"path": "/api/credential/create",
|
||||
"summary": "",
|
||||
"parameters": {
|
||||
"name": "string",
|
||||
"value": "string"
|
||||
},
|
||||
"required": [
|
||||
"name",
|
||||
"value"
|
||||
],
|
||||
"command": "curl -X POST http://localhost:3000/api/credential/create \\\n -H 'Content-Type: application/json' -d '{\"name\":\"name\",\"value\":\"value\"}'"
|
||||
},
|
||||
"getApiCredentialList": {
|
||||
"method": "GET",
|
||||
"path": "/api/credential/list",
|
||||
"summary": "",
|
||||
"command": "curl -X GET http://localhost:3000/api/credential/list"
|
||||
},
|
||||
"deleteApiCredentialRm": {
|
||||
"method": "DELETE",
|
||||
"path": "/api/credential/rm",
|
||||
"summary": "",
|
||||
"parameters": {
|
||||
"id": "string"
|
||||
},
|
||||
"required": [
|
||||
"id"
|
||||
],
|
||||
"command": "curl -X DELETE http://localhost:3000/api/credential/rm \\\n -H 'Content-Type: application/json' -d '{\"id\":\"id\"}'"
|
||||
}
|
||||
},
|
||||
"auth": {
|
||||
"postAuthLogin": {
|
||||
"method": "POST",
|
||||
"path": "/auth/login",
|
||||
"summary": "login",
|
||||
"parameters": {
|
||||
"email": "string",
|
||||
"password": "string"
|
||||
},
|
||||
"required": [
|
||||
"email",
|
||||
"password"
|
||||
],
|
||||
"command": "curl -X POST http://localhost:3000/auth/login \\\n -H 'Content-Type: application/json' -d '{\"email\":\"email\",\"password\":\"password\"}'"
|
||||
},
|
||||
"deleteAuthLogout": {
|
||||
"method": "DELETE",
|
||||
"path": "/auth/logout",
|
||||
"summary": "logout",
|
||||
"command": "curl -X DELETE http://localhost:3000/auth/logout"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user