Expect a package to pass the official MCP conformance suite
Source:R/expect_conformance.R
expect_conformance.RdServes the package over HTTP in a separate R process and runs scenarios
of the official MCP conformance suite against it, through npx, which
needs Node.js. The default scenarios need no tool of the package; the
others call tools, resources and prompts with the names of the suite.
Not supported on Windows yet.
Usage
expect_conformance(
scenarios = c("server-initialize", "server-session-lifecycle", "ping",
"logging-set-level", "tools-list", "resources-list", "prompts-list",
"dns-rebinding-protection", "server-sse-multiple-streams", "caching",
"http-header-validation", "sep-2164-resource-not-found"),
package = testthat::testing_package(),
version = "0.2.0-alpha.12",
timeout = 60
)