Skip to content

Conversation

@msafarik
Copy link
Collaborator

Implementation of MCP server in go with 5 tools:
get agent status(agent uuid): Queries the Verifier for the
attestation status of a specific agent.
get failed agents(): Gets a list of all agents, queries the status of
each, and returns only those that are in a ”failed” state.
reactivate agent(agent uuid): Sends a command to the Verifier
to reactivate a failed agent.
get agent policies(agent uuid): Fetches the IMA and TPM
policies associated with an agent from the Verifier.

Marek Safarik added 15 commits October 27, 2025 15:23
…educe redundancy for future handlers and endpoints. This version does not use TLS or certificates.

Signed-off-by: Marek Safarik <[email protected]>
Signed-off-by: Marek Safarik <[email protected]>
Signed-off-by: Marek Safarik <[email protected]>
Signed-off-by: Marek Safarik <[email protected]>
Signed-off-by: Marek Safarik <[email protected]>
Signed-off-by: Marek Safarik <[email protected]>
Signed-off-by: Marek Safarik <[email protected]>
Signed-off-by: Marek Safarik <[email protected]>
Signed-off-by: Marek Safarik <[email protected]>
Signed-off-by: Marek Safarik <[email protected]>
@msafarik msafarik requested a review from sarroutbi November 11, 2025 11:09
@msafarik msafarik self-assigned this Nov 11, 2025
@sarroutbi sarroutbi changed the title Mcp server MCP server Nov 11, 2025
backend/main.go Outdated
}

func loadConfig() {
certDir := getEnv("KEYLIME_CERT_DIR", "/home/msafarik/.keylime/certs") // TODO: Make this configurable or better way to set this (just for debugging purposes)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, do not include references to personal home directories. Please, add better something like:

certDir := getEnv("KEYLIME_CERT_DIR", filepath.Join(os.Getenv("HOME"), ".keylime/certs"))

Copy link
Collaborator

@sarroutbi sarroutbi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, do not upload binary files (remove backend/server from PR)

Signed-off-by: Marek Safarik <[email protected]>
@msafarik msafarik requested a review from sarroutbi November 12, 2025 10:21
@msafarik msafarik merged commit 39931d7 into main Nov 12, 2025
5 checks passed
@msafarik msafarik deleted the MCP-server branch November 12, 2025 10:36
Copy link
Collaborator

@sarroutbi sarroutbi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello Marek. Please, don't include me in reviews if you are not waiting me to approve them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants