René's URL Explorer Experiment


Title: SEP-1440: Enhanced Completion Values with Rich Metadata Support · Issue #1440 · modelcontextprotocol/modelcontextprotocol · GitHub

Open Graph Title: SEP-1440: Enhanced Completion Values with Rich Metadata Support · Issue #1440 · modelcontextprotocol/modelcontextprotocol

X Title: SEP-1440: Enhanced Completion Values with Rich Metadata Support · Issue #1440 · modelcontextprotocol/modelcontextprotocol

Description: Author: Kent C. Dodds <[me@kentcdodds.com]> Status: proposal Type: Standards Track Created: 2025-09-08 Discussion: #589 Abstract This SEP proposes extending the Model Context Protocol (MCP) completion system to support rich metadata in c...

Open Graph Description: Author: Kent C. Dodds <[me@kentcdodds.com]> Status: proposal Type: Standards Track Created: 2025-09-08 Discussion: #589 Abstract This SEP proposes extending the Model Context Protocol (MCP) complet...

X Description: Author: Kent C. Dodds <[me@kentcdodds.com]> Status: proposal Type: Standards Track Created: 2025-09-08 Discussion: #589 Abstract This SEP proposes extending the Model Context Protocol (MCP) c...

Mail addresses
me@kentcdodds.com

