Skip to content

Feature/native mcp server 2#26

Merged
qasim-nylas merged 7 commits intofeature/native-mcp-serverfrom
feature/native-mcp-server-2
Feb 27, 2026
Merged

Feature/native mcp server 2#26
qasim-nylas merged 7 commits intofeature/native-mcp-serverfrom
feature/native-mcp-server-2

Conversation

@mqasimca
Copy link
Collaborator

No description provided.

Validate jsonrpc=="2.0" and non-empty method after unmarshal, returning
-32600 Invalid Request for malformed requests. Add additionalProperties:
false to all 47 tool input schemas for stricter client compliance.
…ol error code

Add MCP spec compliance improvements: tool annotations with behavior
hints (readOnly, destructive, idempotent, openWorld) and human-readable
titles for all 47 tools; protocol version negotiation supporting both
2024-11-05 and 2025-06-18; proper JSON-RPC -32602 error for unknown
tools. Split tools.go into tools_registry.go and tools_annotations.go
to stay within file size limits.
Change protocol version from non-existent "2025-06-18" to "2025-03-26"
(the actual MCP spec version that introduced tool annotations). Add
explicit destructiveHint: false to non-destructive mutating tools
(send/create/update/smart_compose) since the spec default is true. Add
idempotentHint: true to update_* tools for PUT-like semantics.
Shorten tool descriptions and property descriptions across all 47 tools.
Optimize annotations by omitting openWorldHint (MCP spec default is true)
and using pre-allocated singletons. Compact grantDesc, epochDesc constants
and share participantItems schema. Saves ~1,200 tokens per session.
Add cleanSnippet to strip invisible chars and cap snippet length at 120
chars in list_messages responses. Remove redundant folders field from
list output. Add comprehensive JSON-RPC validation tests and tool schema
tests.
Refactor doRequest to return the timeout context's cancel function so
callers can defer cancellation after reading the response body. Prevents
premature context cancellation causing io.ReadAll failures. Update all
call sites across adapters.
@qasim-nylas qasim-nylas merged commit 0eab4b7 into feature/native-mcp-server Feb 27, 2026
@qasim-nylas qasim-nylas deleted the feature/native-mcp-server-2 branch February 27, 2026 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants