Mojentic Mcp — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Mojentic Mcp (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Mojentic MCP is a library providing MCP (Machine Conversation Protocol) server and client infrastructure for tools and agentic chat creators. It allows you to easily expose tools to AI assistants that support the MCP protocol.
tools capabilities (tools/list, tools/call). Other methods like resources/list and prompts/list are stubbed to return empty lists for broader MCP compatibility.Basic installation:
pip install mojentic-mcpWith client functionality only:
pip install "mojentic-mcp[client]"With server functionality only:
pip install "mojentic-mcp[server]"For development:
pip install "mojentic-mcp[dev]"Or combine any options:
pip install "mojentic-mcp[client,server,dev]"Create a simple HTTP MCP server with date-related tools:
import logging
import sys
logging.basicConfig(level=logging.INFO)
from mojentic.llm.tools.current_datetime import CurrentDateTimeTool
from mojentic.llm.tools.date_resolver import ResolveDateTool
from mojentic_mcp.mcp_http import HttpMcpServer
from mojentic_mcp.rpc import JsonRpcHandler
sys.stderr.write("Starting HTTP MCP server...\n")
sys.stderr.write("Server ready to receive commands\n")
rpc_handler = JsonRpcHandler(tools=[ResolveDateTool(), CurrentDateTimeTool()])
# Create an HTTP MCP server with the default path ("/jsonrpc")
server = HttpMcpServer(rpc_handler)
# Or specify a custom path
# server = HttpMcpServer(rpc_handler, path="/custom-path")
server.run()Create a simple STDIO MCP server with date-related tools:
import logging
import sys
logging.basicConfig(level=logging.CRITICAL)
from mojentic.llm.tools.current_datetime import CurrentDateTimeTool
from mojentic.llm.tools.date_resolver import ResolveDateTool
from mojentic_mcp.mcp_stdio import StdioMcpServer
from mojentic_mcp.rpc import JsonRpcHandler
sys.stderr.write("Starting STDIO MCP server...\n")
sys.stderr.write("Server ready to receive commands on stdin\n")
rpc_handler = JsonRpcHandler(tools=[ResolveDateTool(), CurrentDateTimeTool()])
server = StdioMcpServer(rpc_handler)
server.run()You can create custom tools by extending the LLMTool class:
from mojentic.llm.tools.llm_tool import LLMTool
from mojentic_mcp.mcp_http import HttpMcpServer
from mojentic_mcp.rpc import JsonRpcHandler
class AboutTheUser(LLMTool):
def run(self):
return {
"name": "Stacey",
"favourite_colour": "purple"
}
@property
def descriptor(self):
return {
"type": "function",
"function": {
"name": "colour_preferences",
"description": "Return the user's favourite colour.",
"parameters": {
"type": "object",
"properties": {},
}
}
}
rpc_handler = JsonRpcHandler(tools=[AboutTheUser()])
server = HttpMcpServer(rpc_handler)
server.run()Create a set of related tools that share state:
from mojentic.llm.tools.ephemeral_task_manager import EphemeralTaskList, AppendTaskTool, PrependTaskTool, \
InsertTaskAfterTool, StartTaskTool, CompleteTaskTool, ListTasksTool, ClearTasksTool
from mojentic_mcp.mcp_http import HttpMcpServer
from mojentic_mcp.rpc import JsonRpcHandler
task_list = EphemeralTaskList()
rpc_handler = JsonRpcHandler(tools=[
AppendTaskTool(task_list),
PrependTaskTool(task_list),
InsertTaskAfterTool(task_list),
StartTaskTool(task_list),
CompleteTaskTool(task_list),
ListTasksTool(task_list),
ClearTasksTool(task_list),
])
server = HttpMcpServer(rpc_handler)
server.run()The library implements the following core JSON-RPC methods as specified by the MCP protocol. While methods for resources and prompts are present for MCP compatibility (returning empty lists), the current implementation is focused on delivering robust tools functionality.
| Method | Description |
|---|---|
| initialize | Negotiates protocol version and capabilities |
| tools/list | Lists available tools |
| tools/call | Calls a tool with arguments |
| resources/list | Lists available resources |
| prompts/list | Lists available prompts |
The client-side API allows developers to easily interact with MCP servers. It supports multiple transports (HTTP, STDIO) and provides an idiomatic Python interface for tool discovery and invocation.
from mojentic_mcp.client import McpClient
from mojentic_mcp.transports import HttpTransport, StdioTransport
# Define one or more transports
# You can initialize HttpTransport with a full URL:
http_transport = HttpTransport(url="http://localhost:8080/jsonrpc")
# Or with host, port, and an optional path (defaults to "/jsonrpc"):
http_transport_alt = HttpTransport(host="localhost", port=8080)
# Or with a custom path:
http_transport_custom = HttpTransport(host="localhost", port=8080, path="/custom-path")
stdio_transport = StdioTransport(command="/usr/local/bin/my_mcp_server_command")
# Initialize the client with a list of transports
client = McpClient(transports=[http_transport, stdio_transport])Tools will be accessible as methods on a tools attribute of the client object:
# List available tools (aggregated from all transports)
tools_list = client.list_tools()
# Invoke a tool (client determines the correct transport)
resolved_date_result = client.tools.resolve_date(date_string="next Monday")
forecast_result = client.tools.get_weather_forecast(location="New York", days=3)Visit the documentation for comprehensive guides, API reference, and examples.
This project is licensed under the MIT License - see the LICENSE file for details.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.