This is an automated email from the ASF dual-hosted git repository.
epugh pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/solr-mcp.git
The following commit(s) were added to refs/heads/main by this push:
new 168a72e feat: enable virtual threads (#67)
168a72e is described below
commit 168a72ead601e46818e3d7887ab0cd9c748915a0
Author: Aditya Parikh <[email protected]>
AuthorDate: Tue Mar 24 14:11:22 2026 -0400
feat: enable virtual threads (#67)
Enable Java virtual threads globally via
spring.threads.virtual.enabled=true.
Virtual threads are lightweight and have negligible overhead for STDIO mode
while improving concurrency for HTTP mode where multiple MCP clients can
connect and each request blocks on Solr I/O.
Signed-off-by: Aditya Parikh <[email protected]>
Signed-off-by: adityamparikh <[email protected]>
---
src/main/resources/application.properties | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/main/resources/application.properties
b/src/main/resources/application.properties
index 4f4c226..1592a77 100644
--- a/src/main/resources/application.properties
+++ b/src/main/resources/application.properties
@@ -5,3 +5,5 @@ spring.ai.mcp.server.name=${spring.application.name}
spring.ai.mcp.server.version=1.0.0
# Solr configuration
solr.url=${SOLR_URL:http://localhost:8983/solr/}
+# Enable virtual threads for improved concurrency
+spring.threads.virtual.enabled=true