-
Notifications
You must be signed in to change notification settings - Fork 10.1k
feat: elicit-me example #26453
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: production
Are you sure you want to change the base?
feat: elicit-me example #26453
Conversation
|
This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:
|
|
Updated with comprehensive API reference documentation: Changes AddedNew Documentation Page
Updated Existing Pages
Documentation ApproachFollowing the Diátaxis framework:
This provides clearer separation between simple usage (via |
b15104f to
7f0b4d1
Compare
|
|
||
| Update your `wrangler.jsonc` to configure Durable Objects: | ||
|
|
||
| ```jsonc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@whoiskatrin / @threepointone, can y'all update y'alls Claude script to more explicitly use WranglerConfig as a component?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kodster28 yup, will do
|
|
||
| The `elicitInput` method requests additional information from the user during tool execution: | ||
|
|
||
| ```ts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this one not also TypeScriptExample?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mattzcarey let's fix this. @kodster28 sorry about this, it's our agent doing this automatically, I will fix the prompt
|
We also have some rules at https://github.com/cloudflare/cloudflare-docs/blob/production/.windsurf/rules/general-rules.md that y'all might be able to reuse in y'alls prompt, @whoiskatrin / @threepointone |
|
Updated documentation to include: Additional API DocumentationAdvanced Handler ConfigurationDocumented the new configuration options for
Cross-references
These additions complement the initial sync and provide complete coverage of the API changes in cloudflare/agents#620. 🤖 Generated with Claude Code |
Documentation Sync Update✅ Updated documentation synced from cloudflare/agents#620 Changes in this update:
New Documentation
Key APIs Documented
Related Resources
|
- Add comprehensive guide for MCP elicitation (user input) - Document new createMcpHandler options (storage, authContext, transport) - Add examples for state persistence and custom transport configuration - Cover elicitation schema types and response handling Related to cloudflare/agents#620
9736258 to
c7de600
Compare
📚 Documentation UpdatedThis PR has been updated with documentation for the changes in cloudflare/agents#620 New Documentation
Updated Documentation
SummaryThe example was simplified from a complex React client-server demo to a focused server-side elicitation example. The documentation now covers the new powerful features for state persistence and custom transport configuration that enable elicitation to work reliably with Durable Object hibernation. 🔗 Original PR: cloudflare/agents#620 |
|
CI run failed: build logs |
- Add comprehensive elicitation guide with examples - Document createMcpHandler configuration options - Add storage persistence documentation for transport state - Include code examples for all new features Related to cloudflare/agents#620
Things to think about with this pattern:
AuthContext
This is really annoying because the types we get from props are not the same as the auth types in the extra param in tools etc. At the moment you can access them with asyncLocalStorage
Storage
The storage interface is pretty extensible. It would be cool to have patterns with kv or even cookies and no DO at all. This would tee us up very well for the stateless by default SEP coming soon to MCP.
Documentation sync from cloudflare/agents PR #620
cloudflare/agents#620