Complete CloudPi FinOps MCP server - #2
Draft
PDI-Puru wants to merge 2 commits into
Draft
Conversation
Expand the skeleton into a production MCP server with a typed API client, 40+ tools across cost, budgets, recommendations, tags, governance, and operations, plus resources, prompts, stdio/HTTP transports, and tests. Co-authored-by: Puru Vangala <PDI-Puru@users.noreply.github.com>
Add an index signature to ToolResult so registerTool callbacks match the SDK CallToolResult type. Co-authored-by: Puru Vangala <PDI-Puru@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Turns the initial CloudPi MCP skeleton into a usable FinOps MCP server for Cursor and other MCP clients.
/apiprefix, and normalized API errorscloudpi://status,cloudpi://guide,cloudpi://workspaces) and prompts for spend, budget, optimization, tags, and governance reviews.env.example, Cursor MCP config example, and Vitest coverage for config, client, responses, and an in-memory MCP protocol round-tripHow to use
npm install cp .env.example .env # set CLOUDPI_BASE_URL and CLOUDPI_JWT_TOKEN npm run buildPoint Cursor MCP settings at
node dist/index.jswith those env vars. Write tools require CloudPi WRITE RBAC.Testing
Verified locally:
npm run typecheck— passnpm test— 18 tests pass (config, client, responses, MCP protocol)npm run build— passlist_workspacescallSee
mcp_server_verification.login the walkthrough artifacts.