Skip to content

Commit 78ae4d7

Browse files
authored
Merge pull request #80 from webmachinelearning/cherry-picks
Cherry pick two prior commits.
2 parents 464b3dd + e1439bb commit 78ae4d7

1 file changed

Lines changed: 77 additions & 1 deletion

File tree

index.bs

Lines changed: 77 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,66 @@ Indent: 2
1919
Die On: warning
2020
</pre>
2121

22+
<style>
23+
/* domintro and XXX from https://resources.whatwg.org/standard.css */
24+
.domintro {
25+
position: relative;
26+
color: green;
27+
background: #DDFFDD;
28+
margin: 2.5em 0 2em 0;
29+
padding: 1.5em 1em 0.5em 2em;
30+
}
31+
32+
.domintro dt, .domintro dt * {
33+
color: black;
34+
font-size: inherit;
35+
}
36+
.domintro dd {
37+
margin: 0.5em 0 1em 2em; padding: 0;
38+
}
39+
.domintro dd p {
40+
margin: 0.5em 0;
41+
}
42+
.domintro::before {
43+
content: 'For web developers (non-normative)';
44+
background: green;
45+
color: white;
46+
padding: 0.15em 0.25em;
47+
font-style: normal;
48+
position: absolute;
49+
top: -0.8em;
50+
left: -0.8em;
51+
}
52+
53+
.XXX {
54+
color: #D50606;
55+
background: white;
56+
border: solid #D50606;
57+
}
58+
59+
/* dl.props from https://resources.whatwg.org/standard.css */
60+
dl.props { display: grid; grid-template-columns: max-content auto; row-gap: 0.25em; column-gap: 1em; }
61+
dl.props > dt { grid-column-start: 1; margin: 0; }
62+
dl.props > dd { grid-column-start: 2; margin: 0; }
63+
p + dl.props { margin-top: -0.5em; }
64+
65+
/* Put nice boxes around each algorithm. */
66+
[data-algorithm]:not(.heading) {
67+
padding: .5em;
68+
border: thin solid #ddd; border-radius: .5em;
69+
margin: .5em calc(-0.5em - 1px);
70+
}
71+
[data-algorithm]:not(.heading) > :first-child {
72+
margin-top: 0;
73+
}
74+
[data-algorithm]:not(.heading) > :last-child {
75+
margin-bottom: 0;
76+
}
77+
[data-algorithm] [data-algorithm] {
78+
margin: 1em 0;
79+
}
80+
</style>
81+
2282
<h2 id="intro">Introduction</h2>
2383

2484
WebMCP API is a new JavaScript interface that allows web developers to expose their web application functionality as “tools” - JavaScript functions with natural language descriptions and structured schemas that can be invoked by [=agents=], [=browser's agents=], and [=assistive technologies=]. Web pages that use WebMCP can be thought of as Model Context Protocol [[!MCP]] servers that implement tools in client-side script instead of on the backend. WebMCP enables collaborative workflows where users and agents work together within the same web interface, leveraging existing application logic while maintaining shared context and user control.
@@ -70,4 +130,20 @@ interface ModelContextContainer {
70130
"publisher": "The Linux Foundation"
71131
}
72132
}
73-
</pre>
133+
</pre>
134+
135+
<h2 id="acknowledgements">Acknowledgements</h2>
136+
137+
Thanks to
138+
Brandon Walderman,
139+
Leo Lee,
140+
Andrew Nolan,
141+
David Bokan,
142+
Khushal Sagar,
143+
Hannah Van Opstal,
144+
Sushanth Rajasankar
145+
for the initial explainer, proposals and discussions that established the foundation for this specification.
146+
147+
Also many thanks to Alex Nahas and Jason McGhee for sharing early implementation experience.
148+
149+
Finally, thanks to the participants of the Web Machine Learning Community Group for feedback and suggestions.

0 commit comments

Comments
 (0)