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
12 changes: 0 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,15 +235,3 @@ Join the [Askimo Discord](https://discord.gg/eXSBR4fNmm) for help, feedback, and
<img src="https://contrib.rocks/image?repo=askimo-ai/askimo" />
</a>

---

## Star History

<a href="https://www.star-history.com/?repos=askimo-ai%2Faskimo&type=date&legend=top-left">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/chart?repos=askimo-ai/askimo&type=date&theme=dark&legend=top-left" />
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/chart?repos=askimo-ai/askimo&type=date&legend=top-left" />
<img alt="Star History Chart" src="https://api.star-history.com/chart?repos=askimo-ai/askimo&type=date&legend=top-left" />
</picture>
</a>

6 changes: 3 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[versions]
graalvm-plugin = "0.11.5"
jline = "3.30.6"
langchain4j = "1.16.3"
langchain4j-extra = "1.16.3-beta26"
langchain4j-jvector = "1.16.0-beta26"
langchain4j = "1.17.1"
langchain4j-extra = "1.17.1-beta27"
langchain4j-jvector = "1.17.0-beta27"
commonmark = "0.28.0"
kotlinxSerializationJson = "1.10.0"
kotlinxCoroutines = "1.10.2"
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.0-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.6.0-bin.zip
networkTimeout=10000
retries=0
retryBackOffMs=500
Expand Down
4 changes: 2 additions & 2 deletions gradlew

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

4 changes: 2 additions & 2 deletions gradlew.bat

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

18 changes: 18 additions & 0 deletions shared/src/main/kotlin/io/askimo/core/mcp/McpInstanceService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,24 @@ class McpInstanceService(
}
}

/**
* Replaces the current set of ephemeral instances.
* Call this after fetching org-managed MCP servers from the team server.
* Invalidates the tools cache so the new instances are picked up on the next request.
*/
fun setEphemeralInstances(instances: List<McpInstance>) {
ephemeralInstances = instances
invalidateCache()
log.debug("Registered {} ephemeral MCP instances", instances.size)
}

/** Remove all ephemeral instances (e.g. on logout). */
fun clearEphemeralInstances() {
ephemeralInstances = emptyList()
invalidateCache()
log.debug("Cleared ephemeral MCP instances")
}

// ── Tool resolution ──────────────────────────────────────────────────────

private fun getEnabledInstances(): List<McpInstance> = getInstances().filter { it.enabled }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ abstract class OpenAiCompatibleChatModelFactory<T> : ChatModelFactory<T>
reasoningEffort(reasoningLevel.value)
}
}
.strictTools(true)
.listeners(listOf(listener))
.build()
}
Expand Down
Loading