Setting Up Hopsule MCP for AI Agents

Hopsule MCP (Model Context Protocol) serves as the bridge between your organization’s collective judgment and the AI agents your team utilizes daily. By connecting your AI development tools to the Hopsule memory system, you ensure that every prompt, every line of code, and every architectural suggestion is informed by the accepted decisions and persistent memories that define your engineering culture. This guide provides an exhaustive walkthrough for establishing this connection, enabling a state of continuous remembrance across your entire AI-augmented workflow.

In an era where AI agents can generate vast amounts of code and documentation in seconds, the risk of organizational drift—where work contradicts established standards—is higher than ever. Hopsule MCP mitigates this risk by providing a read-only, authoritative stream of context directly to the agent's reasoning engine. This ensures that your AI tools are not just productive, but are operating within the specific governance framework your team has painstakingly built. Enforcement, in this context, is not about restrictive control, but about ensuring the agent remembers what your team has already decided.

Prerequisites

Before beginning the setup process for Hopsule MCP, ensure that you have the following elements in place to guarantee a seamless integration:

  • Active Hopsule Account: You must have an active account with at least one Organization or Project defined.

  • Accepted Decisions: The Hopsule MCP is designed to share Accepted decisions. While Draft and Pending decisions exist within the Hopsule Dashboard, they are not exposed to AI agents via the MCP to maintain the integrity of your governance layer.

  • Context Packs (Capsules): Ensure you have curated at least one active Context Pack. These bundles of decisions and memories act as the primary filtering mechanism for what the AI agent can "see."

  • Compatible Host Application: You will need an MCP-compatible host environment. Common examples include Cursor, Claude Desktop, or any IDE that supports the Model Context Protocol.

  • Administrative Access: To generate the necessary security tokens, you must have the appropriate permissions within your Hopsule Organization.

Step 1: Generating Your Secure Access Token

The first step in connecting Hopsule MCP to your environment is generating a unique, encrypted token. This token acts as the key that allows your local AI agent to communicate with the Hopsule memory layer. All data transmitted is protected by TLS 1.3, and your token is stored using AES-256 encryption at rest.

  1. Log in to the Hopsule Dashboard.

  2. Navigate to the Settings menu by clicking the gear icon in the sidebar.

  3. Select the API & Integrations tab.

  4. Locate the Personal Access Tokens section and click the Generate New Token button.

  5. Provide a descriptive name for the token, such as "MCP-Cursor-Integration" or "Claude-Desktop-Context."

  6. Choose the Read-Only scope. Hopsule MCP is strictly designed for context preservation and remembrance; AI agents are never permitted to mutate your decisions or memories.

  7. Click Create Token.

  8. Important: Copy the token immediately and store it in a secure location. For security reasons, Hopsule will never display this token again once you navigate away from the page.

Step 2: Configuring the Hopsule MCP Connection

Once you have your access token, you must configure your host application to recognize Hopsule as a context provider. While the specific UI may vary between tools, the underlying configuration follows a standardized pattern.

  1. Open your chosen host application (e.g., Cursor or Claude Desktop).

  2. Access the application's Settings or Configuration menu.

  3. Locate the MCP or Context Providers section.

  4. Click the Add New MCP Server button.

  5. Enter "Hopsule" as the name of the provider.

  6. In the Connection Type field, select the appropriate method for your environment (typically command or stdio).

  7. In the Executable Path or Command field, you will point the host to the Hopsule MCP connector. If you are using the Hopsule CLI, this is often handled automatically via a simple command string.

  8. In the Environment Variables or Arguments section, you must provide your token. Use the key HOPSULE_API_KEY and paste the token you generated in Step 1.

  9. Save the configuration. The host application will now attempt to initialize the connection to the Hopsule memory system.

Step 3: Defining Context Scopes with Capsules

One of the most powerful features of Hopsule MCP is the ability to limit an AI agent's context to specific Context Packs (Capsules). This prevents the agent from being overwhelmed by irrelevant decisions and ensures high-precision remembrance.

By default, Hopsule MCP provides access to all Accepted decisions within your primary project. However, you can refine this by passing a Capsule ID in your configuration. This is particularly useful for specialized agents—for example, a "Frontend Agent" should only have access to the "UI Design System" and "React Patterns" Capsules, rather than the "Database Schema" or "Infrastructure Security" decisions.

  1. In the Hopsule Dashboard, navigate to the Capsules view.

  2. Select the Context Pack you wish to share with your AI agent.

  3. Copy the Capsule ID found in the sidebar under the Metadata section.

  4. Return to your host application's MCP configuration.

  5. Add an additional argument or environment variable: HOPSULE_CAPSULE_ID and paste the ID.

  6. Restart the MCP server connection to apply the filter.

Step 4: Verifying the Connection

To ensure that the Hopsule MCP is correctly delivering organizational judgment to your agent, you should perform a verification check. This confirms that the "remembrance" layer is active and accessible.

  1. Open a chat session with your AI agent.

  2. Ask a question regarding a specific, Accepted decision in your Hopsule Dashboard. For example: "What is our current decision regarding error handling in the API?"

  3. If the connection is successful, the agent will cite the decision directly from Hopsule, often including the Memory entries that explain the reasoning behind it.

  4. You can also use the Hopsule Dashboard activity feed to see real-time read requests coming from the MCP connector, providing a full audit trail of how your context is being utilized.

The Philosophy of AI Remembrance

