Documentation MCP server

Aspose.Total for C++ MCP Server

C++Words + TeXSelf-hosted aspose-total-cpp-mcp

One engine, one endpoint, for the Aspose.Words for C++ and Aspose.TeX for C++ documentation: ask both at once or pick a product, and use each product's own route when you only need one. This deployment covers these two products only, not every Aspose.Total component.

Reference

How it works

  • The server is the Aspose Context Engine with the Words and TeX plugins registered. It indexes each product's documentation and API reference, and your AI client reads from those indexes.
  • Your client calls 9 read-only tools: search the guides, look up an exact signature, list a type's members, and list breaking changes and release features. Nothing is written and no files are touched.
  • One endpoint serves aspose.words, aspose.tex. Leave product_id out to ask every member, or set it to ask one. Each member also keeps its own route on the same server.

Routes served by this one engine:

  • /total/cpp/mcp/v1/streamable-http
  • /words/cpp/mcp/v1/streamable-http (aspose.words)
  • /tex/cpp/mcp/v1/streamable-http (aspose.tex)
Setup

Host Aspose.Total for C++ yourself

No hosted endpoint is provided. You run the engine, its databases and the ingestion step, so plan for a developer machine or a server, not a one-line install.

Before you start

  • Git and Python 3.12 or newer.
  • PostgreSQL, Valkey, RabbitMQ, Qdrant and OpenSearch. The engine's make infra-up starts development copies in Docker; read its environment and ports first so they do not clash with services you already run.
  • An OpenAI-compatible embeddings endpoint, its API key and a model name.
  • On Windows, run every command in WSL 2 (Ubuntu): the helper scripts are POSIX shell scripts. Docker Desktop can provide the services.

1. Get the code and set it up

Do not clone recursively: the engine carries historical documentation submodules this deployment does not need. Setup installs the engine and plugin interpreters and verifies registration. It downloads no documentation and publishes nothing.

git clone https://github.com/aspose-total-mcp/cpp-server.git
cd cpp-server
sh scripts/setup.sh

2. Start the services and configure the engine

Copy engine/.env.example to engine/.env.local and set the values below. make infra-up starts the five services with its own example credentials, so make the connection settings match them (or the credentials you chose). Keep real secrets out of git.

cp engine/.env.example engine/.env.local
make -C engine infra-up
SettingWhat it doesExample
POSTGRES_DSNPostgreSQL connection. It also holds the API-reference symbol store.postgresql+psycopg://adcs:CHANGE_ME@127.0.0.1:5432/adcs
REDIS_URLValkey (Redis-compatible) connection.redis://127.0.0.1:6379/0
RABBITMQ_URLRabbitMQ connection, used by the worker for queued ingestion.amqp://adcs:CHANGE_ME@127.0.0.1:5672//
QDRANT_URLQdrant, the vector store.http://127.0.0.1:6333
OPENSEARCH_URLOpenSearch, the lexical index.http://127.0.0.1:9200
ADCS_PERSISTENCE_BACKENDWhere the engine keeps its records.postgres
ADCS_RETRIEVAL_BACKENDHow retrieval is served.qdrant_opensearch
APIREF_STRUCTURED_STORE_ENABLEDTurns on the four exact-symbol tools (aspose_lookup, get_symbol, list_members, search_symbols). Without it they return an error.true
ADCS_API_KEYKey for the engine's admin API. Generate a random value.CHANGE_ME
ADCS_HASH_SECRETKeys the hash of client IP addresses in logs. The engine warns when it is unset, and reads it from the environment of the process that starts the server, so export it there.CHANGE_ME
ADCS_EMBEDDING_BACKENDThe embeddings provider type.openai_compatible
ADCS_EMBEDDING_API_URLBase URL of an OpenAI-compatible embeddings API.https://embeddings.example.com/v1
ADCS_EMBEDDING_API_KEYThat API's key.YOUR_API_KEY
ADCS_EMBEDDING_MODELThe embedding model. Keep it fixed after ingestion: changing it means re-indexing.your-embedding-model

3. Fetch the documentation sources

Shallow, sparse clones of the documentation and API-reference repositories. Keep the working trees clean.

export GIT_LFS_SKIP_SMUDGE=1
mkdir -p engine/sources
git clone --branch master https://github.com/aspose-words-mcp/docs.git engine/sources/documentation-current
git clone --branch main https://github.com/aspose-words-mcp/reference.git engine/sources/api-reference
git clone --branch main https://github.com/aspose-tex-mcp/docs.git engine/sources/tex-documentation
git clone --branch master https://github.com/aspose-tex-mcp/reference.git engine/sources/tex-api-reference

4. Prepare the code-example cache

This downloads the code examples the documentation references. It is a network step: run it once per cache, and never concurrently.

