Skip to content

Marked the @mcpToolAnnotations directive as internal#9128

Merged
glen-84 merged 2 commits intomainfrom
gai/mcp-tool-annotations-internal
Feb 18, 2026
Merged

Marked the @mcpToolAnnotations directive as internal#9128
glen-84 merged 2 commits intomainfrom
gai/mcp-tool-annotations-internal

Conversation

@glen-84
Copy link
Copy Markdown
Member

@glen-84 glen-84 commented Feb 18, 2026

Summary of the changes (Less than 80 chars)

  • Marked the @mcpToolAnnotations directive as internal.

Copilot AI review requested due to automatic review settings February 18, 2026 07:47
Copy link
Copy Markdown
Contributor

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 pull request marks the @mcpToolAnnotations directive as internal to hide it from GraphQL introspection while keeping it accessible within the type system. This resolves a previously identified TODO and follows established patterns for internal directives in the HotChocolate framework.

Changes:

  • Removed TODO comment about hiding the directive from introspection (now resolved)
  • Marked the @mcpToolAnnotations directive type as internal using .Internal() method
  • Cleaned up duplicate .Location() call in directive configuration

Reviewed changes

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

File Description
RequestExecutorBuilderExtensions.cs Removed resolved TODO comment about hiding the directive from introspection
McpToolAnnotationsDirectiveType.cs Added .Internal() to mark directive as internal and removed duplicate .Location() call

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link
Copy Markdown
Contributor

🚀 Fusion Gateway Performance Results

Simple Composite Query

Constant Load (50 VUs)

Requests/sec Error Rate
2917.27 req/s 0.00%
📊 Response Time Metrics
Min Med Max Avg P90 P95
0.76ms 15.04ms 171.98ms 16.91ms 30.98ms 36.14ms

Ramping Load (0→50→500→50 VUs)

Requests/sec Error Rate
3223.08 req/s 0.00%
📊 Response Time Metrics
Min Med Max Avg P90 P95
0.65ms 66.52ms 295.92ms 69.16ms 131.62ms 148.46ms

Executed Query

fragment User on User {
  id
  username
  name
}

fragment Review on Review {
  id
  body
}

fragment Product on Product {
  inStock
  name
  price
  shippingEstimate
  upc
  weight
}

query TestQuery {
  topProducts(first: 5) {
    ...Product
    reviews {
      ...Review
      author {
        ...User
      }
    }
  }
}

Deep Recursion Query

Constant Load (50 VUs)

Requests/sec Error Rate
740.65 req/s 0.00%
📊 Response Time Metrics
Min Med Max Avg P90 P95
9.24ms 63.02ms 321.89ms 65.98ms 81.44ms 89.33ms

Ramping Load (0→50→500→50 VUs)

Requests/sec Error Rate
829.26 req/s 0.00%
📊 Response Time Metrics
Min Med Max Avg P90 P95
1.84ms 254.57ms 703.30ms 259.40ms 523.56ms 562.70ms

Executed Query

fragment User on User {
  id
  username
  name
}

fragment Review on Review {
  id
  body
}

fragment Product on Product {
  inStock
  name
  price
  shippingEstimate
  upc
  weight
}

query TestQuery {
  users {
    ...User
    reviews {
      ...Review
      product {
        ...Product
        reviews {
          ...Review
          author {
            ...User
            reviews {
              ...Review
              product {
                ...Product
              }
            }
          }
        }
      }
    }
  }
  topProducts(first: 5) {
    ...Product
    reviews {
      ...Review
      author {
        ...User
        reviews {
          ...Review
          product {
            ...Product
          }
        }
      }
    }
  }
}

Variable Batching Throughput

Constant Load (50 VUs)

Requests/sec Error Rate
23253.22 req/s 0.00%
📊 Response Time Metrics
Min Med Max Avg P90 P95
0.10ms 1.74ms 44.92ms 2.10ms 4.00ms 4.87ms

Ramping Load (0→50→500→50 VUs)

Requests/sec Error Rate
18257.33 req/s 0.00%
📊 Response Time Metrics
Min Med Max Avg P90 P95
0.10ms 9.51ms 104.50ms 11.47ms 23.61ms 28.33ms

Executed Query

query TestQuery_8f7a46ce_2(
  $__fusion_1_upc: ID!
  $__fusion_2_price: Long!
  $__fusion_2_weight: Long!
) {
  productByUpc(upc: $__fusion_1_upc) {
    inStock
    shippingEstimate(weight: $__fusion_2_weight, price: $__fusion_2_price)
  }
}

Variables (5 sets batched in single request)

[
  { "__fusion_1_upc": "1", "__fusion_2_price": 899, "__fusion_2_weight": 100 },
  { "__fusion_1_upc": "2", "__fusion_2_price": 1299, "__fusion_2_weight": 1000 },
  { "__fusion_1_upc": "3", "__fusion_2_price": 15, "__fusion_2_weight": 20 },
  { "__fusion_1_upc": "4", "__fusion_2_price": 499, "__fusion_2_weight": 100 },
  { "__fusion_1_upc": "5", "__fusion_2_price": 1299, "__fusion_2_weight": 1000 }
]

