Buckets:
| import{s as ue,n as fe,o as $e}from"../chunks/scheduler.b8c17244.js";import{S as he,i as de,e as _,s as n,c as o,h as ge,a as Q,d as s,b as a,f as pe,g as i,j as ne,k as ce,l as ve,m as r,n as l,t as m,o as p,p as c}from"../chunks/index.d374165a.js";import{C as xe,H as E,E as Pe}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.200f62db.js";import{Q as R}from"../chunks/Question.b45f7d7c.js";function Ce(ae){let u,z,N,I,f,L,$,O,h,oe="Test your understanding of MCP architecture and core concepts. Choose the best answer for each question.",F,d,U,g,j,v,K,x,W,P,Y,C,B,T,G,b,J,M,D,y,V,w,X,S,ie="How did you do? If you got 4-5 questions correct, you have a solid grasp of MCP fundamentals. If you struggled, review “Key Concepts and Architecture” before moving to the next section.",Z,q,le="Key concepts to remember:",ee,H,me="<li><strong>MCP solves the M×N problem</strong> with universal server standard</li> <li><strong>Three roles</strong>: Host (agent location), Client (protocol handler), Server (capability provider)</li> <li><strong>Three capabilities</strong>: Tools (callable), Resources (data), Prompts (instructions)</li> <li><strong>Two transports</strong>: Stdio (local development), Streamable HTTP (remote/production)</li> <li><strong>Skills + MCP work together</strong> to teach and enable agent capabilities</li>",te,k,se,A,re;return f=new xe({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),$=new E({props:{title:"Quiz 1: MCP Fundamentals",local:"quiz-1-mcp-fundamentals",headingTag:"h1"}}),d=new E({props:{title:"Question 1: The M×N Integration Problem",local:"question-1-the-mn-integration-problem",headingTag:"h2"}}),g=new R({props:{choices:[{text:"Without MCP, you need M agents × N tools separate integrations",explain:"Correct! This is the integration complexity MCP solves. With MCP, you build N servers once, and any agent can use them.",correct:!0},{text:"Agents can only integrate with one tool at a time",explain:"Not the core issue. The M×N problem is about integration complexity across all agent-tool pairs.",correct:!1},{text:"MCP requires a different implementation for every agent",explain:"Opposite! MCP is universal—one server works with all MCP-compatible agents.",correct:!1},{text:"Modern APIs eliminate the need for MCP",explain:"APIs are part of the solution, but they don't standardize how agents discover and use capabilities. MCP does.",correct:!1}]}}),v=new E({props:{title:"Question 2: Hosts, Clients, and Servers",local:"question-2-hosts-clients-and-servers",headingTag:"h2"}}),x=new R({props:{choices:[{text:"Host runs the agent, Client requests capabilities, Server provides them",explain:"Perfect! The Host is the agent's environment (Claude Code, Codex, OpenCode). The Client is the protocol handler requesting from servers. The Server exposes capabilities.",correct:!0},{text:"Server runs the agent, Client provides data, Host makes requests",explain:"Incorrect roles. The Host runs the agent, not the Server.",correct:!1},{text:"Client runs the agent, Server requests capabilities, Host provides them",explain:"No. The Client requests, not the Server. The Host runs the agent.",correct:!1},{text:"All three are interchangeable roles",explain:"Each has a distinct responsibility. They're not interchangeable.",correct:!1}]}}),P=new E({props:{title:"Question 3: Tools vs. Resources vs. Prompts",local:"question-3-tools-vs-resources-vs-prompts",headingTag:"h2"}}),C=new R({props:{choices:[{text:"Tools: callable functions | Resources: read-only data | Prompts: instruction templates",explain:"Exactly! Tools perform actions or queries. Resources provide static data. Prompts guide agent behavior.",correct:!0},{text:"Tools: static data | Resources: callable functions | Prompts: configurations",explain:"Backwards. Tools are callable, Resources are data.",correct:!1},{text:"All three are the same capability type",explain:"No. Each serves a different purpose and has different characteristics.",correct:!1},{text:"Resources and Prompts don't exist in modern MCP",explain:"False. All three capability types are core MCP features.",correct:!1}]}}),T=new E({props:{title:"Question 4: MCP Transport Mechanisms",local:"question-4-mcp-transport-mechanisms",headingTag:"h2"}}),b=new R({props:{choices:[{text:"Stdio for local servers, Streamable HTTP for remote servers",explain:"Correct! Stdio uses subprocess communication (fast, simple, local). Streamable HTTP is the current standard for remote connections, replacing the older HTTP+SSE transport.",correct:!0},{text:"HTTP+SSE is the only remote transport option",explain:"HTTP+SSE is now deprecated. Streamable HTTP is the current standard remote transport in the MCP specification.",correct:!1},{text:"Always use Streamable HTTP—it's more powerful",explain:"Streamable HTTP has network overhead. Use stdio for local development, which is simpler and faster.",correct:!1},{text:"Transport is irrelevant; MCP hides it from agents",explain:"Transport matters for deployment and performance, though the JSON-RPC protocol is the same regardless of transport.",correct:!1}]}}),M=new E({props:{title:"Question 5: Skills vs. MCP",local:"question-5-skills-vs-mcp",headingTag:"h2"}}),y=new R({props:{choices:[{text:"Skills: static context. MCP: dynamic, real-time access to tools and data",explain:"Perfect! Skills are pre-written and bundled. MCP servers provide live access that changes without agent restart.",correct:!0},{text:"MCP is just a newer name for Skills",explain:"No. They're complementary but distinct. Skills teach how to think; MCP provides what to access.",correct:!1},{text:"MCP is only for APIs; Skills are for everything else",explain:"MCP covers tools, resources, and prompts. Skills are for context teaching.",correct:!1},{text:"You have to choose between Skills and MCP",explain:"You use both together. Skills provide knowledge; MCP provides tools.",correct:!1}]}}),w=new E({props:{title:"Summary",local:"summary",headingTag:"h2"}}),k=new Pe({props:{source:"https://github.com/huggingface/context-course/blob/main/units/en/unit2/quiz1.mdx"}}),{c(){u=_("meta"),z=n(),N=_("p"),I=n(),o(f.$$.fragment),L=n(),o($.$$.fragment),O=n(),h=_("p"),h.textContent=oe,F=n(),o(d.$$.fragment),U=n(),o(g.$$.fragment),j=n(),o(v.$$.fragment),K=n(),o(x.$$.fragment),W=n(),o(P.$$.fragment),Y=n(),o(C.$$.fragment),B=n(),o(T.$$.fragment),G=n(),o(b.$$.fragment),J=n(),o(M.$$.fragment),D=n(),o(y.$$.fragment),V=n(),o(w.$$.fragment),X=n(),S=_("p"),S.textContent=ie,Z=n(),q=_("p"),q.textContent=le,ee=n(),H=_("ul"),H.innerHTML=me,te=n(),o(k.$$.fragment),se=n(),A=_("p"),this.h()},l(e){const t=ge("svelte-u9bgzb",document.head);u=Q(t,"META",{name:!0,content:!0}),t.forEach(s),z=a(e),N=Q(e,"P",{}),pe(N).forEach(s),I=a(e),i(f.$$.fragment,e),L=a(e),i($.$$.fragment,e),O=a(e),h=Q(e,"P",{"data-svelte-h":!0}),ne(h)!=="svelte-1emh3li"&&(h.textContent=oe),F=a(e),i(d.$$.fragment,e),U=a(e),i(g.$$.fragment,e),j=a(e),i(v.$$.fragment,e),K=a(e),i(x.$$.fragment,e),W=a(e),i(P.$$.fragment,e),Y=a(e),i(C.$$.fragment,e),B=a(e),i(T.$$.fragment,e),G=a(e),i(b.$$.fragment,e),J=a(e),i(M.$$.fragment,e),D=a(e),i(y.$$.fragment,e),V=a(e),i(w.$$.fragment,e),X=a(e),S=Q(e,"P",{"data-svelte-h":!0}),ne(S)!=="svelte-sfcb7d"&&(S.textContent=ie),Z=a(e),q=Q(e,"P",{"data-svelte-h":!0}),ne(q)!=="svelte-11w86c2"&&(q.textContent=le),ee=a(e),H=Q(e,"UL",{"data-svelte-h":!0}),ne(H)!=="svelte-is851"&&(H.innerHTML=me),te=a(e),i(k.$$.fragment,e),se=a(e),A=Q(e,"P",{}),pe(A).forEach(s),this.h()},h(){ce(u,"name","hf:doc:metadata"),ce(u,"content",Te)},m(e,t){ve(document.head,u),r(e,z,t),r(e,N,t),r(e,I,t),l(f,e,t),r(e,L,t),l($,e,t),r(e,O,t),r(e,h,t),r(e,F,t),l(d,e,t),r(e,U,t),l(g,e,t),r(e,j,t),l(v,e,t),r(e,K,t),l(x,e,t),r(e,W,t),l(P,e,t),r(e,Y,t),l(C,e,t),r(e,B,t),l(T,e,t),r(e,G,t),l(b,e,t),r(e,J,t),l(M,e,t),r(e,D,t),l(y,e,t),r(e,V,t),l(w,e,t),r(e,X,t),r(e,S,t),r(e,Z,t),r(e,q,t),r(e,ee,t),r(e,H,t),r(e,te,t),l(k,e,t),r(e,se,t),r(e,A,t),re=!0},p:fe,i(e){re||(m(f.$$.fragment,e),m($.$$.fragment,e),m(d.$$.fragment,e),m(g.$$.fragment,e),m(v.$$.fragment,e),m(x.$$.fragment,e),m(P.$$.fragment,e),m(C.$$.fragment,e),m(T.$$.fragment,e),m(b.$$.fragment,e),m(M.$$.fragment,e),m(y.$$.fragment,e),m(w.$$.fragment,e),m(k.$$.fragment,e),re=!0)},o(e){p(f.$$.fragment,e),p($.$$.fragment,e),p(d.$$.fragment,e),p(g.$$.fragment,e),p(v.$$.fragment,e),p(x.$$.fragment,e),p(P.$$.fragment,e),p(C.$$.fragment,e),p(T.$$.fragment,e),p(b.$$.fragment,e),p(M.$$.fragment,e),p(y.$$.fragment,e),p(w.$$.fragment,e),p(k.$$.fragment,e),re=!1},d(e){e&&(s(z),s(N),s(I),s(L),s(O),s(h),s(F),s(U),s(j),s(K),s(W),s(Y),s(B),s(G),s(J),s(D),s(V),s(X),s(S),s(Z),s(q),s(ee),s(H),s(te),s(se),s(A)),s(u),c(f,e),c($,e),c(d,e),c(g,e),c(v,e),c(x,e),c(P,e),c(C,e),c(T,e),c(b,e),c(M,e),c(y,e),c(w,e),c(k,e)}}}const Te='{"title":"Quiz 1: MCP Fundamentals","local":"quiz-1-mcp-fundamentals","sections":[{"title":"Question 1: The M×N Integration Problem","local":"question-1-the-mn-integration-problem","sections":[],"depth":2},{"title":"Question 2: Hosts, Clients, and Servers","local":"question-2-hosts-clients-and-servers","sections":[],"depth":2},{"title":"Question 3: Tools vs. Resources vs. Prompts","local":"question-3-tools-vs-resources-vs-prompts","sections":[],"depth":2},{"title":"Question 4: MCP Transport Mechanisms","local":"question-4-mcp-transport-mechanisms","sections":[],"depth":2},{"title":"Question 5: Skills vs. MCP","local":"question-5-skills-vs-mcp","sections":[],"depth":2},{"title":"Summary","local":"summary","sections":[],"depth":2}],"depth":1}';function be(ae){return $e(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class qe extends he{constructor(u){super(),de(this,u,be,Ce,ue,{})}}export{qe as component}; | |
Xet Storage Details
- Size:
- 9.74 kB
- Xet hash:
- 6aea9be49ac1ad812bfcbd978cf7fc20d90e99349bc130d1f6e87514029257a1
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.