Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ members = [
resolver = "2"

[workspace.package]
version = "3.29.0"
version = "3.30.0"
edition = "2024"
license-file = "LICENSE"
authors = ["PureTensor, Inc. <hal@puretensor.ai>"]
Expand Down Expand Up @@ -48,16 +48,16 @@ reqwest = { version = "0.12", features = ["json", "rustls-tls"], default-feature
axum = "0.8"
tower-http = { version = "0.6", features = ["trace", "cors"] }
base64 = "0.22"
rmcp = { version = "3.2.0", features = ["server", "macros", "schemars", "transport-streamable-http-server", "transport-streamable-http-server-session", "transport-io", "tower"] }
rmcp = { version = "3.3.0", features = ["server", "macros", "schemars", "transport-streamable-http-server", "transport-streamable-http-server-session", "transport-io", "tower"] }
futures-util = { version = "0.3", default-features = false }

# Internal crates
ptask-core = { path = "crates/ptask-core", version = "3.29.0" }
ptask-tui = { path = "crates/ptask-tui", version = "3.29.0" }
ptask-server = { path = "crates/ptask-server", version = "3.29.0" }
ptask-bot = { path = "crates/ptask-bot", version = "3.29.0" }
ptask-distill = { path = "crates/ptask-distill", version = "3.29.0" }
ptask-notify = { path = "crates/ptask-notify", version = "3.29.0" }
ptask-core = { path = "crates/ptask-core", version = "3.30.0" }
ptask-tui = { path = "crates/ptask-tui", version = "3.30.0" }
ptask-server = { path = "crates/ptask-server", version = "3.30.0" }
ptask-bot = { path = "crates/ptask-bot", version = "3.30.0" }
ptask-distill = { path = "crates/ptask-distill", version = "3.30.0" }
ptask-notify = { path = "crates/ptask-notify", version = "3.30.0" }

# HMAC for outbound webhook signing (v0.3.5).
sha2 = "0.10"
Expand Down
30 changes: 30 additions & 0 deletions crates/ptask-server/src/mcp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,36 @@ pub async fn serve_stdio(db: Db, actor: String) -> anyhow::Result<()> {
mod tests {
use super::*;

#[test]
fn negotiate_initialize_advertises_tools_on_a_supported_protocol() {
// rmcp 3.3.0 (2026-09-10) extracted protocol-version negotiation out of
// the default initialize body into ServerHandler::negotiate_initialize
// so a server that overrides initialize does not have to restate the
// rule (modelcontextprotocol/rust-sdk#1247). pTask uses the default
// initialize; this call is the new path that handshake now takes.
let dir = tempfile::tempdir().unwrap();
let db = Db::open(dir.path().join("mcp.db")).unwrap();
let mcp = PtaskMcp::new(db, "test-agent".into());
let request = InitializeRequestParams::new(
ClientCapabilities::default(),
Implementation::from_build_env(),
);
let result = mcp
.negotiate_initialize(&request)
.expect("negotiate_initialize");
assert!(
result.capabilities.tools.is_some(),
"pTask is a tools server; initialize must advertise tools"
);
let supported = mcp.supported_protocol_versions();
assert!(
supported.contains(&result.protocol_version),
"negotiated {:?} is not in supported {:?}",
result.protocol_version,
supported
);
}

#[tokio::test]
async fn task_add_rejects_invalid_provenance_before_creating() {
let dir = tempfile::tempdir().unwrap();
Expand Down
4 changes: 2 additions & 2 deletions docs/gen/pt.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.TH pt 1 "pt 3.29.0"
.TH pt 1 "pt 3.30.0"
.SH NAME
pt \- Sovereign task manager for PureTensor
.SH SYNOPSIS
Expand Down Expand Up @@ -166,4 +166,4 @@ Generate shell completions (bash/zsh/fish) to stdout
pt\-help(1)
Print this message or the help of the given subcommand(s)
.SH VERSION
v3.29.0
v3.30.0
Loading