Command Reference ( mcpsv mode )
List of mcpsv mode commands.
mcpsv ( start ) : cmdbox -m mcpsv -c start <Option>
Start MCP server.
Option |
Type |
Multi |
Required |
Default |
Choices |
Description |
|---|---|---|---|---|---|---|
--host <host> |
str |
required |
localhost |
Specify the service host of the Redis server. |
||
--port <port> |
int |
required |
6379 |
Specify the service port of the Redis server. |
||
--password <password> |
passwd |
required |
password |
Specify the access password of the Redis server (optional). If omitted, password is used. |
||
--svname <svname> |
str |
required |
cmdbox |
Specify the service name of the inference server. If omitted, server is used. |
||
--data <data> |
dir |
C:Usershama.cmdbox |
When omitted, $HONE/.cmdbox is used. |
|||
--allow_host <allow_host> |
str |
0.0.0.0 |
If omitted, 0.0.0.0 is used. |
|||
--mcpsv_listen_port <mcpsv_listen_port> |
int |
8091 |
If omitted, 8091 is used. |
|||
--ssl_mcpsv_listen_port <ssl_mcpsv_listen_port> |
int |
8453 |
If omitted, 8453 is used. |
|||
--ssl_cert <ssl_cert> |
file |
Specify the SSL server certificate file. |
||||
--ssl_key <ssl_key> |
file |
Specify the SSL server private key file. |
||||
--ssl_keypass <ssl_keypass> |
str |
Specify the composite password for the SSL server private key file. |
||||
--ssl_ca_certs <ssl_ca_certs> |
file |
Specify the SSL server CA certificate file. |
||||
--signin_file <signin_file> |
file |
required |
.cmdbox/user_list.yml |
Specify a file containing users and passwords with which they can signin.Typically, specify '.cmdbox/user_list.yml'. |
||
--gunicorn_workers <gunicorn_workers> |
int |
6 |
Specifies the number of gunicorn workers, valid only in Linux environment. If -1 or unspecified, the number of CPUs is used. |
|||
--gunicorn_timeout <gunicorn_timeout> |
int |
900 |
Specify the timeout duration of the gunicorn worker in seconds. |
Output Schema
This command implements output_schema() returning Result model.
{
"success": {
"performance": [
{
"key": "string",
"value": null
}
],
"data": "string"
},
"warn": {},
"error": {},
"schema": {},
"end": false
}
Field |
Type |
Required |
Default |
Description |
|---|---|---|---|---|
success |
Data | null |
no |
null |
成功した場合の結果 |
success.performance |
list[KeyVal] | null |
no |
null |
パフォーマンス情報のリスト |
success.data |
str | null |
no |
null |
処理結果のデータ |
warn |
dict[str, any] | Data | str | bool | null |
no |
null |
警告がある場合の結果 |
warn.performance |
list[KeyVal] | null |
no |
null |
パフォーマンス情報のリスト |
error |
dict[str, any] | Data | str | bool | null |
no |
null |
エラーがある場合の結果 |
error.performance |
list[KeyVal] | null |
no |
null |
パフォーマンス情報のリスト |
schema |
dict[str, any] | null |
no |
null |
スキーマ情報 |
end |
bool | null |
no |
null |
終了フラグ |
mcpsv ( stop ) : cmdbox -m mcpsv -c stop <Option>
Stop MCP server.
Option |
Type |
Multi |
Required |
Default |
Choices |
Description |
|---|---|---|---|---|---|---|
--data <data> |
dir |
C:Usershama.cmdbox |
When omitted, $HONE/.cmdbox is used. |
Output Schema
This command implements output_schema() returning Result model.
{
"success": {
"performance": [
{
"key": "string",
"value": null
}
],
"data": "string"
},
"warn": {},
"error": {},
"schema": {},
"end": false
}
Field |
Type |
Required |
Default |
Description |
|---|---|---|---|---|
success |
Data | null |
no |
null |
成功した場合の結果 |
success.performance |
list[KeyVal] | null |
no |
null |
パフォーマンス情報のリスト |
success.data |
str | null |
no |
null |
処理結果のデータ |
warn |
dict[str, any] | Data | str | bool | null |
no |
null |
警告がある場合の結果 |
warn.performance |
list[KeyVal] | null |
no |
null |
パフォーマンス情報のリスト |
error |
dict[str, any] | Data | str | bool | null |
no |
null |
エラーがある場合の結果 |
error.performance |
list[KeyVal] | null |
no |
null |
パフォーマンス情報のリスト |
schema |
dict[str, any] | null |
no |
null |
スキーマ情報 |
end |
bool | null |
no |
null |
終了フラグ |