fix(mcp): admit composed analysis through result bookkeeping

This commit is contained in:
morluto
2026-10-10 00:35:17 +08:00
parent e64678e8f9
commit e11f4d371a
80 changed files with 774 additions and 471 deletions
@@ -60,10 +60,12 @@ const boot = async (factories: OptionalObservationFactories) => {
await run({
env: {},
loadOptionalProviders: async () => loaded,
createServer: (analysis, selectedSession, options) => {
session = selectedSession;
createServer: (source, options) => {
if (source.kind !== "session")
throw new Error("Expected a session-owned server source");
session = source.session;
// A configured policy cannot hide an actual adapter loading failure.
return createServer(analysis, selectedSession, {
return createServer(source, {
...options,
availabilityPolicy: () => ({
processCaptureEnabled: true,