Opengraph URL: https://github.com/modelcontextprotocol/modelcontextprotocol/issues/1440

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"SEP-1440: Enhanced Completion Values with Rich Metadata Support","articleBody":"**Author:** Kent C. Dodds \u003c[me@kentcdodds.com]\u003e\n**Status:** proposal\n**Type:** Standards Track\n**Created:** 2025-09-08\n**Discussion:** https://github.com/modelcontextprotocol/modelcontextprotocol/pull/589\n\n## Abstract\n\nThis SEP proposes extending the Model Context Protocol (MCP) completion system to support rich metadata in completion values. Currently, completion values are limited to simple strings, which restricts the ability to provide contextual information about completion options. This proposal introduces a union type that allows completion values to be either simple strings (maintaining backward compatibility) or rich objects containing `value`, `title`, and optional `description` fields. This enhancement enables better user experiences with IDE-like completion interfaces that can display meaningful titles and descriptions alongside completion values while maintaining backward compatibility with existing string-based completions.\n\n## Motivation\n\nThe current MCP completion system only supports string values in the `CompleteResult.values` array. This limitation creates several problems:\n\n1. **Poor User Experience**: When completion values are technical identifiers (e.g., `\"py-3.11\"`), users cannot easily understand what they represent without additional context.\n\n2. **Limited Context**: There's no way to provide descriptions or alternative display names for completion options, making it difficult for users to distinguish between similar options.\n\n3. **Inconsistent Display**: Clients must choose between showing cryptic technical values or implementing their own mapping to user-friendly names, leading to inconsistent experiences across different MCP clients.\n\n4. **Missing IDE-like Features**: Modern development environments provide rich completion experiences with descriptions, documentation, and categorized suggestions. The current MCP specification cannot support these features.\n\n5. **Server Complexity**: Servers that want to provide rich completion experiences must work around the limitation by encoding metadata into string values or providing separate documentation endpoints.\n\nThis proposal addresses these issues by allowing servers to provide rich completion objects while maintaining full backward compatibility with existing string-based completions.\n\n## Specification\n\n### Type Definition\n\nThe `CompleteResult.values` field is extended from:\n\n```typescript\nvalues: string[]\n```\n\nTo:\n\n```typescript\nvalues: Array\u003cstring | CompletionValue\u003e;\n```\n\nWhere `CompletionValue` is defined as:\n\n```typescript\ninterface CompletionValue {\n  value: string; // The actual completion value\n  title: string; // Display name for the completion\n  description?: string; // Optional description/context\n}\n```\n\n### Field Semantics\n\n- **`value`**: The actual completion value that will be inserted/used by the client. This is equivalent to the current string values.\n- **`title`**: A human-readable display name for the completion option. This is what should be shown to users in completion interfaces.\n- **`description`**: Optional additional context or documentation about the completion option. This can be used for tooltips, help text, or detailed descriptions.\n\nThe `value` is what will be sent back in `context.arguments` of subsequent completion requests.\n\n\n### Examples\n\n#### Rich Completion Objects\n\n```json\n{\n  \"jsonrpc\": \"2.0\",\n  \"id\": 1,\n  \"result\": {\n    \"completion\": {\n      \"values\": [\n        {\n          \"value\": \"py-3.11\",\n          \"title\": \"Python 3.11\",\n          \"description\": \"Python programming language version 3.11\"\n        },\n        {\n          \"value\": \"torch-2.0\",\n          \"title\": \"PyTorch 2.0\",\n          \"description\": \"Open source machine learning framework\"\n        }\n      ],\n      \"total\": 2,\n      \"hasMore\": false\n    }\n  }\n}\n```\n\n#### Mixed String and Object Values\n\n```json\n{\n  \"jsonrpc\": \"2.0\",\n  \"id\": 1,\n  \"result\": {\n    \"completion\": {\n      \"values\": [\n        \"python\",\n        {\n          \"value\": \"torch-2.0\",\n          \"title\": \"PyTorch 2.0\",\n          \"description\": \"Open source machine learning framework\"\n        },\n        \"pyside\"\n      ],\n      \"total\": 3,\n      \"hasMore\": false\n    }\n  }\n}\n```\n\n#### Simple String Values (Backward Compatible)\n\n```json\n{\n  \"jsonrpc\": \"2.0\",\n  \"id\": 1,\n  \"result\": {\n    \"completion\": {\n      \"values\": [\"python\", \"pytorch\", \"pyside\"],\n      \"total\": 3,\n      \"hasMore\": false\n    }\n  }\n}\n```\n\n### Client Behavior\n\nClients should:\n\n1. Handle both string and object completion values gracefully\n2. Clients SHOULD search on both value and title fields when filtering completions.\n3. Use the `title` field for display purposes when available\n4. Use the `value` field for the actual completion insertion\n5. Display `description` as tooltips or help text when available\n6. Fall back to displaying the string value directly for simple string completions\n\n### Server Behavior\n\nServers may:\n\n1. Return only string values (maintaining current behavior)\n2. Return only rich completion objects\n3. Mix string and object values in the same response\n4. Gradually migrate from strings to rich objects over time\n\nNOTE: Servers should be aware that hosts may search on titles, which could make results appear inconsistent if only values are considered.\n\n## Rationale\n\n### Union Type Design\n\nThe union type `string | CompletionValue` was chosen over always requiring objects because:\n\n1. **Backward Compatibility**: Existing implementations continue to work without modification\n2. **Simplicity**: Simple use cases don't require the overhead of object creation\n3. **Migration Path**: Servers can gradually adopt rich completions without breaking changes\n\n### Field Selection\n\nThe three fields (`value`, `title`, `description`) were chosen because:\n\n1. **`value`**: Essential for actual completion functionality\n2. **`title`**: Provides user-friendly display names without changing completion behavior\n3. **`description`**: Optional field allows for rich context without requiring it\n\nAlternative designs considered:\n\n- **Always objects**: Would break backward compatibility\n- **Additional fields**: Would complicate the specification without clear use cases\n- **Nested structure**: Would add unnecessary complexity for the core use case\n\n### Schema Validation\n\nThe JSON Schema uses `anyOf` to validate the union type, ensuring that:\n\n- String values are validated as before\n- Object values must have required `value` and `title` fields\n- Optional `description` field is validated when present\n- Additional properties are not allowed to prevent confusion\n\n## Backward Compatibility\n\nThis change is fully backward compatible:\n\n1. **Existing Clients**: Will continue to work unchanged, treating object values as strings (though this may not be ideal UX)\n2. **Existing Servers**: Can continue returning string arrays without modification\n3. **Protocol Version**: No protocol version changes required\n4. **Schema Evolution**: Uses standard JSON Schema union types for validation\n\n### Migration Strategy\n\n1. **Phase 1**: Deploy the specification changes (this SEP)\n2. **Phase 2**: Clients update to handle rich completion objects\n3. **Phase 3**: Servers gradually adopt rich completions where beneficial\n\n## Reference Implementation\n\nThe reference implementation includes:\n\n1. **Schema Changes**: Updated `schema.json` and `schema.ts` with the new union type\n2. **Documentation**: Enhanced `completion.mdx` with comprehensive examples\n3. **Type Definitions**: Updated TypeScript interfaces in the schema\n\n## Security Implications\n\nThis change introduces no new security concerns:\n\n1. **Input Validation**: Same validation requirements as existing string completions\n2. **Data Exposure**: No additional sensitive information is exposed through the new fields\n3. **Rate Limiting**: Existing rate limiting mechanisms continue to apply\n4. **Access Control**: Same access control requirements as current completion system\n\nServers should:\n\n- Validate all completion metadata before returning it\n- Ensure `title` and `description` fields don't contain sensitive information\n- Apply the same security policies to rich completions as string completions\n\n## References\n\n- [MCP Specification - Completion](https://modelcontextprotocol.io/docs/specification/draft/server/utilities/completion)\n- [JSON Schema Union Types](https://json-schema.org/understanding-json-schema/reference/combining.html#anyof)\n- [TypeScript Union Types](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types)\n","author":{"url":"https://github.com/kentcdodds","@type":"Person","name":"kentcdodds"},"datePublished":"2025-09-08T14:51:24.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":14},"url":"https://github.com/1440/modelcontextprotocol/issues/1440"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:75f71bed-8cfe-42c4-4968-0ce3e19003cd
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDDCC:238CA7:4187AC9:5583238:6A5D2EA0
html-safe-nonced54051b2ea6f55f5ef319eeba5af049ff20ab4a89536f10ed793cfb8f1cf9ec6
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERENDOjIzOENBNzo0MTg3QUM5OjU1ODMyMzg6NkE1RDJFQTAiLCJ2aXNpdG9yX2lkIjoiODA3ODU1MjA0OTIzODQ4NjY4OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac348bda1747ca3d8b154e7152fee6c173442fb742a6d35b3fa7154951679fdd55
hovercard-subject-tagissue:3394555669
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/modelcontextprotocol/modelcontextprotocol/1440/issue_layout
twitter:imagehttps://opengraph.githubassets.com/091e3634b7e1f5ba63b75ab42f0cf161b56a3c5a5e16e2050ce1ec7ae47e3774/modelcontextprotocol/modelcontextprotocol/issues/1440
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/091e3634b7e1f5ba63b75ab42f0cf161b56a3c5a5e16e2050ce1ec7ae47e3774/modelcontextprotocol/modelcontextprotocol/issues/1440
og:image:altAuthor: Kent C. Dodds <[me@kentcdodds.com]> Status: proposal Type: Standards Track Created: 2025-09-08 Discussion: #589 Abstract This SEP proposes extending the Model Context Protocol (MCP) complet...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamekentcdodds
hostnamegithub.com
expected-hostnamegithub.com
None5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b
turbo-cache-controlno-preview
go-importgithub.com/modelcontextprotocol/modelcontextprotocol git https://github.com/modelcontextprotocol/modelcontextprotocol.git
octolytics-dimension-user_id182288589
octolytics-dimension-user_loginmodelcontextprotocol
octolytics-dimension-repository_id862570523
octolytics-dimension-repository_nwomodelcontextprotocol/modelcontextprotocol
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id862570523
octolytics-dimension-repository_network_root_nwomodelcontextprotocol/modelcontextprotocol
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9c975978430e9ad293956f2bbdaf153b1bd84a99
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/modelcontextprotocol/modelcontextprotocol/issues/1440#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fmodelcontextprotocol%2Fissues%2F1440
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fmodelcontextprotocol%2Fissues%2F1440
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=modelcontextprotocol%2Fmodelcontextprotocol
Reloadhttps://github.com/modelcontextprotocol/modelcontextprotocol/issues/1440
Reloadhttps://github.com/modelcontextprotocol/modelcontextprotocol/issues/1440
Reloadhttps://github.com/modelcontextprotocol/modelcontextprotocol/issues/1440
Please reload this pagehttps://github.com/modelcontextprotocol/modelcontextprotocol/issues/1440
modelcontextprotocol https://github.com/modelcontextprotocol
modelcontextprotocolhttps://github.com/modelcontextprotocol/modelcontextprotocol
Notifications https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fmodelcontextprotocol
Fork 1.7k https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fmodelcontextprotocol
Star 8.6k https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fmodelcontextprotocol
Code https://github.com/modelcontextprotocol/modelcontextprotocol
Issues 112 https://github.com/modelcontextprotocol/modelcontextprotocol/issues
Pull requests 78 https://github.com/modelcontextprotocol/modelcontextprotocol/pulls
Discussions https://github.com/modelcontextprotocol/modelcontextprotocol/discussions
Actions https://github.com/modelcontextprotocol/modelcontextprotocol/actions
Projects https://github.com/modelcontextprotocol/modelcontextprotocol/projects
Models https://github.com/modelcontextprotocol/modelcontextprotocol/models
Security and quality 0 https://github.com/modelcontextprotocol/modelcontextprotocol/security
Insights https://github.com/modelcontextprotocol/modelcontextprotocol/pulse
Code https://github.com/modelcontextprotocol/modelcontextprotocol
Issues https://github.com/modelcontextprotocol/modelcontextprotocol/issues
Pull requests https://github.com/modelcontextprotocol/modelcontextprotocol/pulls
Discussions https://github.com/modelcontextprotocol/modelcontextprotocol/discussions
Actions https://github.com/modelcontextprotocol/modelcontextprotocol/actions
Projects https://github.com/modelcontextprotocol/modelcontextprotocol/projects
Models https://github.com/modelcontextprotocol/modelcontextprotocol/models
Security and quality https://github.com/modelcontextprotocol/modelcontextprotocol/security
Insights https://github.com/modelcontextprotocol/modelcontextprotocol/pulse
SEP-1440: Enhanced Completion Values with Rich Metadata Supporthttps://github.com/modelcontextprotocol/modelcontextprotocol/issues/1440#top
https://github.com/evalstate
SEPhttps://github.com/modelcontextprotocol/modelcontextprotocol/issues?q=state%3Aopen%20label%3A%22SEP%22
dormanthttps://github.com/modelcontextprotocol/modelcontextprotocol/issues?q=state%3Aopen%20label%3A%22dormant%22
in-reviewSEP proposal ready for review.https://github.com/modelcontextprotocol/modelcontextprotocol/issues?q=state%3Aopen%20label%3A%22in-review%22
https://github.com/kentcdodds
kentcdoddshttps://github.com/kentcdodds
on Sep 8, 2025https://github.com/modelcontextprotocol/modelcontextprotocol/issues/1440#issue-3394555669
#589https://github.com/modelcontextprotocol/modelcontextprotocol/pull/589
MCP Specification - Completionhttps://modelcontextprotocol.io/docs/specification/draft/server/utilities/completion
JSON Schema Union Typeshttps://json-schema.org/understanding-json-schema/reference/combining.html#anyof
TypeScript Union Typeshttps://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types
evalstatehttps://github.com/evalstate
SEPhttps://github.com/modelcontextprotocol/modelcontextprotocol/issues?q=state%3Aopen%20label%3A%22SEP%22
dormanthttps://github.com/modelcontextprotocol/modelcontextprotocol/issues?q=state%3Aopen%20label%3A%22dormant%22
in-reviewSEP proposal ready for review.https://github.com/modelcontextprotocol/modelcontextprotocol/issues?q=state%3Aopen%20label%3A%22in-review%22
SEP Review Pipelinehttps://github.com/orgs/modelcontextprotocol/projects/12
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.