v1.1.0: SDK as Single Source of Truth
Highlights
This release establishes the SDK as the single source of truth for all MCP primitives, with comprehensive new APIs for programmatic access to resources and prompts.
New Features
Standalone Resource Functions
getResource(uri, client?)- Fetch any resource by URIlistResources()- List all available resources with metadatagetSearchSyntaxHelp()- Get search syntax guide as markdown
Standalone Prompt Functions
getPrompt(name, args?)- Get prompt workflows with type-safe overloadslistPrompts()- List all available prompts with metadata
Centralized Constants
TOOL_NAMES,RESOURCE_URIS,PROMPT_NAMES,DEFAULTS,MIME_TYPES- Type exports:
ToolName,ResourceUri,PromptName
Adapter Enhancements
All SDK adapters (OpenAI, Vercel AI, LangChain, Google Gemini) now support resource and prompt formatting.
Other Changes
- NotFoundError Class: Specific error type for missing resources/tools/prompts
- Modular Architecture: Resources and prompts split into individual files
- Enhanced Search Syntax Help: CLAMS method integration, query optimization tips
- Security Policy: Added
SECURITY.mdwith vulnerability reporting guidelines
Note
Full Changelog
See CHANGELOG.md for complete details.