Skip to content

feat(mcp): notification and self-service read tools#7718

Open
andypalmi wants to merge 1 commit into
feat/mcp-tools-shared-schemasfrom
feat/mcp-tools-notifications-read
Open

feat(mcp): notification and self-service read tools#7718
andypalmi wants to merge 1 commit into
feat/mcp-tools-shared-schemasfrom
feat/mcp-tools-notifications-read

Conversation

@andypalmi

Copy link
Copy Markdown
Contributor

Summary

Adds Phase 1 read-only MCP tools for user self-service (Story 5, issue 5.9-a).

Tool file: forge/ee/lib/mcp/tools/user.js

Tools added:

  • platform_get_current_user - GET /api/v1/user
  • platform_list_notifications - GET /api/v1/user/notifications (paginated)
  • platform_list_own_invitations - GET /api/v1/user/invitations

All three are tagged readOnlyHint: true, destructiveHint: false.

Scopes allow-listed in IMPLICIT_TOKEN_SCOPES['user:expert-mcp'] (forge/routes/auth/permissions.js):

  • user:read
  • user:edit

Write, delete, and admin-only endpoints from the parent issue (5.9-b/c/d) are out of scope for this PR, as are the excluded sensitive self-service routes (change_password, account deletion, MFA, tokens).

Closes #7702

Test plan

  • eslint clean on changed files
  • CI

@codecov

codecov Bot commented Jul 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.42%. Comparing base (103f9ae) to head (0438f64).

Additional details and impacted files
@@                        Coverage Diff                        @@
##           feat/mcp-tools-shared-schemas    #7718      +/-   ##
=================================================================
+ Coverage                          75.41%   75.42%   +0.01%     
=================================================================
  Files                                426      427       +1     
  Lines                              22551    22563      +12     
  Branches                            5949     5949              
=================================================================
+ Hits                               17006    17019      +13     
+ Misses                              5545     5544       -1     
Flag Coverage Δ
backend 75.42% <100.00%> (+0.01%) ⬆️

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

☔ View full report in Codecov by Harness.
📢 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.

@andypalmi andypalmi force-pushed the feat/mcp-tools-notifications-read branch from 179b11c to 73b4713 Compare July 4, 2026 13:33
@andypalmi andypalmi linked an issue Jul 6, 2026 that may be closed by this pull request
@andypalmi andypalmi force-pushed the feat/mcp-tools-shared-schemas branch from 8bfb22e to 9742987 Compare July 6, 2026 13:13
@andypalmi andypalmi force-pushed the feat/mcp-tools-notifications-read branch from 73b4713 to e6e47ac Compare July 6, 2026 16:38
Add read-only MCP tools for the user profile, notifications and own invitations, with unit and equivalence tests. Allow-list their scopes for the expert-mcp platform token.
@andypalmi andypalmi force-pushed the feat/mcp-tools-notifications-read branch from e6e47ac to 0438f64 Compare July 6, 2026 22: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.

5.9-a Read tools (phase 1)

1 participant