Skip to content

Add plugin MCP server for Mattermost Agents - #34

Merged
nickmisasi merged 1 commit into
masterfrom
rebuild/mcp-server
Aug 27, 2026
Merged

Add plugin MCP server for Mattermost Agents#34
nickmisasi merged 1 commit into
masterfrom
rebuild/mcp-server

Conversation

@nickmisasi

@nickmisasi nickmisasi commented Aug 12, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Adds a Mattermost Agents MCP server (/mcp) exposing Cursor Cloud Agents tools: create_agent, get_agent, list_agents, add_followup, get_agent_conversation.
  • All MCP tool calls use an admin-configured Service Account API Key (System Console), so invoking users do not need personal Cursor access.
  • Introduces shared cursorapi client + hydration cache; updates plugin.json, Go 1.26, and min_server_version to 11.3.0.
  • Purely additive on top of Remove legacy plugin feature code ahead of rebuild #37 (legacy removals). No per-user RHS / personal API keys here — that lands in Add per-user Cursor Cloud Agents RHS dashboard #35.

Testing

  • go test ./server/...
  • Deploy and confirm MCP registration with Mattermost Agents
  • Exercise tools with a configured service account key

Release Note

Add an MCP server for Mattermost Agents that drives Cursor Cloud Agents via an admin service-account API key.

@coderabbitai

coderabbitai Bot commented Aug 12, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@nickmisasi, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 46 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 1641bedd-6779-445e-a7ad-5a83b902d169

📥 Commits

Reviewing files that changed from the base of the PR and between f373a84 and 6ec5706.

⛔ Files ignored due to path filters (1)
  • go.sum is excluded by !**/*.sum
📒 Files selected for processing (16)
  • .github/workflows/ci.yml
  • .golangci.yml
  • Makefile
  • README.md
  • build/pluginctl/main.go
  • go.mod
  • plugin.json
  • server/configuration.go
  • server/cursorapi/client.go
  • server/cursorapi/types.go
  • server/hydration.go
  • server/main.go
  • server/mcp.go
  • server/mcp_test.go
  • server/plugin.go
  • server/test_helpers_test.go

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@nickmisasi
nickmisasi changed the base branch from master to rebuild/remove-legacy August 12, 2026 14:15
@nickmisasi nickmisasi changed the title Remove legacy features and add plugin MCP server for Agents Add plugin MCP server for Mattermost Agents Aug 12, 2026

@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: 322b0bab1b

ℹ️ 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 server/mcp.go
if err != nil {
return cursorToolError(response, err), listAgentsOutput{}, nil
}
hydrated := p.hydrateAgents(ctx, cacheIdentity, client, list.Items, false)

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 Report the latest run status from list_agents

Passing false here skips run hydration, after which the tool exports agent.Status. Cursor distinguishes the agent resource status from its latest run status—the added test data itself has an ACTIVE agent whose run is FINISHED—so list_agents reports completed work as ACTIVE, unlike create_agent and get_agent, which return run statuses. This prevents callers from reliably identifying completed or failed tasks from the list.

Useful? React with 👍 / 👎.

Comment thread server/plugin.go
Comment on lines +35 to +36
if p.httpClient == nil {
p.httpClient = http.DefaultClient

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 Bound outbound Cursor API requests

When Cursor accepts a connection but stalls before returning headers or a complete body, using http.DefaultClient leaves the MCP tool call without any client-side timeout; if the caller keeps the request open and its context has no deadline, the invocation can hang indefinitely. The removed client previously imposed a 30-second timeout, so activation should install a dedicated client with a bounded timeout rather than the unbounded default.

Useful? React with 👍 / 👎.

Base automatically changed from rebuild/remove-legacy to master August 12, 2026 14:29
Expose Cursor Cloud Agents tools to the Agents plugin via MCP, using an
admin-configured service account API key. Shared cursorapi client and
hydration cache land here for the MCP tools.

Co-authored-by: Cursor <cursoragent@cursor.com>

@crspeller crspeller left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I want this!

@nickmisasi
nickmisasi merged commit d0a62ee into master Aug 27, 2026
1 check 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