Skip to content

Comments

Sync 1.0.1 release with main#32

Merged
AzeemMuzammil merged 10 commits intomainfrom
fix-tool-call-1.0.0
Oct 16, 2025
Merged

Sync 1.0.1 release with main#32
AzeemMuzammil merged 10 commits intomainfrom
fix-tool-call-1.0.0

Conversation

@AzeemMuzammil
Copy link
Contributor

Purpose

$title.

Examples

Checklist

  • Linked to an issue
  • Updated the specification
  • Updated the changelog
  • Added tests
  • Checked native-image compatibility

Copilot AI review requested due to automatic review settings October 16, 2025 05:50
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR synchronizes the 1.0.1 release with the main branch, incorporating bug fixes, error handling improvements, and dependency updates. The changes include enhanced validation for required parameters, better error propagation, and updates to the MCP package version from 1.0.0 to 1.0.1.

  • Added validation for required parameters with proper error handling
  • Enhanced error handling for JSON-RPC error responses
  • Updated project version from 1.0.1-SNAPSHOT to 1.0.2-SNAPSHOT and synced all example dependencies to 1.0.1

Reviewed Changes

Copilot reviewed 22 out of 22 changed files in this pull request and generated no comments.

Show a summary per file
File Description
native/src/main/java/io/ballerina/stdlib/mcp/McpServiceMethodHelper.java Added null pointer safety check and required parameter validation with error handling
gradle.properties Bumped project version from 1.0.1-SNAPSHOT to 1.0.2-SNAPSHOT
ballerina/utils.bal Added JSON-RPC error handling in message extraction
ballerina/types.bal Updated JsonRpcError to use closed record type and added it to JsonRpcMessage union
ballerina/streamable_http.bal Enhanced HTTP response parsing to handle error payloads
ballerina/native_listener_helper.bal Changed return type from Error to error for callToolForRemoteFunctions
ballerina/dispatcher_service.bal Added error handling wrapper for callToolForRemoteFunctions result
ballerina/Ballerina.toml Updated package version to 1.0.1
ballerina/CompilerPlugin.toml Updated compiler plugin JAR reference to 1.0.1
ballerina/Dependencies.toml Updated mcp package version to 1.0.1
examples/servers/*/Ballerina.toml Updated mcp dependency to 1.0.1
examples/servers/*/Dependencies.toml Updated mcp and other dependencies to latest versions
examples/clients/*/Ballerina.toml Updated mcp dependency to 1.0.1
examples/clients/*/Dependencies.toml Updated mcp and other dependencies to latest versions

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@codecov
Copy link

codecov bot commented Oct 16, 2025

Codecov Report

❌ Patch coverage is 0% with 28 lines in your changes missing coverage. Please review.
✅ Project coverage is 17.60%. Comparing base (5abe377) to head (d1d2abe).
⚠️ Report is 12 commits behind head on main.

Files with missing lines Patch % Lines
...o/ballerina/stdlib/mcp/McpServiceMethodHelper.java 0.00% 16 Missing ⚠️
ballerina/streamable_http.bal 0.00% 5 Missing ⚠️
ballerina/dispatcher_service.bal 0.00% 4 Missing ⚠️
ballerina/utils.bal 0.00% 2 Missing ⚠️
ballerina/native_listener_helper.bal 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main      #32      +/-   ##
============================================
- Coverage     18.22%   17.60%   -0.63%     
  Complexity        3        3              
============================================
  Files            15       15              
  Lines           620      642      +22     
  Branches        163      170       +7     
============================================
  Hits            113      113              
- Misses          506      528      +22     
  Partials          1        1              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@AzeemMuzammil AzeemMuzammil merged commit 05b337b into main Oct 16, 2025
5 of 7 checks passed
@AzeemMuzammil AzeemMuzammil deleted the fix-tool-call-1.0.0 branch October 16, 2025 06:01
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