1. Deploy Tazama with Nextdocs MCP in Under 20 Minutes
Tazama is not especially difficult to run locally. What makes the first deployment annoying is everything around it.
The project is split across multiple services and repositories, and the deployment itself depends on knowing which repository contains the current stack definition, which Compose configuration to use, which services are optional, and which documentation applies to your setup. Tazama provides a dedicated tazama-stack repository with composable Docker Compose configurations for local development, exploration, and testing.
For a human, figuring this out usually means jumping between documentation, GitHub repositories, READMEs, environment files, and deployment guides. For an AI agent, it means something slightly worse: context acquisition.
Before the agent can help with the actual deployment, it first has to discover the project structure, read the relevant repositories, determine which instructions are still current, and build enough context to reason about the stack. Thus, AI agent loses time and costs on tedious actions each session.
Instead of asking the agent to rediscover the whole ecosystem from scratch, you can give it access to an indexed project knowledge base through the Nextdocs MCP server. The agent can retrieve the specific pieces of documentation and source context it needs, when it needs them:
Conceptually, the workflow changes from:
Agent
├── clone repository
├── inspect README
├── search GitHub
├── inspect another repository
├── read deployment docs
├── inspect Compose files
├── resolve service relationships
└── finally start workingto:
Agent
├── query Nextdocs for Tazama deployment context
├── inspect the relevant stack files
├── verify the proposed deployment
└── execute itThe important difference is not that Nextdocs somehow replaces the repositories, but rather giving agent a much cheaper and more structured way to find the right repository, file, page, or architectural relationship before loading unnecessary context.
In this guide, we will connect an AI coding agent to Nextdocs, use it to research the Tazama deployment, and then let the agent prepare and launch a local Docker Compose environment.
Scope: this tutorial is intended for a local development or evaluation deployment. The Compose-based Tazama stack should not be treated as a production deployment architecture without additional hardening and infrastructure work. That's also the position of
tazama-stackrepository deliverables.
1. Install the Nextdocs MCP server
The first thing the agent needs is access to Nextdocs.
You can connect Nextdocs as an MCP server in several ways.
Option A — Add it from Nextdocs
In the Nextdocs Web UI:
Open Ask about <Organization Name> on the main page of the Nextdocs Web.
Click Add MCP.
Follow the setup instructions for your agent or editor.
Option B — Add it directly using CLI
For Claude Code, the configuration can be added directly from the terminal:
claude mcp add \
--scope user \
--transport http \
nextdocs \
https://mcp.nextdocs.ai/mcpOther AI agents might have slightly different syntax, but the idea is using HTTP MCP tansport for nextdocs. You will also be prompted to log into the Nextdocs to gain the MCP access.
Once this connection exists, the agent can retrieve project context through Nextdocs instead of treating every task as a cold start.
2. Ask the agent to investigate before deploying
Now that you have the MCP, you could immediately give the agent a prompt like this:
Use Nextdocs MCP to find information about deploying Tazama. Based on your findings, deploy the local Tazama stack using Docker Compose.
For a quick demo, that may be enough.
For infrastructure, however, it is better to make the process explicit.
Tazama is a financial monitoring platform. Even in a development environment, you generally want to know what the agent intends to run before it starts creating containers, networks, volumes, and configuration files.
A better first prompt is:
Use Nextdocs MCP to research the current local Tazama deployment procedure.
Before executing anything:
identify the repository and deployment configuration you intend to use;
list the services that will be started;
identify required environment variables, ports, volumes, and external dependencies;
explain which steps come from official Tazama documentation or repository configuration;
produce the exact commands you intend to run.
Do not start the deployment until I approve the plan.
This changes the workflow from:
research → executeinto:
research → explain → verify → executeFor infrastructure work, that additional verification step is worth keeping.
Additionally, you can use more of the Nextdocs MCP capabilities: create new projects to keep the new documentations (e.g., agent specific workflows documentations, or just a new documentation in a format that is less problematic to handle, rather than resolving git merge conflicts each time documentation is changed), reports from the agent, task tracking and much more. Just add it to your prompt!
3. Let Nextdocs handle project discovery
At this point, the agent should use Nextdocs to answer questions such as:
Which repository contains the current local deployment?
Is Docker Compose the expected local deployment mechanism?
Which Compose files define the core stack?
Which services are included?
Are there optional extensions?
What prerequisites are required?
Is the configuration intended for development, testing, or production?
This is exactly the kind of discovery that is straightforward for a developer but potentially expensive for an AI agent when it has to repeatedly crawl documentation and repositories by itself.
Instead, we recommend your interaction loop to look something like this:
4. Review the deployment plan
Before approving the deployment, quickly inspect what the agent found. It's worth spending more time, if you consider using these artifacts for something bigger than the sandbox mode, as AI should not be treated reliable for such important services.
For a local setup, you should expect the plan to reference Tazama's stack/deployment configuration rather than inventing a deployment by cloning individual microservices and manually connecting them.
5. Deploy
Once the plan looks correct, tell the agent:
Proceed with the deployment exactly as described.
After each major step, verify that it succeeded before continuing.
Do not silently replace failing services or change configuration.
If something fails, stop and explain the failure first.
Obviously, you can omit the verification, or add the Nextdocs involvement in there (e.g., Report your process using a new Nextdocs project named "Tazama deployment" ). That's up to you and your constraints.
Most likely you would need to wait for a while to download the containers and such, so you can have a cofee-break meanwhile. After that, you most likely would want to verify and test the deployment.
Why use Nextdocs here?
At this point, we can return to the obvious question:
Why do I need Nextdocs if my AI agent can already read GitHub and documentation?
Because access to information and efficient access to the right information are different problems:
Without an indexed project context, an agent often spends a substantial part of its context window doing repository archaeology:
search
→ read
→ discover another repository
→ read
→ find another README
→ compare documentation
→ inspect configuration
→ reconstruct architecture
→ finally start working on the actual taskThat works. But it is not particularly efficient. With Nextdocs, much of that discovery moves into a dedicated retrieval layer, which saves up costs, context and time per average agentic session.
The difference can be visualized like this:
WITHOUT NEXTDOCS
Agent context window
┌────────────────────────────────────┐
│ repository discovery │
│ documentation discovery │
│ cross-repository navigation │
│ README parsing │
│ configuration discovery │
│ architecture reconstruction │
│ │
│ actual task │
└────────────────────────────────────┘
WITH NEXTDOCS
Agent context window
┌────────────────────────────────────┐
│ targeted retrieved context │
│ │
│ actual task │
│ actual task │
│ actual task │
│ actual task │
│ actual task │
└────────────────────────────────────┘For a platform made up of many services, deployment configurations, architectural documents, schemas, integration guides, and supporting repositories, it becomes increasingly valuable. You spend fewer tokens teaching the agent what the project is and more tokens actually working on the project.
Nextdocs is not only useful during deployment
Once the MCP connection is configured, the same workflow remains useful after the stack is running.
You can start asking project-level questions directly.
For example:
Which Tazama service consumes X NATS subject?Or:
Find the code path responsible for processing pacs.008 messages.Or:
Show me where typology results are aggregated before reaching CMS.Or:
Which services depend on Valkey?You can also move beyond simple search:
Create a diagram of the transaction path from TMS through rule processors and typology processors.Or use it while changing the system:
Find the relevant documentation and code for adding a new rule processor.This is where the value of Nextdocs becomes more obvious.
During deployment, it saves the agent from having to reconstruct the project before doing anything useful.
During development, it becomes a persistent navigation layer across the entire platform.
Instead of repeatedly asking:
Where is this implemented?
you can start asking:
How does this part of the system work, and what do I need to change?
Wrapping up: What did we actually achieve?
In this tutorial, we:
connected an AI coding agent to Nextdocs through MCP;
used Nextdocs to discover the current Tazama deployment procedure
deployed the local Docker Compose stack under a few minutes.
That might sound a bit bland, however we can assure you wouldn't want to spend the time doing all of these tasks youself. Not without Nextdocs at least ;)