TraceNexus
WORK IN PROGRESS
This project is under active development and should be considered experimental.
TraceNexus is an MCP (Model Context Protocol) server for LLM observability traces. It currently supports LangSmith and Langfuse and runs both MCP transports:
streamable-httpfor clients like Cursorsse
Quick Start
1. Prerequisites
- Python 3.11+
2. Install
pip install --upgrade tracenexus
3. Configure
Create a .env file where you run tracenexus.
If you are running from a cloned repo, start with:
cp .env.example .env
Example .env:
# LangSmith configuration (comma-separated)
LANGSMITH_API_KEYS="prod-api-key,dev-api-key"
LANGSMITH_NAMES="prod,dev"
# Langfuse configuration (comma-separated)
LANGFUSE_NAMES="dev,prod,staging,nightly,services"
LANGFUSE_PUBLIC_KEYS="pk_dev,pk_prod,pk_staging,pk_nightly,pk_services"
LANGFUSE_SECRET_KEYS="sk_dev,sk_prod,sk_staging,sk_nightly,sk_services"
LANGFUSE_HOSTS="https://cloud.langfuse.com,https://cloud.langfuse.com,https://cloud.langfuse.com,https://cloud.langfuse.com,https://cloud.langfuse.com"
Rules:
- Values are positional. Item
Nin each list must describe the same project. - If multiple projects share one host, repeat that host value.
- Restart
tracenexusafter.envchanges.
4. Run
tracenexus
Default endpoints:
- HTTP:
http://localhost:52734/mcp - SSE:
http://localhost:52735/sse
5. Connect Your MCP Client
For Claude Code:
claude mcp add tracenexus --transport streamable-http --url http://localhost:52734/mcp
For Cursor:
{
"mcpServers": {
"tracenexus": {
"transport": "streamable-http",
"url": "http://localhost:52734/mcp"
}
}
}
Tool Naming
TraceNexus exposes tools in this format:
langsmith_<name>_get_tracelangfuse_<name>_get_trace
If a configured name contains dashes, they become underscores in tool names.
Troubleshooting
404 ... not found within authorized project: Key is valid, but mapped to the wrong project for that trace ID.401 ... invalid credentials: Key and host do not belong together.- Tool names not updated after changing
.env: Restarttracenexus.
Contributing
Contributor/developer workflow is documented in CONTRIBUTING.md.
License
This project is licensed under MIT. See LICENSE.md.
Metadata
Release files for tracenexus 0.1.15
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tracenexus-0.1.15.tar.gz | 7.0 kB | Without provenance | Details for tracenexus-0.1.15.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tracenexus-0.1.15-py3-none-any.whl | Python 3 | none | any | Details for tracenexus-0.1.15-py3-none-any.whl |
Total release size: 17.4 kB
Release files / tracenexus-0.1.15.tar.gz
| Download URL | tracenexus-0.1.15.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f3b3dd7b71c9cb9f1d2dbf222d3547bee90bcb476814164da0becaf9db55ed87
|
|
BLAKE2b-256 checksum How to use checksums |
ee42349bf5fdf12509e65135013a500fce2a27ed81ee3f3fbb9675ad605a3bdc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.11.8 Linux/6.18.33.1-microsoft-standard-WSL2
|
Release files / tracenexus-0.1.15-py3-none-any.whl
| Download URL | tracenexus-0.1.15-py3-none-any.whl |
|---|---|
| Size | 10.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
de1e2d556e9170654b84447f7b79349f04198f7bfea29b7ab77909f668167662
|
|
BLAKE2b-256 checksum How to use checksums |
494327387bd770a831e97d9451be1d50af34ebf2e5804e7be642ea3414130efa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.11.8 Linux/6.18.33.1-microsoft-standard-WSL2
|
Security for tracenexus 0.1.15
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.