Repository navigation
Give alarms_create an object schema - #398
Open
oliverames wants to merge 1 commit into
Open
oliverames wants to merge 1 commit into
oliverames wants to merge 1 commit into
Conversation
MCP requires an input schema with type object at its root. alarms_create had a bare anyOf, so the MCP SDK rejected the whole tools/list result. checkAlarmSchedule now enforces the two schedule forms.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
alarms_createhas ananyOfat the root of its input schema and no"type": "object". MCP requires that type, and the TypeScript SDK rejects the wholetools/listresult when one tool lacks it. My cloud Claude sessions connected to iMCP and got no tools because of this.What changed
alarms_createtakes an object schema withfire_at,hour,minuteandweekdays, and onlytitleis required.MobileTools.checkAlarmSchedulestill accepts only the two forms,fire_at, orhourandminutewith optionalweekdays. The Mac checks it before it calls the phone, andMobileAlarmRequestchecks it again.mattt/ios-financehas the same schema.Testing
imcp-serverTests: 241 tests, 1 skipped (pre-existing), 0 failures.swift format lint --strictis clean on the changed files.mobile_status.Not verified
mattt/ios-app.