diff --git "a/2025/mcp-dev-summit-may/presentation.html" "b/2025/mcp-dev-summit-may/presentation.html" new file mode 100644--- /dev/null +++ "b/2025/mcp-dev-summit-may/presentation.html" @@ -0,0 +1,382 @@ +
"Concise Scenario" + +MCP Server (HF Search), 4 tools + +"Interfere Scenario" + +MCP Server (HF Search), 4 tools +MCP Official Filesystem - 11 tools +MCP Official Github - 40 tools +
https://hf.co/papers/2505.06120
text/plain
User/Assistant
prompt-server
---USER +Can you refactor this code to follow best practices? + +---RESOURCE +poor_input.ts + +---ASSISTANT +Here's the refactored code: +- Changed let to const +- Added type annotations +- Used 2-space indentation +- Added explicit return type + +const userName = "John"; +function getUser(id: string): User { + return database.find(id); +} + +---USER +Can you refactor this code? + +---RESOURCE +legacy_code.ts +
weather://san-francisco/current +→ Updates every 10 minutes (trigger new generation)
weather://san-francisco/current
typescript://project/errors +→ Mutate context with current status feedback
typescript://project/errors
Completions help users find available resources for interactive use.
calendar://meetings/{date} +→ Fetch any day's meetings
calendar://meetings/{date}
github://issues/{repo}/{number} +→ Access any issue dynamically +
github://issues/{repo}/{number}
Sampling can summarise or pre-process upstream content optimize main conversation thread. +hub://papers/{number}/auto-summary
hub://papers/{number}/auto-summary
// HOME AUTOMATION +mcp://homeauto/sensors/list +mcp://sensor/temperature/living-room +mcp://sensor/motion/front-door +mcp://sensor/camera/mcp-webcam + +search://papers?topic=llm&limit=10 +
mcp-ui
ui://
this was looped in the original presentation
```typescript +interface Resource { + +---- Resource and EmbeddedResource + // What is it? + uri: "search://papers/quantum-2024/results" + + // How do I handle it? + mimeType: "application/json" + + // Who is it for? + audience?: ["assistant"] | ["user"] | ["user", "assistant"] + + +---- Resource Only + // How should I show it? + name: "2024 Quantum Theory.json" + + // How should I describe it to the Assistant? + description: "This is the JSON results associated with + the 2024 Quantum Theory Results" + +} +```