Repository navigation
Conversation
The ATP domain pinned DEFAULT_API_VERSION to 2025-10 while the rest of the MCP uses the agent-toolkit API_VERSION (2027-01). Set it to the toolkit version; a test asserts they stay equal and that the schema URL and API-Version header use it. Part of making the API-Version header required.
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.
Part of https://monday.monday.com/boards/18424395879/pulses/13487218901
Why
monday.com is making the
API-VersionHTTP header required on every GraphQL API call. Calls without it will be rejected in the future; the date will be announced. The ATP domain already sends the header, but it was pinned to2025-10, an older version than the rest of the MCP, which uses the agent-toolkit'sAPI_VERSION(2027-01). This change makes ATP use the same version as the toolkit.Summary
packages/monday-api-mcp/src/domains/atp/atp.consts.ts:DEFAULT_API_VERSIONis now2027-01. The toolkit doesn't exportAPI_VERSIONfrom any of its package entries (/mcp,/core,/openai), so the value stays a literal. A comment and a test keep it equal topackages/agent-toolkit/src/utils/version.utils.ts.packages/monday-api-mcp/src/domains/atp/atp.service.ts:loadMondaySchemais now exported so the test can check the schema URL and theAPI-Versionheader. Its behavior is unchanged.packages/monday-api-mcp/tests/atp.test.ts(new): checks that the default version equals the toolkit'sAPI_VERSION, thatgetMondaySchemaUrl()uses it, and that the ATP request sends it in theAPI-Versionheader. A caller-provided version still overrides it in both places.packages/monday-api-mcp/jest.config.js: adds amoduleNameMapperthat maps the.jsrelative imports (Node16 ESM style) back to their.tssources, so Jest can loadatp.service.ts.packages/monday-api-mcp/package.json: version 3.3.1 -> 3.3.2.No ATP tests were pinned to
2025-10before this change; the package only had a placeholder test.Tests and build
yarn testinpackages/monday-api-mcp: 2 suites, 6 tests, all passed.yarn buildat the repo root (turbo; agent-toolkit, then monday-api-mcp): 2 of 2 tasks succeeded.src/lib.tsalready fails Prettier on master, and this PR doesn't touch it.get_schema?version=..., so there is no generated ATP surface in the repo to regenerate.