| title | FAQ |
|---|---|
| weight | 60 |
| sidebar_order | 60 |
| toc | true |
| description | Answers to common questions about Tachyon: Java versions, frameworks, concurrency, deployment, and compatibility. |
Answers to the questions Java teams usually ask before adopting Tachyon. For a runnable server, start with the Quickstart.
Tachyon requires Java 21 or newer. Add dev.tachyonmcp:tachyon-core to get the Java API, Netty transport, Jackson 3 integration, and default JSON Schema validation.
No. Tachyon starts its own Netty-based Streamable HTTP server. You can run it as a standalone service or manage its start and close operations from your framework's application lifecycle.
Yes. Keep your application services in the framework container and inject them into Tachyon handlers. Tachyon doesn't require a servlet container or reactive types.
Tachyon negotiates MCP 2025-11-25 and 2026-07-28 and passes the official conformance suites for both. It serves MCP over Streamable HTTP; HTTP/2 transports aren't currently supported.
Yes. Synchronous handlers run on virtual threads, away from the Netty event loop. You can call blocking database drivers and HTTP clients without introducing a reactive pipeline.
Use registerAsync when your dependency already returns a
CompletionStage. For ordinary blocking Java code, use the synchronous API and let Tachyon run it on a virtual thread. See Tools.
No. JsonDocument, JsonObject, JsonArray, and JsonSchema provide a neutral API. Tachyon uses Jackson 3 by default, supports kotlinx.serialization through tachyon-kotlin, and lets you supply a custom PayloadSerde. See JSON and JSON Schema.
Attach JSON Schema to a tool descriptor. Tachyon validates input and structured output, using JSON Schema 2020-12 when the schema doesn't declare another dialect. You can replace or disable either validator through JSON configuration.
Generate input and output schemas from Kotlin model classes instead of maintaining JSON strings. The kt-schema integration guide shows the complete request and structured response path from the runnable Weather MCP Kotlin example.
Return ToolResult.error(message) for an expected tool-level failure. Reserve thrown exceptions for unexpected failures that the server should map to a JSON-RPC error. See
returning tool results.
Yes, by default. Stateless mode avoids server-side session affinity and is the simplest option for horizontal scaling.
Enable sessions when you need resumable SSE streams, Last-Event-ID replay, or session-scoped state. Live sessions stay in-process, so clustered deployments need sticky routing while a session is active. Durable SessionStore and SessionEventStore implementations enable restart recovery, not distributed live-session ownership. See
session configuration.
Send progress notifications or SSE comments so the response becomes a live SSE stream, then set the heartbeat interval below any proxy or load-balancer idle timeout. See keep-alive for long-running tools.
Yes. close() stops accepting connections, rejects new requests with 503, and waits for admitted requests to finish for up to shutdownGracePeriod, five seconds by default. When that period ends, Tachyon interrupts the threads that run synchronous handlers. Interruption is cooperative: a handler that ignores it keeps running, and work Tachyon doesn't own, such as a CompletionStage on your own executor or an external workflow, isn't cancelled. Set shutdownGracePeriod to fit your platform's termination window. See Runtime.
Configure port 0; the operating system assigns a free port. Exercise the running server through an MCP client for end-to-end coverage, or follow the curl flow in the Quickstart.
Tachyon keeps function and descriptor APIs separate from its internal protocol mappers. A new wire version normally changes the mapper rather than your tool, resource, prompt, or completion function.
Yes. The tachyon-kotlin module adds a coroutine-first DSL and kotlinx.serialization integration over the Java API. See the Kotlin DSL guide.
Build the Quickstart, then choose the guide for tools, resources, tasks, or extensions.