When using Hopsule MCP, it is vital to understand the philosophy of Enforcement as Remembrance. Unlike traditional policy engines that might block code or throw errors after the fact, Hopsule MCP provides the agent with the "why" before the first line of code is even written. By surfacing Memories—the persistent, append-only entries that explain the history and lessons of a project—the AI agent gains access to organizational judgment that would otherwise be lost in the noise of a standard chat session.

The Knowledge Graph (or "Brain") in the Hopsule Dashboard visualizes how these decisions and memories are linked. When an agent accesses a decision via the MCP, it isn't just seeing a text file; it is seeing a node in a complex web of organizational history. This context-awareness is what transforms a generic AI into a specialized partner that understands your team's specific constraints and commitments.

Tips and Best Practices

  • Curate Your Capsules: Do not give every agent access to every decision. Use Context Packs to create lean, high-signal bundles of context that improve the accuracy of the agent's suggestions.

  • Link Memories to Decisions: Ensure every decision has at least one associated Memory. This provides the AI agent with the necessary reasoning to explain why a constraint exists, making it more likely to follow the decision correctly.

  • Monitor the Activity Feed: Regularly check the Activity Feed in the Hopsule Dashboard to see which decisions are being frequently accessed by your AI agents. This can highlight areas where your team's governance is having the most impact.

  • Use Hopper for Drafting: Before a decision is accepted and made available to the MCP, use Hopper (the built-in AI assistant) to check for conflicts with existing decisions. This ensures that the context you provide to your agents is consistent and free of contradictions.

  • Version Your Context: When a major architectural shift occurs, use the Deprecated status for old decisions rather than deleting them. Hopsule preserves these as historical context, allowing agents to understand the evolution of your system.

Troubleshooting

If you encounter issues while setting up or using Hopsule MCP, refer to the following table for common causes and solutions.

Issue

Possible Cause

Solution

Agent cannot see a specific decision.

The decision is still in Draft or Pending status.

Ensure the decision has been Accepted in the Hopsule Dashboard. Only accepted decisions are enforceable.

Connection timed out or "Unauthorized" error.

The Personal Access Token has expired or was entered incorrectly.

Generate a new token in the Hopsule Dashboard and update your host application's configuration.

Agent provides outdated or contradictory context.

The agent is accessing a Deprecated decision or a conflicting Context Pack.

Check the Capsule configuration to ensure only the Active and relevant Context Packs are being shared.

No decisions appear in the agent's context window.

The HOPSULE_CAPSULE_ID is incorrect or the Capsule is empty.

Verify the Capsule ID in the Dashboard and ensure it contains at least one Accepted decision.

Changes in the Dashboard are not reflecting in the agent.

The host application has cached the MCP context.

Restart the MCP server or the host application (e.g., Cursor) to force a refresh of the memory layer.

Related Articles

  • Managing Context Packs (Capsules): Learn how to bundle decisions and memories for different teams and projects to optimize context delivery.

  • The Decision Lifecycle: From Draft to Accepted: Understand how to move your team's commitments through the governance process so they become enforceable via the MCP.

  • Using Hopper for Conflict Detection: Discover how our built-in AI assistant helps you maintain a clean and consistent memory layer by identifying contradictory decisions.

  • Hopsule for VS Code: Inline Enforcement: Explore how to see real-time warnings when your code contradicts accepted decisions, complementing the MCP's agent-based context.

By integrating Hopsule MCP into your development environment, you are taking a significant step toward institutionalizing your team's wisdom. Hopsule ensures that your organizational judgment is never more than a prompt away, turning your AI agents into context-aware extensions of your engineering leadership. Remember: organizations forget, but Hopsule remembers.

SHARE ON SOCIAL MEDIA

Frequent questions

These questions are asked by many of our users

Customer Centric

Frequent questions

These questions are asked by many of our users

Frequent questions

These questions are asked by many of our users

How do I change my billing information?

You can update your billing details from your account settings. Just go to the “Billing” section, click “Edit” next to your payment method, and follow the prompts to update your information securely.

What happens after my free trial ends?

When your free trial ends, your account will automatically move to the free version (if available) or pause until you choose a paid plan. You’ll receive a reminder before the trial expires so you can decide what works best for you.

Do you offer refunds?

We generally don’t offer refunds once a payment has been processed. However, if you experience any billing issues or believe there’s been a mistake, reach out to our support team and we’ll be happy to review your case.

Can I switch plans later?

Absolutely. You can upgrade or downgrade your plan at any time from your account dashboard. Changes usually take effect immediately, and any price difference will be adjusted automatically.

Will I lose my data if I cancel my subscription?

No, your data will remain stored safely. You’ll retain access to your content, but some premium features may be locked after cancellation. You can always upgrade again to regain full access.

How do I upgrade or downgrade my plan?

Go to your account settings, then to the “Subscription” section. There, you can choose a different plan that better suits your needs. Changes are applied right away, and any billing adjustments are handled automatically.

Is there a free plan available?

Yes, we offer a free plan with limited features for users who want to try things out or don’t need the full suite of tools. You can stay on the free plan as long as you’d like.

What payment methods do you accept?

We accept major credit and debit cards, including Visa, Mastercard, American Express, and others. Depending on your location, additional payment options like PayPal may also be available.

Can't find an answer?

Trusted by creators and innovators alike, our tools power growth, streamline workflows, and drive real impact across every industry.

Man pointing finger top

Can't find an answer?

Trusted by creators and innovators alike, our tools power growth, streamline workflows, and drive real impact across every industry.

Man pointing finger top

Can't find an answer?

Trusted by creators and innovators alike, our tools power growth, streamline workflows, and drive real impact across every industry.

Man pointing finger top