No baseline data available for comparison.


Run 22131125626 • Commit bedf401 • Wed, 18 Feb 2026 08:05:50 GMT

@glen-84 glen-84 merged commit e977c2e into main Feb 18, 2026
117 checks passed
@glen-84 glen-84 deleted the gai/mcp-tool-annotations-internal branch February 18, 2026 08:57
@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 18, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.00%. Comparing base (6a3b7a3) to head (8bed138).
⚠️ Report is 750 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #9128       +/-   ##
==========================================
- Coverage   74.16%       0   -74.17%     
==========================================
  Files        2677       0     -2677     
  Lines      140790       0   -140790     
  Branches    16371       0    -16371     
==========================================
- Hits       104421       0   -104421     
+ Misses      30774       0    -30774     
+ Partials     5595       0     -5595     
Flag Coverage Δ
unittests ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.

@github-actions
Copy link
Copy Markdown
Contributor

🚀 Fusion Gateway Performance Results

Simple Composite Query

Constant Load (50 VUs)

Requests/sec Error Rate
2926.34 req/s 0.00%
📊 Response Time Metrics
Min Med Max Avg P90 P95
0.75ms 15.00ms 172.27ms 16.86ms 30.80ms 36.00ms

Ramping Load (0→50→500→50 VUs)

Requests/sec Error Rate
3288.26 req/s 0.00%
📊 Response Time Metrics
Min Med Max Avg P90 P95
0.76ms 67.13ms 257.26ms 67.78ms 124.47ms 138.54ms

Executed Query

fragment User on User {
  id
  username
  name
}

fragment Review on Review {
  id
  body
}

fragment Product on Product {
  inStock
  name
  price
  shippingEstimate
  upc
  weight
}

query TestQuery {
  topProducts(first: 5) {
    ...Product
    reviews {
      ...Review
      author {
        ...User
      }
    }
  }
}

Deep Recursion Query

Constant Load (50 VUs)

Requests/sec Error Rate
736.57 req/s 0.00%
📊 Response Time Metrics
Min Med Max Avg P90 P95
8.96ms 63.18ms 340.95ms 66.33ms 81.48ms 89.60ms

Ramping Load (0→50→500→50 VUs)

Requests/sec Error Rate
827.76 req/s 0.00%
📊 Response Time Metrics
Min Med Max Avg P90 P95
1.81ms 259.22ms 677.92ms 260.05ms 511.59ms 549.07ms

Executed Query

fragment User on User {
  id
  username
  name
}

fragment Review on Review {
  id
  body
}

fragment Product on Product {
  inStock
  name
  price
  shippingEstimate
  upc
  weight
}

query TestQuery {
  users {
    ...User
    reviews {
      ...Review
      product {
        ...Product
        reviews {
          ...Review
          author {
            ...User
            reviews {
              ...Review
              product {
                ...Product
              }
            }
          }
        }
      }
    }
  }
  topProducts(first: 5) {
    ...Product
    reviews {
      ...Review
      author {
        ...User
        reviews {
          ...Review
          product {
            ...Product
          }
        }
      }
    }
  }
}

Variable Batching Throughput

Constant Load (50 VUs)

Requests/sec Error Rate
23157.41 req/s 0.00%
📊 Response Time Metrics
Min Med Max Avg P90 P95
0.10ms 1.74ms 52.24ms 2.11ms 4.01ms 4.89ms

Ramping Load (0→50→500→50 VUs)

Requests/sec Error Rate
18150.35 req/s 0.00%
📊 Response Time Metrics
Min Med Max Avg P90 P95
0.10ms 9.63ms 107.14ms 11.65ms 23.96ms 28.99ms

Executed Query

query TestQuery_8f7a46ce_2(
  $__fusion_1_upc: ID!
  $__fusion_2_price: Long!
  $__fusion_2_weight: Long!
) {
  productByUpc(upc: $__fusion_1_upc) {
    inStock
    shippingEstimate(weight: $__fusion_2_weight, price: $__fusion_2_price)
  }
}

Variables (5 sets batched in single request)

[
  { "__fusion_1_upc": "1", "__fusion_2_price": 899, "__fusion_2_weight": 100 },
  { "__fusion_1_upc": "2", "__fusion_2_price": 1299, "__fusion_2_weight": 1000 },
  { "__fusion_1_upc": "3", "__fusion_2_price": 15, "__fusion_2_weight": 20 },
  { "__fusion_1_upc": "4", "__fusion_2_price": 499, "__fusion_2_weight": 100 },
  { "__fusion_1_upc": "5", "__fusion_2_price": 1299, "__fusion_2_weight": 1000 }
]

No baseline data available for comparison.


Run 22132055326 • Commit f781e68 • Wed, 18 Feb 2026 09:11:18 GMT

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.

2 participants