| index bc267cf..9bf2406 100644 | ||
| --- a/README.md | ||
| +++ b/README.md | ||
| @@ -69,7 +69,7 @@ BotCloud container: `/workspace/.scorpiox/plugins/plugin_time`. | ||
| 69 | 69 | |
| 70 | 70 | | Mode | Trigger | Response | |
| 71 | 71 | |---|---|---| |
| 72 | -| Discovery | `--meta` or `SX_PLUGIN_META=1` | `{"name":"time","desc":"World time MCP","kind":"mcp","mcp":true,"daemon":false,"menus":false,"verified":"live","category":"utilities","version":"1.0.0"}` (unauthenticated) | | |
| 72 | +| Discovery | `--meta` or `SX_PLUGIN_META=1` | `{"name":"time","desc":"World time MCP","kind":"mcp","mcp":true,"daemon":false,"menus":false,"verified":"live","category":"utilities","version":"1.0.2"}` (unauthenticated) | | |
| 73 | 73 | | **MCP tool provider** | `--mcp` | newline-delimited **JSON-RPC 2.0 over stdio** — `initialize`, `tools/list`, `tools/call`, `ping` | |
| 74 | 74 | | API | `?action=...`, `?format=json`, or any `POST` | `application/json; charset=utf-8` | |
| 75 | 75 | | UI | plain `GET` (`?embed=1` aware) | the World Clock page, `text/html` | |
| index 4643bd2..7035f91 100644 | ||
| --- a/plugin.json | ||
| +++ b/plugin.json | ||
| @@ -1,6 +1,7 @@ | ||
| 1 | 1 | { |
| 2 | 2 | "slug": "time", |
| 3 | 3 | "id": "plugin_time", |
| 4 | + "version": "1.0.2", | |
| 4 | 5 | "name": "time", |
| 5 | 6 | "desc": "World time MCP", |
| 6 | 7 | "title": "World Time & Timezone Converter (MCP)", |
| index 0aba4dd..c06878d 100644 | ||
| --- a/src/plugintime.h | ||
| +++ b/src/plugintime.h | ||
| @@ -25,7 +25,7 @@ | ||
| 25 | 25 | |
| 26 | 26 | #define PLUGIN_SLUG "time" |
| 27 | 27 | #define PLUGIN_ID "plugin_time" |
| 28 | -#define PLUGIN_VER "1.0.0" | |
| 28 | +#define PLUGIN_VER "1.0.2" | |
| 29 | 29 | #define PLUGIN_NAME "time" |
| 30 | 30 | #define PLUGIN_DESC "World time MCP" |
| 31 | 31 |
| index 5728eeb..75818f2 100755 | ||
| --- a/tests/run.sh | ||
| +++ b/tests/run.sh | ||
| @@ -139,7 +139,7 @@ json_ok "--meta daemon is false" "$M" "d['daemon'] is False" | ||
| 139 | 139 | json_ok "--meta menus is false (connectors must not flood the dropdowns)" "$M" "d['menus'] is False" |
| 140 | 140 | json_ok "--meta verified is live" "$M" "d['verified']=='live'" |
| 141 | 141 | json_ok "--meta category is utilities" "$M" "d['category']=='utilities'" |
| 142 | -json_ok "--meta version is 1.0.0" "$M" "d['version']=='1.0.0'" | |
| 142 | +json_ok "--meta version is 1.0.2" "$M" "d['version']=='1.0.2'" | |
| 143 | 143 | json_ok "--meta name is 1-2 words" "$M" "len(d['name'].split())<=2" |
| 144 | 144 | json_ok "--meta desc is at most 15 chars" "$M" "len(d['desc'])<=15" |
| 145 | 145 | M2=$(body "$(SX_PLUGIN_META=1 $BIN)") |
| @@ -147,7 +147,8 @@ check "SX_PLUGIN_META env var works" '"name":"time"' "$M2" | ||
| 147 | 147 | check_not "--meta emits no HTML" '<html' "$M" |
| 148 | 148 | V=$(body "$($BIN --version)") |
| 149 | 149 | check "--version names the binary" 'plugin_time' "$V" |
| 150 | -check "--version names the version" '1.0.0' "$V" | |
| 150 | +check "--version names the version" '1.0.2' "$V" | |
| 151 | +check "--version matches plugin.json" "\"version\": \"$($BIN --version | awk '{print $2}')\"" "$(cat plugin.json)" | |
| 151 | 152 | H=$(body "$($BIN --help)") |
| 152 | 153 | check "--help lists --mcp" '--mcp' "$H" |
| 153 | 154 | check "--help lists convert_time" 'convert_time' "$H" |
| @@ -181,7 +182,7 @@ section "mode 2b - MCP JSON-RPC handshake" | ||
| 181 | 182 | INIT=$(mcp '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"t","version":"1"}}}' | head -1) |
| 182 | 183 | check "initialize answers with a protocolVersion" '"protocolVersion":"2025-06-18"' "$INIT" |
| 183 | 184 | check "initialize names the server" '"name":"time-server"' "$INIT" |
| 184 | -check "initialize carries the version" '"version":"1.0.0"' "$INIT" | |
| 185 | +check "initialize carries the version" '"version":"1.0.2"' "$INIT" | |
| 185 | 186 | check "initialize advertises tools" '"tools"' "$INIT" |
| 186 | 187 | check "initialize names the node's local zone in instructions" 'Etc/UTC' "$INIT" |
| 187 | 188 | NR=$(mcp '{"jsonrpc":"2.0","method":"notifications/initialized"}') |
| 188 | 189 |
| index bc267cf..9bf2406 100644 | index bc267cf..9bf2406 100644 | ||
| --- a/README.md | --- a/README.md | ||
| +++ b/README.md | +++ b/README.md | ||
| @@ -69,7 +69,7 @@ BotCloud container: `/workspace/.scorpiox/plugins/plugin_time`. | @@ -69,7 +69,7 @@ BotCloud container: `/workspace/.scorpiox/plugins/plugin_time`. | ||
| 69 | 69 | ||
| 70 | | Mode | Trigger | Response | | 70 | | Mode | Trigger | Response | |
| 71 | |---|---|---| | 71 | |---|---|---| |
| 72 | -| Discovery | `--meta` or `SX_PLUGIN_META=1` | `{"name":"time","desc":"World time MCP","kind":"mcp","mcp":true,"daemon":false,"menus":false,"verified":"live","category":"utilities","version":"1.0.0"}` (unauthenticated) | | 72 | +| Discovery | `--meta` or `SX_PLUGIN_META=1` | `{"name":"time","desc":"World time MCP","kind":"mcp","mcp":true,"daemon":false,"menus":false,"verified":"live","category":"utilities","version":"1.0.2"}` (unauthenticated) | |
| 73 | | **MCP tool provider** | `--mcp` | newline-delimited **JSON-RPC 2.0 over stdio** — `initialize`, `tools/list`, `tools/call`, `ping` | | 73 | | **MCP tool provider** | `--mcp` | newline-delimited **JSON-RPC 2.0 over stdio** — `initialize`, `tools/list`, `tools/call`, `ping` | |
| 74 | | API | `?action=...`, `?format=json`, or any `POST` | `application/json; charset=utf-8` | | 74 | | API | `?action=...`, `?format=json`, or any `POST` | `application/json; charset=utf-8` | |
| 75 | | UI | plain `GET` (`?embed=1` aware) | the World Clock page, `text/html` | | 75 | | UI | plain `GET` (`?embed=1` aware) | the World Clock page, `text/html` | |
| index 4643bd2..7035f91 100644 | index 4643bd2..7035f91 100644 | ||
| --- a/plugin.json | --- a/plugin.json | ||
| +++ b/plugin.json | +++ b/plugin.json | ||
| @@ -1,6 +1,7 @@ | @@ -1,6 +1,7 @@ | ||
| 1 | { | 1 | { |
| 2 | "slug": "time", | 2 | "slug": "time", |
| 3 | "id": "plugin_time", | 3 | "id": "plugin_time", |
| 4 | + "version": "1.0.2", | ||
| 4 | "name": "time", | 5 | "name": "time", |
| 5 | "desc": "World time MCP", | 6 | "desc": "World time MCP", |
| 6 | "title": "World Time & Timezone Converter (MCP)", | 7 | "title": "World Time & Timezone Converter (MCP)", |
| index 0aba4dd..c06878d 100644 | index 0aba4dd..c06878d 100644 | ||
| --- a/src/plugintime.h | --- a/src/plugintime.h | ||
| +++ b/src/plugintime.h | +++ b/src/plugintime.h | ||
| @@ -25,7 +25,7 @@ | @@ -25,7 +25,7 @@ | ||
| 25 | 25 | ||
| 26 | #define PLUGIN_SLUG "time" | 26 | #define PLUGIN_SLUG "time" |
| 27 | #define PLUGIN_ID "plugin_time" | 27 | #define PLUGIN_ID "plugin_time" |
| 28 | -#define PLUGIN_VER "1.0.0" | 28 | +#define PLUGIN_VER "1.0.2" |
| 29 | #define PLUGIN_NAME "time" | 29 | #define PLUGIN_NAME "time" |
| 30 | #define PLUGIN_DESC "World time MCP" | 30 | #define PLUGIN_DESC "World time MCP" |
| 31 | 31 |
| index 5728eeb..75818f2 100755 | index 5728eeb..75818f2 100755 | ||
| --- a/tests/run.sh | --- a/tests/run.sh | ||
| +++ b/tests/run.sh | +++ b/tests/run.sh | ||
| @@ -139,7 +139,7 @@ json_ok "--meta daemon is false" "$M" "d['daemon'] is False" | @@ -139,7 +139,7 @@ json_ok "--meta daemon is false" "$M" "d['daemon'] is False" | ||
| 139 | json_ok "--meta menus is false (connectors must not flood the dropdowns)" "$M" "d['menus'] is False" | 139 | json_ok "--meta menus is false (connectors must not flood the dropdowns)" "$M" "d['menus'] is False" |
| 140 | json_ok "--meta verified is live" "$M" "d['verified']=='live'" | 140 | json_ok "--meta verified is live" "$M" "d['verified']=='live'" |
| 141 | json_ok "--meta category is utilities" "$M" "d['category']=='utilities'" | 141 | json_ok "--meta category is utilities" "$M" "d['category']=='utilities'" |
| 142 | -json_ok "--meta version is 1.0.0" "$M" "d['version']=='1.0.0'" | 142 | +json_ok "--meta version is 1.0.2" "$M" "d['version']=='1.0.2'" |
| 143 | json_ok "--meta name is 1-2 words" "$M" "len(d['name'].split())<=2" | 143 | json_ok "--meta name is 1-2 words" "$M" "len(d['name'].split())<=2" |
| 144 | json_ok "--meta desc is at most 15 chars" "$M" "len(d['desc'])<=15" | 144 | json_ok "--meta desc is at most 15 chars" "$M" "len(d['desc'])<=15" |
| 145 | M2=$(body "$(SX_PLUGIN_META=1 $BIN)") | 145 | M2=$(body "$(SX_PLUGIN_META=1 $BIN)") |
| @@ -147,7 +147,8 @@ check "SX_PLUGIN_META env var works" '"name":"time"' "$M2" | @@ -147,7 +147,8 @@ check "SX_PLUGIN_META env var works" '"name":"time"' "$M2" | ||
| 147 | check_not "--meta emits no HTML" '<html' "$M" | 147 | check_not "--meta emits no HTML" '<html' "$M" |
| 148 | V=$(body "$($BIN --version)") | 148 | V=$(body "$($BIN --version)") |
| 149 | check "--version names the binary" 'plugin_time' "$V" | 149 | check "--version names the binary" 'plugin_time' "$V" |
| 150 | -check "--version names the version" '1.0.0' "$V" | 150 | +check "--version names the version" '1.0.2' "$V" |
| 151 | +check "--version matches plugin.json" "\"version\": \"$($BIN --version | awk '{print $2}')\"" "$(cat plugin.json)" | ||
| 151 | H=$(body "$($BIN --help)") | 152 | H=$(body "$($BIN --help)") |
| 152 | check "--help lists --mcp" '--mcp' "$H" | 153 | check "--help lists --mcp" '--mcp' "$H" |
| 153 | check "--help lists convert_time" 'convert_time' "$H" | 154 | check "--help lists convert_time" 'convert_time' "$H" |
| @@ -181,7 +182,7 @@ section "mode 2b - MCP JSON-RPC handshake" | @@ -181,7 +182,7 @@ section "mode 2b - MCP JSON-RPC handshake" | ||
| 181 | INIT=$(mcp '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"t","version":"1"}}}' | head -1) | 182 | INIT=$(mcp '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"t","version":"1"}}}' | head -1) |
| 182 | check "initialize answers with a protocolVersion" '"protocolVersion":"2025-06-18"' "$INIT" | 183 | check "initialize answers with a protocolVersion" '"protocolVersion":"2025-06-18"' "$INIT" |
| 183 | check "initialize names the server" '"name":"time-server"' "$INIT" | 184 | check "initialize names the server" '"name":"time-server"' "$INIT" |
| 184 | -check "initialize carries the version" '"version":"1.0.0"' "$INIT" | 185 | +check "initialize carries the version" '"version":"1.0.2"' "$INIT" |
| 185 | check "initialize advertises tools" '"tools"' "$INIT" | 186 | check "initialize advertises tools" '"tools"' "$INIT" |
| 186 | check "initialize names the node's local zone in instructions" 'Etc/UTC' "$INIT" | 187 | check "initialize names the node's local zone in instructions" 'Etc/UTC' "$INIT" |
| 187 | NR=$(mcp '{"jsonrpc":"2.0","method":"notifications/initialized"}') | 188 | NR=$(mcp '{"jsonrpc":"2.0","method":"notifications/initialized"}') |
| 188 | 189 |