
Security News
npm ‘is’ Package Hijacked in Expanding Supply Chain Attack
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
@trackunit/mcp-server
Advanced tools
Model Context Protocol (MCP) server for Trackunit's GQL API with schema introspection, query validation, and execution capabilities.
Model Context Protocol (MCP) server for Trackunit's GQL API with schema introspection, query validation, and execution capabilities.
This MCP server provides three complementary tools for working with Trackunit's GQL API:
introspect-schema
- Discover available fields, types, and operationsvalidate-query
- Test query syntax without authenticationexecute-query
- Execute queries and get real dataintrospect-schema
Explore the Trackunit's GQL schema by searching for fields and types. Generates sample queries.
Parameters:
keywords
- Search terms (e.g. ["user", "asset", "location"]
)operationType
- "query"
, "mutation"
, or "subscription"
(default: "query"
)generateQuery
- Auto-generate sample query (default: true
)validate-query
Test if a GraphQL query is valid by sending it without authentication. Returns validation errors or confirms the query is correct.
Parameters:
query
- GraphQL query to validatevariables
- Optional query variablesuseIntrospection
- Load schema for better error suggestions (default: true
)Logic: Valid queries return UNAUTHENTICATED
errors. Invalid queries return GRAPHQL_VALIDATION_FAILED
errors.
execute-query
Execute GraphQL queries against the authenticated endpoint. Requires authentication.
Parameters:
query
- GraphQL query to executevariables
- Optional query variablesTU_ENV
- Environment (PROD
, STAGE
, DEV
, default: PROD
)TU_TOKEN
- Optional: Use existing token instead of OAuth flowStandalone:
# Build and run
nx build mcp-server
./apps/mcp-server/run.sh
# Or with environment
TU_ENV=STAGE ./apps/mcp-server/run.sh
With Cursor:
Add to .cursor/mcp.json
:
{
"mcpServers": {
"trackunit-mcp": {
"command": "./apps/mcp-server/run.sh"
}
}
}
The server uses OAuth device flow for Trackunit's GraphQL API:
execute-query
requires authenticationvalidate-query
intentionally omits authentication for validation testingintrospect-schema
does not require authenticationFor more info and a full guide on Iris App SDK Development, please visit our Developer Hub.
At this point this library is only developed by Trackunit Employees.
For development related information see the development readme.
This package was developed by Trackunit ApS. Trackunit is the leading SaaS-based IoT solution for the construction industry, offering an ecosystem of hardware, fleet management software & telematics.
FAQs
Model Context Protocol (MCP) server for Trackunit's GQL API with schema introspection, query validation, and execution capabilities.
The npm package @trackunit/mcp-server receives a total of 236 weekly downloads. As such, @trackunit/mcp-server popularity was classified as not popular.
We found that @trackunit/mcp-server demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
Security News
A critical flaw in the popular npm form-data package could allow HTTP parameter pollution, affecting millions of projects until patched versions are adopted.
Security News
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.