Skip to content

Commit 601bc1e

Browse files
committed
feat: upgrade to pulseengine-mcp v0.11.0 and bump version to 0.4.0
- Upgrade pulseengine-mcp framework from v0.10.0 to v0.11.0 - Add schemars dependency with JsonSchema derives for enhanced schema validation - Update pulseengine-mcp-auth to v0.11.0 - Bump version from 0.3.0 to 0.4.0 across all manifests - Add JsonSchema trait to TimeInfo, TimezoneInfo, and TimeFormatInfo structs
1 parent d3ea2ec commit 601bc1e

File tree

4 files changed

+15
-12
lines changed

4 files changed

+15
-12
lines changed

Cargo.toml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ anyhow = "1.0"
1616
thiserror = "1.0"
1717
clap = { version = "4.0", features = ["derive"] }
1818
async-trait = "0.1"
19-
# Use published framework version 0.10.0 with parameterized resource support
20-
pulseengine-mcp-server = { version = "0.10.0", features = ["stdio-logging"] }
21-
pulseengine-mcp-macros = "0.10.0"
22-
pulseengine-mcp-protocol = "0.10.0"
23-
pulseengine-mcp-transport = "0.10.0"
19+
schemars = { version = "1.0", features = ["chrono04"] }
20+
# Use published framework version 0.11.0
21+
pulseengine-mcp-server = { version = "0.11.0", features = ["stdio-logging"] }
22+
pulseengine-mcp-macros = "0.11.0"
23+
pulseengine-mcp-protocol = "0.11.0"
24+
pulseengine-mcp-transport = "0.11.0"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pulseengine/timedate-mcp-server",
3-
"version": "0.1.0",
3+
"version": "0.4.0",
44
"description": "A Model Context Protocol server for time and date operations with timezone support",
55
"keywords": [
66
"mcp",

timedate-mcp-server/Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "timedate-mcp-server"
3-
version = "0.3.0"
3+
version = "0.4.0"
44
edition = "2021"
55
description = "A Model Context Protocol server for time and date operations with timezone support"
66
license = "MIT"
@@ -28,11 +28,12 @@ anyhow = { workspace = true }
2828
thiserror = { workspace = true }
2929
clap = { workspace = true }
3030
async-trait = { workspace = true }
31+
schemars = { workspace = true }
3132
pulseengine-mcp-server = { workspace = true, features = ["stdio-logging"] }
3233
pulseengine-mcp-macros = { workspace = true }
3334
pulseengine-mcp-protocol = { workspace = true }
3435
pulseengine-mcp-transport = { workspace = true }
35-
pulseengine-mcp-auth = { version = "0.10.0", optional = true }
36+
pulseengine-mcp-auth = { version = "0.11.0", optional = true }
3637
# Required for parameterized resource routing
3738
matchit = "0.8"
3839

timedate-mcp-server/src/lib.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
use chrono::{DateTime, Local, TimeZone, Utc};
44
use chrono_tz::{Tz, TZ_VARIANTS};
55
use pulseengine_mcp_macros::{mcp_server, mcp_tools, mcp_resource};
6+
use schemars::JsonSchema;
67
use serde::{Deserialize, Serialize};
78
use std::str::FromStr;
89

9-
#[derive(Debug, Serialize, Deserialize)]
10+
#[derive(Debug, Serialize, Deserialize, JsonSchema)]
1011
pub struct TimeInfo {
1112
pub timestamp: String,
1213
pub timezone: String,
@@ -16,15 +17,15 @@ pub struct TimeInfo {
1617
pub format_24h: String,
1718
}
1819

19-
#[derive(Debug, Serialize, Deserialize)]
20+
#[derive(Debug, Serialize, Deserialize, JsonSchema)]
2021
pub struct TimezoneInfo {
2122
pub name: String,
2223
pub current_time: String,
2324
pub utc_offset: String,
2425
pub is_dst: bool,
2526
}
2627

27-
#[derive(Debug, Serialize, Deserialize)]
28+
#[derive(Debug, Serialize, Deserialize, JsonSchema)]
2829
pub struct TimeFormatInfo {
2930
pub detected_format: String,
3031
pub is_12_hour: bool,
@@ -35,7 +36,7 @@ pub struct TimeFormatInfo {
3536
/// TimeDate MCP Server - Time and Date Operations with Timezone Support
3637
#[mcp_server(
3738
name = "TimeDate MCP Server",
38-
version = "0.3.0",
39+
version = "0.4.0",
3940
description = "A Model Context Protocol server for time and date operations with timezone support with parameterized resources",
4041
auth = "disabled"
4142
)]

0 commit comments

Comments
 (0)