Skip to content

Comments

[WIP][MCP] Add Query API tool support to MCP configuration#6670

Draft
onbuyuka wants to merge 3 commits intomainfrom
private/onbuyuka/mcpquery
Draft

[WIP][MCP] Add Query API tool support to MCP configuration#6670
onbuyuka wants to merge 3 commits intomainfrom
private/onbuyuka/mcpquery

Conversation

@onbuyuka
Copy link
Contributor

@onbuyuka onbuyuka commented Feb 13, 2026

Summary

  • Introduce Query API tools as a new tool type in MCP configurations, alongside the existing Page API tools. This enables MCP configurations to expose read-only API query endpoints (e.g., PowerBI report queries, finance API queries) as tools, expanding the data
    surfaces available to MCP clients.
  • Add AboutText annotations to 86 existing API queries across APIReportsFinance, PowerBIReports, and related apps. These descriptions help MCP tool discovery by providing semantic context about each query's purpose and data contents.
  • Extend the MCP Config UI and public API with full query tool lifecycle support: creation (CreateQueryAPITool), lookup (MCPQueryConfigToolLookup page), validation, version management, and bulk add by API group — all mirroring the existing page tool patterns.

Changes

Core MCP Configuration (MCPConfigImplementation, MCPConfig):

  • New CreateAPIQueryTool, ValidateAPIQueryTool, GetHighestAPIQueryVersion, LookupAPIQueryTools, ValidateAPIQueryVersion, LookupAPIQueryVersions procedures
  • Query tools are read-only by design: AllowCreate, AllowModify, AllowDelete, and AllowBoundActions silently no-op for query object types
  • GetAPIPublishers and AddToolsByAPIGroup now aggregate both page and query publishers/tools
  • Export/import supports the new Query object type
  • Obsoleted the single-param GetAPIToolId overload in favor of one accepting ObjectType

UI:

  • New MCPQueryConfigToolLookup page (8367) for selecting API queries
  • MCPConfigToolList updated with Object Type field, query-aware lookup/validation, and conditional editability (CUD fields disabled for query tools)

API Query AboutText additions (86 queries):

  • APIReportsFinance (6 queries), PowerBIReports Core/Finance/Inventory/Manufacturing/Projects/Purchasing/Sales/Obsolete (80 queries)

Tests:

  • New MockAPIQuery test query object
  • 8 new test cases: TestCreateQueryAPITool, TestCreateInvalidQueryAPITool, TestQueryToolDoesNotAllowCreate/Modify/Delete/BoundActions, TestFindMissingObjectWarningsForQueryTool, TestLookupAPIQueryTools
  • Updated test library with LookupAPIQueryTools and renamed GetHighestAPIVersion to GetHighestAPIPageVersion

@onbuyuka onbuyuka changed the title [MCP] Add Query API tool support to MCP configuration [WIP][MCP] Add Query API tool support to MCP configuration Feb 13, 2026
@github-actions
Copy link

Could not find a linked ADO work item. Please link one by using the pattern 'AB#' followed by the relevant work item number. You may use the 'Fixes' keyword to automatically resolve the work item when the pull request is merged. E.g. 'Fixes AB#1234'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant