googleapis / googleapis/js-genai
Type declarations require the optional MCP peer
Open
api:gemini-api
priority: p2
type: bug
- Dominant language
- TypeScript
- Stars
- 1.7k
- Forks
- 274
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 39
Description
@google/genai 2.19.0 marks @modelcontextprotocol/sdk as an optional peer, but dist/node/node.d.ts imports it unconditionally.
Consumers that do not use MCP receive an unresolved type warning for @modelcontextprotocol/sdk/client/index.js.
Could the declarations avoid requiring the optional peer when MCP is not installed?
Contributor guide
Assessment
This issue has not been assessed yet.