
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
@agentmark-ai/mcp-server
Advanced tools
MCP (Model Context Protocol) server for AgentMark trace debugging. This server enables AI assistants to query and analyze traces from your AgentMark applications.
npm install @agentmark-ai/mcp-server
# or
yarn add @agentmark-ai/mcp-server
Run the MCP server directly:
npx @agentmark-ai/mcp-server
Add to your project's .mcp.json:
{
"mcpServers": {
"agentmark-traces": {
"command": "npx",
"args": ["@agentmark-ai/mcp-server"],
"env": {
"AGENTMARK_URL": "http://localhost:9418"
}
}
}
}
Add to your project's .cursor/mcp.json:
{
"mcpServers": {
"agentmark-traces": {
"command": "npx",
"args": ["@agentmark-ai/mcp-server"],
"env": {
"AGENTMARK_URL": "http://localhost:9418"
}
}
}
}
Add to your Claude Desktop configuration (claude_desktop_config.json):
{
"mcpServers": {
"agentmark-traces": {
"command": "npx",
"args": ["@agentmark-ai/mcp-server"],
"env": {
"AGENTMARK_URL": "http://localhost:9418"
}
}
}
}
For AM Cloud integration, add your API key:
{
"mcpServers": {
"agentmark-traces": {
"command": "npx",
"args": ["@agentmark-ai/mcp-server"],
"env": {
"AGENTMARK_URL": "https://api.agentmark.ai",
"AGENTMARK_API_KEY": "your-api-key"
}
}
}
}
For local development, this MCP server connects to the AgentMark CLI local API server:
agentmark dev)| Environment Variable | Default | Description |
|---|---|---|
AGENTMARK_URL | http://localhost:9418 | URL of the AgentMark API server |
AGENTMARK_API_KEY | - | API key for authentication (required for cloud) |
AGENTMARK_TIMEOUT_MS | 30000 | Request timeout in milliseconds |
list_tracesList recent traces with metadata including IDs, names, status, latency, cost, and token counts. Supports cursor-based pagination.
Parameters:
limit (optional): Maximum traces to return (default: 50, max: 200)sessionId (optional): Filter by session IDdatasetRunId (optional): Filter by dataset run IDcursor (optional): Pagination cursor from previous responseReturns:
{
"items": [...],
"cursor": "eyJvZmZzZXQiOjUwfQ==",
"hasMore": true
}
get_traceGet trace summary with filtered/paginated spans. Includes trace metadata (status, latency, cost, tokens) and spans matching your filters.
Parameters:
traceId (required): The trace ID to retrievefilters (optional): Array of filter objects with field, operator, and valuelimit (optional): Results per page (default: 50, max: 200)cursor (optional): Pagination cursor from previous responseSupported Filters:
| Field | Operators | Description |
|---|---|---|
status | eq | Span status ("0"=ok, "1"=warning, "2"=error) |
duration | gt, gte, lt, lte | Span duration in milliseconds |
name | contains | Span name substring match |
data.type | eq | Span type ("GENERATION", "SPAN", "EVENT") |
data.model | contains | Model name substring match |
Note: Duration filters use >= for gt/gte and <= for lt/lte at the database level.
Example - Get trace with error spans:
{
"traceId": "trace-123",
"filters": [
{ "field": "status", "operator": "eq", "value": "2" }
]
}
Example - Find slow LLM generations in a trace:
{
"traceId": "trace-123",
"filters": [
{ "field": "data.type", "operator": "eq", "value": "GENERATION" },
{ "field": "duration", "operator": "gt", "value": 5000 }
]
}
Returns:
{
"trace": {
"id": "trace-123",
"name": "my-trace",
"spans": [],
"data": {
"status": "0",
"latency": 1234,
"cost": 0.05,
"tokens": 500
}
},
"spans": {
"items": [...],
"cursor": "eyJvZmZzZXQiOjUwfQ==",
"hasMore": true
}
}
## Error Handling
All tools return structured errors with codes:
```json
{
"error": "Trace not found: trace-123",
"code": "NOT_FOUND",
"details": { "traceId": "trace-123" }
}
Error Codes:
CONNECTION_FAILED - Cannot reach data sourceINVALID_QUERY - Malformed filter or unsupported field/operator combinationNOT_FOUND - Resource doesn't existTIMEOUT - Request exceeded time limitimport { createMCPServer, runServer } from '@agentmark-ai/mcp-server';
// Run the server with stdio transport
await runServer();
// Or create a server instance for custom transport
const server = await createMCPServer();
MIT
FAQs
MCP server for AgentMark trace debugging
We found that @agentmark-ai/mcp-server demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.