PYTHONPATH=plugins/words-cpp/src plugins/words-cpp/.venv/bin/python -m adcs_words_cpp.gist_examples --source-root engine/sources/documentation-current/en/cpp --cache plugins/words-cpp/sources/gist-examples.json --resolve-history
PYTHONPATH=plugins/tex-cpp/src plugins/tex-cpp/.venv/bin/python -m adcs_tex_cpp.gist_examples --source-root engine/sources/tex-documentation/en/cpp --cache plugins/tex-cpp/sources/gist-examples.json --resolve-history

5. Validate, then publish the index

Validation checks extraction and publishes nothing. Review it, then publish. Publishing embeds the content, so it calls your embeddings endpoint and takes a while.

# validate: checks extraction, publishes nothing
sh scripts/ingest.sh words --source-kind both --timeout 300
sh scripts/ingest.sh tex --source-kind both --timeout 300

# publish: embeds the content into the index
sh scripts/ingest.sh words --source-kind docs --publish --timeout 300
sh scripts/ingest.sh words --source-kind apiref --publish --timeout 300
sh scripts/ingest.sh tex --source-kind docs --publish --timeout 300
sh scripts/ingest.sh tex --source-kind apiref --publish --timeout 300

6. Run the server

Always use the run-engine.sh wrapper, which selects this deployment's plugin catalog. The worker is only needed for queued ingestion (--enqueue).

sh scripts/run-engine.sh -m uvicorn adcs.api.main:app --host 127.0.0.1 --port 18082

# separate terminal, only for queued ingestion
sh scripts/run-engine.sh -m celery -A adcs.worker.celery_app:celery_app worker --loglevel=info

7. Check it works

A running process and a successful initialize do not prove the index has content. Call a tool and look at the citations it returns.

curl http://127.0.0.1:18082/healthz
Setup

Connect your AI client to Aspose.Total for C++

The address below is the local one from the steps above. Use your own host in its place, with TLS and authentication set up to match your engine settings; these examples supply no credentials.

claude mcp add --transport http total-cpp http://127.0.0.1:18082/total/cpp/mcp/v1/streamable-http
Try it

Example prompts

  • Using the Aspose.Total for C++ MCP server, compare how Aspose.Words and Aspose.TeX for C++ convert a document to PDF.
  • Ask only Aspose.TeX for C++: which class holds the options for a TeX conversion?
  • Ask only Aspose.Words for C++: what is the exact signature of the method that saves a document to a file?
Reference

Available tools (9)

Every tool this server exposes, read from the running server's own tool list. The language is fixed to C++; product_id is optional and takes the products listed here.

