microsoft / microsoft/semantic-kernel
Python: Feature: Add MCP server trust verification for agent tool safety
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 28.6k
- Forks
- 4.8k
- Avg merge
- 14h 13m
- Merged PRs (30d)
- 18
Description
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
- API docs: https://dominionobservatory.com
- Free tier: 50 queries/day
- GitHub: https://github.com/sgdata-io/dominion-observatory
- Covers 14,820+ MCP servers with behavioral trust scoring and SLA grades
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating Semantic Kernel's Python agent and MCP tool-execution integration; the issue does not name repository files or tests. Review how an MCP server connection is established, then define the trust-verification behavior and its threshold and failure cases. Done means MCP servers are checked before tool execution and the behavior is covered by tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- ai, security
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100