feat: add agent readiness discovery files and WebMCP support - #190
Conversation
- Create .well-known/ agent-discovery files (MCP, A2A, Agent Skills, API catalog) - Add auth.md for agent authentication documentation - Add Link header pointing to sitemap.xml in _headers - Register WebMCP tool via navigator.modelContext.registerTool() - Enable 8 of 9 isitagentready.com checks to pass
✅ Deploy Preview for dev-bayanflow ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthroughThe PR adds a WebMCP tool registration on the main page and introduces several public ChangesAI discovery and public metadata
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Preview for Bayan Flow Staging ready!
Preview alias |
There was a problem hiding this comment.
Actionable comments posted: 4
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@index.html`:
- Around line 177-225: The `category` field declared in `inputSchema` is
currently ignored by `execute`, so the tool contract does not match behavior.
Update the `execute` function to accept the provided arguments and use the
`category` value to filter the returned catalog data in the Bayan Flow tool, or
remove `category` from `inputSchema` if filtering is not intended. Make sure the
fix is applied in the same tool definition where `inputSchema` and `execute` are
defined.
In `@public/.well-known/agent-skills/index.json`:
- Around line 8-27: The skill index is advertising tool entries that are not
actually implemented, so update the agent-skills manifest to only list real
callable tools. In the index.json entry for bayan-flow and complexity-analysis,
either remove browse_categories, view_algorithm, and view_complexity or add
matching registrations in the code that serves these skills, and keep only
symbols that are exposed by index.html/bayan_flow_info. If these are meant to be
navigation links, reword them as non-tool affordances instead of tools.
In `@public/.well-known/api-catalog`:
- Around line 1-5: The /.well-known/api-catalog asset is being served through
the SPA fallback, so it returns the homepage HTML instead of JSON. Update the
app’s static hosting/fallback handling so this path is excluded from the HTML
fallback and is served directly from the existing api-catalog asset with
application/json content type; use the api-catalog route/static-file
configuration to locate the fix.
In `@public/.well-known/mcp.json`:
- Around line 6-20: The MCP manifest and registered tools are out of sync: the
manifest under the capabilities/tools section advertises
get_algorithm_categories, get_algorithm_info, and search_algorithms, but the
actual page only exposes bayan_flow_info. Update the manifest to match the tool
registration in the MCP setup so the advertised tool names correspond exactly to
the tools returned by the server, using the existing tool registration and
manifest generation points as the source of truth.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: 9949be0f-315f-4edc-ada0-e94b29257df7
📒 Files selected for processing (7)
index.htmlpublic/.well-known/agent-card.jsonpublic/.well-known/agent-skills/index.jsonpublic/.well-known/api-catalogpublic/.well-known/mcp.jsonpublic/_headerspublic/auth.md
- Make execute() accept category arg and filter catalog data accordingly - Remove phantom tool entries from agent-skills manifest - Add Content-Type: application/json override for api-catalog in _headers - Sync MCP manifest tool list with sole bayan_flow_info tool
Description
Add AI agent readiness infrastructure following isitagentready.com standards. New agent-discovery files, WebMCP tool registration, and Link headers help AI agents discover and interact with Bayan Flow's algorithm catalog.
Type of Change
Changes Made
Testing
Code Quality
Performance Impact
Breaking Changes
Summary by CodeRabbit