ToolDescriptionParameters
resolve_product List this endpoint's allowed products and fixed .NET language. Select product_id to return one product's scope. Optional query text does not change the allowed products. Read-only query: string, product_id: string (one of aspose.words, aspose.tex)
prompt: which products does the aspose total cpp mcp server cover?
prompt: resolve the product for the query 'latex' using the aspose total cpp mcp server, product aspose.tex
query_docs query_docs for Aspose.Total for C++: Aspose.Words for C++, Aspose.TeX for C++. Omit product_id to query all members: results_by_product contains one product_id and result (or not_found) per product. Limits and pagination apply per product. Select product_id for the normal single-product response. Read-only query: string (required), product_id: string (one of aspose.words, aspose.tex)
prompt: search the docs of both products for how to convert a document to PDF using the aspose total cpp mcp server
prompt: search only aspose.tex for how to convert a LaTeX document to PDF using the aspose total cpp mcp server
get_symbol_doc get_symbol_doc for Aspose.Total for C++: Aspose.Words for C++, Aspose.TeX for C++. Omit product_id to query all members: results_by_product contains one product_id and result (or not_found) per product. Limits and pagination apply per product. Select product_id for the normal single-product response. Read-only product_id: string (one of aspose.words, aspose.tex), symbol_fqn: string (required)
prompt: get the documentation for Aspose.Words.Document.Save from aspose.words using the aspose total cpp mcp server
prompt: get the documentation for Aspose.TeX.TeXOptions using the aspose total cpp mcp server
list_breaking_changes list_breaking_changes for Aspose.Total for C++: Aspose.Words for C++, Aspose.TeX for C++. Omit product_id to query all members: results_by_product contains one product_id and result (or not_found) per product. Limits and pagination apply per product. Select product_id for the normal single-product response. Read-only product_id: string (one of aspose.words, aspose.tex), from_version: string (required), to_version: string (required)
prompt: list the breaking changes between 25.10 and 26.10 for aspose.words using the aspose total cpp mcp server
list_latest_release_features list_latest_release_features for Aspose.Total for C++: Aspose.Words for C++, Aspose.TeX for C++. Omit product_id to query all members: results_by_product contains one product_id and result (or not_found) per product. Limits and pagination apply per product. Select product_id for the normal single-product response. Read-only product_id: string (one of aspose.words, aspose.tex), version: string, top_k: integer
prompt: list the new features in the latest release of both products using the aspose total cpp mcp server
prompt: list the top 5 new features of latest-stable for aspose.words using the aspose total cpp mcp server
aspose_lookup aspose_lookup for Aspose.Total for C++: Aspose.Words for C++, Aspose.TeX for C++. Omit product_id to query all members: results_by_product contains one product_id and result (or not_found) per product. Limits and pagination apply per product. Select product_id for the normal single-product response. Read-only query: string (required), product_id: string (one of aspose.words, aspose.tex), version: string, limit: integer
prompt: look up the class for mail merge in aspose.words using the aspose total cpp mcp server
prompt: look up PdfDevice in latest-stable and show up to 5 matches using the aspose total cpp mcp server
get_symbol get_symbol for Aspose.Total for C++: Aspose.Words for C++, Aspose.TeX for C++. Omit product_id to query all members: results_by_product contains one product_id and result (or not_found) per product. Limits and pagination apply per product. Select product_id for the normal single-product response. Read-only product_id: string (one of aspose.words, aspose.tex), version: string, symbol_fqn: string (required)
prompt: get every overload of Aspose.Words.Document.Save with its signature using the aspose total cpp mcp server
prompt: get Aspose.TeX.TeXOptions for latest-stable from aspose.tex using the aspose total cpp mcp server
list_members list_members for Aspose.Total for C++: Aspose.Words for C++, Aspose.TeX for C++. Omit product_id to query all members: results_by_product contains one product_id and result (or not_found) per product. Limits and pagination apply per product. Select product_id for the normal single-product response. Read-only product_id: string (one of aspose.words, aspose.tex), version: string, parent_fqn: string (required)
prompt: list the members of Aspose.Words.Document using the aspose total cpp mcp server
prompt: list the members of Aspose.TeX.TeXOptions for latest-stable from aspose.tex using the aspose total cpp mcp server
search_symbols search_symbols for Aspose.Total for C++: Aspose.Words for C++, Aspose.TeX for C++. Omit product_id to query all members: results_by_product contains one product_id and result (or not_found) per product. Limits and pagination apply per product. Select product_id for the normal single-product response. Read-only product_id: string (one of aspose.words, aspose.tex), version: string, query: string (required), limit: integer
prompt: search both products' APIs for symbols about saving as pdf using the aspose total cpp mcp server
prompt: search the latest-stable aspose.words API for 'save as pdf' and show the top 5 using the aspose total cpp mcp server
Reference

Source code and components

Pinned to exact commits, because these repositories publish no release tags.

ComponentRepositoryCommit
Deployment (this server)aspose-total-mcp/cpp-serverd245e10
Context engineaspose-core-mcp/context-enginee917d8c
words-cpp pluginaspose-words-mcp/cpp-plugin23366c7
tex-cpp pluginaspose-tex-mcp/cpp-plugin13e0d67

Documentation sources it indexes

RepositoryBranchFolder
aspose-words-mcp/docsmasteren/cpp
aspose-words-mcp/referencemainenglish/cpp
aspose-tex-mcp/docsmainen/cpp
aspose-tex-mcp/referencemasterenglish/cpp
Troubleshooting

Good to know

  • The deployment bundles no indexed documentation and no hosted endpoint. Until you ingest, the tools have nothing to return.
  • The steps above index one documentation version, latest-stable, so list_breaking_changes returned no items when we tried it.
  • The engine still defines routes for other products and for Total. This deployment does not remove them, so restrict the exposed paths at your ingress if you want only this one.

Observed when we called the tools on this pinned commit:

  • With product_id left out, each product answers separately. A symbol that exists in only one product comes back as not_found for the other.
  • Symbols are indexed under dotted names such as Aspose.Words.Document.Save, although their signatures are C++ (Aspose::Words::Document::Save). get_symbol_doc needs that fully-qualified form: a short name such as Document.Save was rejected.
  • list_latest_release_features returned one item for aspose.words ("Welcome to Aspose.Words for C++!") and an error for aspose.tex ("No release or migration notes were found"). Aspose.Words for C++'s and Aspose.TeX for C++'s own servers each returned 12 items for the same call, so the answers differ from the individual servers; we did not find out why.
  • Asking for a version other than latest-stable, such as 26.10, returned an error, because only latest-stable is indexed.
  • On Linux, the scripts in a fresh clone are not executable, so sh scripts/ingest.sh fails with "Permission denied" when it starts run-engine.sh. Run chmod +x scripts/*.sh first.