Skip to content

Python: Feature: Add MCP server trust verification for agent tool safety #14032

@vdineshk

Description

@vdineshk

Feature Description

Semantic Kernel's agent framework enables connecting to MCP servers for tool execution. There's no built-in mechanism to verify whether an MCP server is trustworthy before agents invoke its tools. For enterprise applications, this is a significant security gap.

Proposed Solution

Integrate behavioral trust scoring via the Dominion Observatory API to verify MCP servers before tool execution. The API provides trust scores (0.0-1.0) based on behavioral analysis of 14,820+ MCP servers.

import requests

def verify_mcp_trust(server_url, threshold=0.7):
    resp = requests.get(
        "https://dominionobservatory.com/api/trust",
        params={"url": server_url}
    )
    data = resp.json()
    if data["trust_score"] < threshold:
        raise Exception(f"Server trust {data['trust_score']} below threshold")
    return data

# Verify MCP server before Semantic Kernel agent connects
trust = verify_mcp_trust("https://mcp-server.example.com")
print(f"Trust: {trust['trust_score']} | SLA: {trust['sla_grade']}")

Why This Matters for Semantic Kernel

Enterprise agents handle sensitive data and business logic. Trust-gating MCP servers prevents:

  • Supply chain attacks via compromised tool servers
  • Data exfiltration from enterprise workflows
  • Compliance violations from unvetted third-party tools

Additional Context

Metadata

Metadata

Assignees

No one assigned

    Labels

    pythonPull requests for the Python Semantic Kerneltriage

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions