Skip to content

Commit 1bd6508

Browse files
committed
Merge branch 'main' into daniel/responses-message-phase
2 parents bfe459e + 9d6f410 commit 1bd6508

6 files changed

Lines changed: 158 additions & 37 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66

77
- Responses API (HTTP, SSE, WebSocket): optional `phase` response override (`commentary` | `final_answer`) on assistant message output items; validated on load (#531)
88

9+
### Fixed
10+
11+
- MCP `resources/read`: a resource whose content has neither `text` nor `blob` (including one added without content) now reads as `"text": ""` (#533)
12+
- MCP `resources/read`: the read uses the resource definition's `mimeType` when its content has none (#533)
13+
914
## [1.45.1] - 2026-10-11
1015

1116
### Changed

‎docs/index.html‎

Lines changed: 109 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1643,7 +1643,7 @@ <h1>
16431643
<p class="adopter-eyebrow fade-in">Teams building on aimock</p>
16441644
<!-- adoption-wall:start -->
16451645
<!-- Generated by scripts/update-adoption-wall.ts — do not edit by hand. -->
1646-
<div class="adopter-marquee fade-in" style="--marquee-duration: 84s">
1646+
<div class="adopter-marquee fade-in" style="--marquee-duration: 90s">
16471647
<div class="adopter-marquee-viewport">
16481648
<div class="adopter-marquee-row">
16491649
<div class="adopter-track">
@@ -1827,6 +1827,24 @@ <h1>
18271827
/>
18281828
<span class="adopter-name">Atomic Strata</span>
18291829
</a>
1830+
<a
1831+
class="adopter"
1832+
href="https://www.skybridge.tech"
1833+
data-repo="alpic-ai/skybridge"
1834+
target="_blank"
1835+
rel="noopener noreferrer"
1836+
>
1837+
<img
1838+
class="adopter-logo"
1839+
src="https://avatars.githubusercontent.com/u/206831205?s=128&amp;v=4"
1840+
alt=""
1841+
width="40"
1842+
height="40"
1843+
loading="lazy"
1844+
referrerpolicy="no-referrer"
1845+
/>
1846+
<span class="adopter-name">Skybridge</span>
1847+
</a>
18301848
<a
18311849
class="adopter"
18321850
href="https://www.zoocode.dev"
@@ -1937,75 +1955,75 @@ <h1>
19371955
</a>
19381956
<a
19391957
class="adopter"
1940-
href="https://supaterm.com"
1941-
data-repo="supabitapp/supaterm"
1958+
href="https://github.com/botiverse/oar"
1959+
data-repo="botiverse/oar"
19421960
target="_blank"
19431961
rel="noopener noreferrer"
19441962
>
19451963
<img
19461964
class="adopter-logo"
1947-
src="https://avatars.githubusercontent.com/u/255815177?s=128&amp;v=4"
1965+
src="https://avatars.githubusercontent.com/u/132640357?s=128&amp;v=4"
19481966
alt=""
19491967
width="40"
19501968
height="40"
19511969
loading="lazy"
19521970
referrerpolicy="no-referrer"
19531971
/>
1954-
<span class="adopter-name">Supaterm</span>
1972+
<span class="adopter-name">botiverse</span>
19551973
</a>
19561974
<a
19571975
class="adopter"
1958-
href="https://selene.engineer"
1959-
data-repo="tercumantanumut/selene"
1976+
href="https://supaterm.com"
1977+
data-repo="supabitapp/supaterm"
19601978
target="_blank"
19611979
rel="noopener noreferrer"
19621980
>
19631981
<img
19641982
class="adopter-logo"
1965-
src="https://avatars.githubusercontent.com/u/128206040?s=128&amp;v=4"
1983+
src="https://avatars.githubusercontent.com/u/255815177?s=128&amp;v=4"
19661984
alt=""
19671985
width="40"
19681986
height="40"
19691987
loading="lazy"
19701988
referrerpolicy="no-referrer"
19711989
/>
1972-
<span class="adopter-name">Selene</span>
1990+
<span class="adopter-name">Supaterm</span>
19731991
</a>
19741992
<a
19751993
class="adopter"
1976-
href="https://github.com/botiverse/oar"
1977-
data-repo="botiverse/oar"
1994+
href="https://flight-finder.org"
1995+
data-repo="affromero/flight-finder"
19781996
target="_blank"
19791997
rel="noopener noreferrer"
19801998
>
19811999
<img
19822000
class="adopter-logo"
1983-
src="https://avatars.githubusercontent.com/u/132640357?s=128&amp;v=4"
2001+
src="https://avatars.githubusercontent.com/u/9055917?s=128&amp;v=4"
19842002
alt=""
19852003
width="40"
19862004
height="40"
19872005
loading="lazy"
19882006
referrerpolicy="no-referrer"
19892007
/>
1990-
<span class="adopter-name">botiverse</span>
2008+
<span class="adopter-name">Flight Finder</span>
19912009
</a>
19922010
<a
19932011
class="adopter"
1994-
href="https://flight-finder.org"
1995-
data-repo="affromero/flight-finder"
2012+
href="https://selene.engineer"
2013+
data-repo="tercumantanumut/selene"
19962014
target="_blank"
19972015
rel="noopener noreferrer"
19982016
>
19992017
<img
20002018
class="adopter-logo"
2001-
src="https://avatars.githubusercontent.com/u/9055917?s=128&amp;v=4"
2019+
src="https://avatars.githubusercontent.com/u/128206040?s=128&amp;v=4"
20022020
alt=""
20032021
width="40"
20042022
height="40"
20052023
loading="lazy"
20062024
referrerpolicy="no-referrer"
20072025
/>
2008-
<span class="adopter-name">Flight Finder</span>
2026+
<span class="adopter-name">Selene</span>
20092027
</a>
20102028
<a
20112029
class="adopter"
@@ -2097,6 +2115,24 @@ <h1>
20972115
/>
20982116
<span class="adopter-name">Testomat.io</span>
20992117
</a>
2118+
<a
2119+
class="adopter"
2120+
href="https://covel.cc"
2121+
data-repo="ackness/covel"
2122+
target="_blank"
2123+
rel="noopener noreferrer"
2124+
>
2125+
<img
2126+
class="adopter-logo"
2127+
src="https://avatars.githubusercontent.com/u/19150500?s=128&amp;v=4"
2128+
alt=""
2129+
width="40"
2130+
height="40"
2131+
loading="lazy"
2132+
referrerpolicy="no-referrer"
2133+
/>
2134+
<span class="adopter-name">Covel</span>
2135+
</a>
21002136
<a
21012137
class="adopter"
21022138
href="https://www.emberai.xyz"
@@ -2371,6 +2407,26 @@ <h1>
23712407
/>
23722408
<span class="adopter-name">Atomic Strata</span>
23732409
</a>
2410+
<a
2411+
class="adopter"
2412+
href="https://www.skybridge.tech"
2413+
data-repo="alpic-ai/skybridge"
2414+
target="_blank"
2415+
rel="noopener noreferrer"
2416+
data-clone="true"
2417+
tabindex="-1"
2418+
>
2419+
<img
2420+
class="adopter-logo"
2421+
src="https://avatars.githubusercontent.com/u/206831205?s=128&amp;v=4"
2422+
alt=""
2423+
width="40"
2424+
height="40"
2425+
loading="lazy"
2426+
referrerpolicy="no-referrer"
2427+
/>
2428+
<span class="adopter-name">Skybridge</span>
2429+
</a>
23742430
<a
23752431
class="adopter"
23762432
href="https://www.zoocode.dev"
@@ -2493,83 +2549,83 @@ <h1>
24932549
</a>
24942550
<a
24952551
class="adopter"
2496-
href="https://supaterm.com"
2497-
data-repo="supabitapp/supaterm"
2552+
href="https://github.com/botiverse/oar"
2553+
data-repo="botiverse/oar"
24982554
target="_blank"
24992555
rel="noopener noreferrer"
25002556
data-clone="true"
25012557
tabindex="-1"
25022558
>
25032559
<img
25042560
class="adopter-logo"
2505-
src="https://avatars.githubusercontent.com/u/255815177?s=128&amp;v=4"
2561+
src="https://avatars.githubusercontent.com/u/132640357?s=128&amp;v=4"
25062562
alt=""
25072563
width="40"
25082564
height="40"
25092565
loading="lazy"
25102566
referrerpolicy="no-referrer"
25112567
/>
2512-
<span class="adopter-name">Supaterm</span>
2568+
<span class="adopter-name">botiverse</span>
25132569
</a>
25142570
<a
25152571
class="adopter"
2516-
href="https://selene.engineer"
2517-
data-repo="tercumantanumut/selene"
2572+
href="https://supaterm.com"
2573+
data-repo="supabitapp/supaterm"
25182574
target="_blank"
25192575
rel="noopener noreferrer"
25202576
data-clone="true"
25212577
tabindex="-1"
25222578
>
25232579
<img
25242580
class="adopter-logo"
2525-
src="https://avatars.githubusercontent.com/u/128206040?s=128&amp;v=4"
2581+
src="https://avatars.githubusercontent.com/u/255815177?s=128&amp;v=4"
25262582
alt=""
25272583
width="40"
25282584
height="40"
25292585
loading="lazy"
25302586
referrerpolicy="no-referrer"
25312587
/>
2532-
<span class="adopter-name">Selene</span>
2588+
<span class="adopter-name">Supaterm</span>
25332589
</a>
25342590
<a
25352591
class="adopter"
2536-
href="https://github.com/botiverse/oar"
2537-
data-repo="botiverse/oar"
2592+
href="https://flight-finder.org"
2593+
data-repo="affromero/flight-finder"
25382594
target="_blank"
25392595
rel="noopener noreferrer"
25402596
data-clone="true"
25412597
tabindex="-1"
25422598
>
25432599
<img
25442600
class="adopter-logo"
2545-
src="https://avatars.githubusercontent.com/u/132640357?s=128&amp;v=4"
2601+
src="https://avatars.githubusercontent.com/u/9055917?s=128&amp;v=4"
25462602
alt=""
25472603
width="40"
25482604
height="40"
25492605
loading="lazy"
25502606
referrerpolicy="no-referrer"
25512607
/>
2552-
<span class="adopter-name">botiverse</span>
2608+
<span class="adopter-name">Flight Finder</span>
25532609
</a>
25542610
<a
25552611
class="adopter"
2556-
href="https://flight-finder.org"
2557-
data-repo="affromero/flight-finder"
2612+
href="https://selene.engineer"
2613+
data-repo="tercumantanumut/selene"
25582614
target="_blank"
25592615
rel="noopener noreferrer"
25602616
data-clone="true"
25612617
tabindex="-1"
25622618
>
25632619
<img
25642620
class="adopter-logo"
2565-
src="https://avatars.githubusercontent.com/u/9055917?s=128&amp;v=4"
2621+
src="https://avatars.githubusercontent.com/u/128206040?s=128&amp;v=4"
25662622
alt=""
25672623
width="40"
25682624
height="40"
25692625
loading="lazy"
25702626
referrerpolicy="no-referrer"
25712627
/>
2572-
<span class="adopter-name">Flight Finder</span>
2628+
<span class="adopter-name">Selene</span>
25732629
</a>
25742630
<a
25752631
class="adopter"
@@ -2671,6 +2727,26 @@ <h1>
26712727
/>
26722728
<span class="adopter-name">Testomat.io</span>
26732729
</a>
2730+
<a
2731+
class="adopter"
2732+
href="https://covel.cc"
2733+
data-repo="ackness/covel"
2734+
target="_blank"
2735+
rel="noopener noreferrer"
2736+
data-clone="true"
2737+
tabindex="-1"
2738+
>
2739+
<img
2740+
class="adopter-logo"
2741+
src="https://avatars.githubusercontent.com/u/19150500?s=128&amp;v=4"
2742+
alt=""
2743+
width="40"
2744+
height="40"
2745+
loading="lazy"
2746+
referrerpolicy="no-referrer"
2747+
/>
2748+
<span class="adopter-name">Covel</span>
2749+
</a>
26742750
<a
26752751
class="adopter"
26762752
href="https://www.emberai.xyz"

‎docs/mcp-mock/index.html‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1359,6 +1359,12 @@ <h2>Resources</h2>
13591359
{ text: <span class="str">"# My Project\nWelcome!"</span> },
13601360
);</code></pre>
13611361
</div>
1362+
<p>
1363+
The content argument is optional. A resource whose content has neither
1364+
<code>text</code> nor <code>blob</code> (including one added without content) is read as
1365+
<code>"text": ""</code>. When the content has no <code>mimeType</code>, the read uses the
1366+
<code>mimeType</code> of the resource definition.
1367+
</p>
13621368

13631369
<h2>Prompts</h2>
13641370
<p>Register prompt templates with optional handlers:</p>

‎scripts/update-adoption-wall.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,8 @@ export const ADOPTER_DISPLAY: Record<string, AdopterDisplay> = {
355355
url: "https://agentskillexchange.com",
356356
},
357357
"affromero/flight-finder": { name: "Flight Finder", url: "https://flight-finder.org" },
358+
"alpic-ai/skybridge": { name: "Skybridge", url: "https://www.skybridge.tech" },
359+
"ackness/covel": { name: "Covel", url: "https://covel.cc" },
358360
};
359361

