Get the FREE Ultimate OpenClaw Setup Guide →

heroku-agentforce

This repository has 4 different MCP projects that demonstrates some of the inner workings of the MCP and architectural patterns when integrating with various Agents as well as Agentforce.

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio mvrzan-heroku-agentforce-mcp node server.js \
  --env PORT="The port the MCP server should listen on. Heroku assigns this automatically." \
  --env MCP_HOST="Optional: host binding if needed." \
  --env MCP_LOG_LEVEL="log level for MCP server (e.g., info, debug)."

How to use

This MCP server hosts the Agentforce integration on Heroku and exposes an MCP server endpoint that the MCP Client can connect to. It enables context provisioning and tool invocation compatible with the MCP standard, specifically supporting the Agentforce workflow and interactions with the surrounding MCP ecosystem. You can point your MCP client at the Heroku app URL to begin exchanging context, prompts, and tool calls with the server, enabling agents to operate using shared capability definitions defined in the MCP configuration. The server is designed to work in tandem with Agentforce’s workflow on Heroku, allowing you to leverage the standardized MCP transports and tool invocation patterns to achieve consistent agent behavior across environments.

How to install

Prerequisites:

  • Node.js (14.x or newer) and npm
  • Git
  • Heroku CLI (optional for deploying to Heroku)

Step-by-step installation:

  1. Clone the repository git clone https://github.com/<username>/mvrzan-heroku-agentforce-mcp.git cd mvrzan-heroku-agentforce-mcp

  2. Install dependencies npm install

  3. Configure environment (local testing). Create a .env file or export vars, for example: PORT=3000 MCP_LOG_LEVEL=info

  4. Run the MCP server locally for testing npm run build (if a build step exists) && node server.js

  5. Deploy to Heroku (optional) heroku create your-app-name git push heroku main heroku config:set PORT=$PORT heroku open

Note: If your project uses a specific start script in package.json, use npm run start accordingly. Ensure any required environment variables described in the mcp_config are set in the hosting environment.

Additional notes

Tips and common issues:

  • On Heroku, the PORT environment variable is assigned by the platform; ensure the server listens on process.env.PORT.
  • Verify that the MCP client is configured to connect to the correct Heroku URL and port.
  • If you see connection issues, check that CORS and network policies allow the MCP client to reach the MCP server endpoint.
  • Keep dependencies up to date and pin versions to avoid breaking changes in the MCP SDK.
  • For local testing, you may simulate the Heroku environment by exporting PORT and other env vars before starting the server.
  • If you modify server behavior, update the MCP configuration accordingly (transport, capabilities, and tools exposed).
  • Monitor logs (MCP_LOG_LEVEL) to troubleshoot payloads and tool invocations.

Related MCP Servers

Sponsor this space

Reach thousands of developers