Skip to content

23 mcp server api integration - #25

Merged
Adhish-Krishna merged 10 commits into
developmentfrom
23-mcp-server-api-integration
Jul 28, 2026
Merged

23 mcp server api integration#25
Adhish-Krishna merged 10 commits into
developmentfrom
23-mcp-server-api-integration

Conversation

@Adhish-Krishna

Copy link
Copy Markdown
Member

Changes

  1. Unified the api client instead of core api client and dashboard api client
  2. Created tools for all the api endpoints in the api service
  3. Created test files

- Removed SIMPLENS_DASHBOARD_URL from server configuration.
- Updated index.ts to remove references to SIMPLENS_DASHBOARD_URL.
- Introduced new tools for managing admin alert channels, including listing, creating, updating, and deleting channels.
- Added dashboard tools for fetching stats and trends.
- Replaced resolve_alert tool with delete_alert for dismissing alerts.
- Implemented notifications management tools for listing and deleting notifications.
- Added template management tools for creating, updating, and deleting notification templates.
- Enhanced tests to verify the registration of new tools and their functionalities.
@Adhish-Krishna
Adhish-Krishna requested a review from Copilot July 16, 2026 02:24

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d0a8d73752

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/mcp-server/src/api-client.ts Outdated
async getDashboardTrends(range?: string): Promise<ApiResponse> {
return request(this.baseUrl, 'api/dashboard/trends', {
headers: this.authHeader,
params: range ? { range } : undefined,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Send dashboard trend period with the expected query key

When get_dashboard_trends is called with 7d or 30d, this client sends ?range=..., but the core trends endpoint reads req.query.period (see src/api/controllers/dashboard.controller.ts), so the API silently falls back to 24h and returns the wrong trend window. Map the tool's range value to the period query parameter before calling /api/dashboard/trends.

Useful? React with 👍 / 👎.

@Adhish-Krishna Adhish-Krishna self-assigned this Jul 16, 2026
@Adhish-Krishna Adhish-Krishna added this to the simplens 1.3 milestone Jul 16, 2026
@Adhish-Krishna
Adhish-Krishna merged commit 4d47aff into development Jul 28, 2026
4 checks passed
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.

2 participants