Skip to content

BrainAPI is a knowledge graph–powered AI memory layer that transforms unstructured data into structured knowledge, enabling intelligent search, recommendations, and contextual memory for AI agents and applications.

fix(mcp): routing

Christian52d964d5a4cc
diff --git a/README.md b/README.md
index 023fd6a..825b180 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
<p align="center">
<a href="https://discord.gg/VTngQTaeDf"><img src="https://img.shields.io/badge/Discord-Join%20Lumen%20Brain-5865F2?style=for-the-badge&logo=discord&logoColor=white" alt="Discord"/></a>
- <img src="https://img.shields.io/badge/version-2.7.16--dev-blue?style=for-the-badge" alt="Version"/>
+ <img src="https://img.shields.io/badge/version-2.7.17--dev-blue?style=for-the-badge" alt="Version"/>
<img src="https://img.shields.io/badge/python-3.11+-green?style=for-the-badge&logo=python&logoColor=white" alt="Python"/>
<img src="https://img.shields.io/badge/license-AGPLv3%20%2B%20Commons%20Clause-purple?style=for-the-badge" alt="License"/>
</p>
diff --git a/pyproject.toml b/pyproject.toml
index ac42542..1fbb3fd 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[project]
name = "brainapi2"
-version = "2.7.16-dev"
+version = "2.7.17-dev"
description = "Version 2.x.x of the BrainAPI memory layer."
authors = [
{name = "Christian",email = "[email protected]"}
diff --git a/src/services/mcp/app.py b/src/services/mcp/app.py
index f5d2374..d62cb58 100644
--- a/src/services/mcp/app.py
+++ b/src/services/mcp/app.py
@@ -24,11 +24,12 @@ async def _mcp_info(_request):
)
+_custom_routes = [
+ Route("/", _health, methods=["GET"]),
+ Route("/mcp", _mcp_info, methods=["GET"]),
+ Route("/mcp/info", _mcp_info, methods=["GET"]),
+]
app = Starlette(
- routes=[
- Route("/", _health, methods=["GET"]),
- Route("/mcp", _mcp_info, methods=["GET"]),
- *_mcp_app.routes,
- ],
+ routes=_custom_routes + list(_mcp_app.routes),
lifespan=_mcp_app.router.lifespan_context,
)