360362
/**

‎src/__tests__/mcp-mock.test.ts‎

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import * as http from "node:http";
33
import { MCPMock } from "../mcp-mock.js";
44
import { LLMock } from "../llmock.js";
55
import type { MCPContent } from "../mcp-types.js";
6+
import { ReadResourceResultSchema } from "@modelcontextprotocol/sdk/types.js";
67

78
// ---- HTTP Helpers ----
89

@@ -782,8 +783,33 @@ describe("MCPMock", () => {
782783
});
783784
const data = JSON.parse(res.body);
784785
expect(data.result.contents[0].uri).toBe("file:///empty");
785-
expect(data.result.contents[0].text).toBeUndefined();
786+
// MCP resource contents must carry text or blob, so no content reads as empty text.
787+
expect(data.result.contents[0].text).toBe("");
786788
expect(data.result.contents[0].blob).toBeUndefined();
789+
expect(ReadResourceResultSchema.safeParse(data.result).success).toBe(true);
790+
});
791+
792+
it("resources/read falls back to the definition's mimeType", async () => {
793+
mcp = new MCPMock();
794+
mcp.addResource({ uri: "file:///notes.md", name: "Notes", mimeType: "text/markdown" });
795+
mcp.addResource(
796+
{ uri: "file:///data.csv", name: "Data", mimeType: "text/csv" },
797+
{ text: "a,b" },
798+
);
799+
const url = await mcp.start();
800+
const sessionId = await initSession(url);
801+
802+
for (const [uri, mimeType] of [
803+
["file:///notes.md", "text/markdown"],
804+
["file:///data.csv", "text/csv"],
805+
]) {
806+
const res = await jsonRpc(url, "/", "resources/read", { uri }, 1, {
807+
"mcp-session-id": sessionId,
808+
});
809+
const data = JSON.parse(res.body);
810+
expect(data.result.contents[0].mimeType).toBe(mimeType);
811+
expect(ReadResourceResultSchema.safeParse(data.result).success).toBe(true);
812+
}
787813
});
788814
});
789815

0 commit comments

Comments
 (0)