GT

guacsec/trustify-mcp

Developer tools
4 stars 7 forks Quality 61 Trend 26Apache-2.0

Model Context Protocol (MCP) server for Trustify

Overview

This project provides an implementation of on MCP (Model Context Protocol) server relying upon the official MCP rust-sdk and heavily inspired but the examples that project provides. Both the Stdio and SSE transports are supported. To run the MCP server, both stdio and SSE, some env variables must be provided in order to interact with a Trustify instance: - API_URL: the base URL of a Trustify instance - OPENID_ISSUER_URL: The URL of the issuer fpr the OpenID provider - OPENID_CLIENT_ID: The ID of the client for the OpenID provider - OPENID_CLIENT_SECRET: The secret of the client for the OpenID provider For development purposes, the authentication to the MCP server (not to the remote Trustify APIs) can be disabled running the MCP server with the environment variable AUTH_DISABLED=true. The MCP Clients, e.g.

README

mcp

This project provides an implementation of on MCP (Model Context Protocol) server relying upon the official MCP rust-sdk and heavily inspired but the examples that project provides. Both the Stdio and SSE transports are supported.

Env variables

To run the MCP server, both stdio and SSE, some env variables must be provided in order to interact with a Trustify instance:

  • API_URL: the base URL of a Trustify instance
  • OPENID_ISSUER_URL: The URL of the issuer fpr the OpenID provider
  • OPENID_CLIENT_ID: The ID of the client for the OpenID provider
  • OPENID_CLIENT_SECRET: The secret of the client for the OpenID provider

For development purposes, the authentication to the MCP server (not to the remote Trustify APIs) can be disabled running the MCP server with the environment variable AUTH_DISABLED=true.

Stdio

The MCP Clients, e.g. MCP Inspector and Claude Desktop, usually requires the path to the binary of the MCP Server so it’s a matter of building the Trustify MCP Server with the stdio transportation in order to consume it from MCP Clients.
To build it, run the command:

cargo build --release --bin stdio

and the built binary for the Trustify MCP Server will be available at the path target/release/stdio.

SSE

To run the MCP Server with the SSE transportation using cargo run, execute

API_URL= OPENID_ISSUER_URL= OPENID_CLIENT_ID= OPENID_CLIENT_SECRET= cargo run --release --bin sse

and it will be available at the URL http://localhost:8081/sse

Streamable HTTP

To run the MCP Server with the Streamable HTTP transportation using cargo run, execute

API_URL= OPENID_ISSUER_URL= OPENID_CLIENT_ID= OPENID_CLIENT_SECRET= cargo run --release --bin streamable

and it will be available at the URL http://localhost:8082/mcp

View the full README on GitHub

Install

This server does not publish a one-line install command.

Open the repository installation guide New to MCP? Start with the mcpskill.org guide →