feat: add WebMCP skill — AI agent tool protocol for IC canisters#147
Draft
dfinityianblenke wants to merge 2 commits intomainfrom
Draft
feat: add WebMCP skill — AI agent tool protocol for IC canisters#147dfinityianblenke wants to merge 2 commits intomainfrom
dfinityianblenke wants to merge 2 commits intomainfrom
Conversation
Skill Validation ReportValidating skill: /home/runner/work/icskills/icskills/skills/webmcpStructure
Frontmatter
Markdown
Tokens
Content Analysis
Contamination Analysis
Result: passed Project Checks |
Adds a new skill covering the full WebMCP stack: - Candid-to-JSON-Schema codegen via ic-webmcp-codegen - Browser tool registration via navigator.modelContext - dfx.json webmcp config section - CORS headers via .ic-assets.json5 - Internet Identity scoped delegation for agents - Polyfill with OpenAI/Anthropic/LangChain adapters - 10 common pitfalls Evaluation: 4 output evals (add to canister, auth tools, polyfill, manifest gen) + 8 should-trigger / 6 should-not-trigger queries. This is related to the ic repo PR dfinity/ic#9708
fe8519a to
7154e1f
Compare
Address team feedback (Marco Walz): - Prerequisites: @icp-sdk/core >= 5.0.0 instead of @dfinity/agent/candid/principal - Auth: @icp-sdk/auth instead of @dfinity/auth-client - Added pitfall #11: using deprecated @dfinity/* packages - Step 1: notes icp.yaml compatibility is planned, dfx.json used for now - Step 4: AuthClient import from @icp-sdk/auth - Pipeline diagram: references icp.yaml alongside dfx.json - Verification: uses icp deploy - Evaluation: added expected behavior for @icp-sdk/auth Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new WebMCP skill that teaches AI agents how to expose IC canister methods as callable tools via the Web Model Context Protocol (W3C, Chrome 146+).
This complements dfinity/ic#9708 which implements the WebMCP stack in the IC repo.
Skill covers:
dfx.jsonwebmcpconfig section (all fields documented)ic-webmcp-codegenCLI (bothdidanddfxsubcommands).ic-assets.json5navigator.modelContext+@dfinity/webmcp)Evaluation:
Files:
skills/webmcp/SKILL.md(291 lines, under 500 limit)evaluations/webmcp.jsonThis is related to the ic repo PR !9708: dfinity/ic#9708