
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
clarity-mcp-server
Advanced tools
A Model Context Protocol server providing structured reasoning and thinking tools with memory graph
A Model Context Protocol (MCP) server that provides structured reasoning and thinking tools for AI assistants. This server implements multiple cognitive frameworks and reasoning methodologies to enhance problem-solving capabilities.
The Clarity Mcp Server provides the following reasoning tools:
git clone https://github.com/pronitdas/clarity-mcp.git
cd clarity-mcp
pnpm install
pnpm run build
pnpm start
# Watch mode for development
pnpm run dev
# Clean build files
pnpm run clean
The Clear Thought MCP Server is designed to be integrated with AI assistants through the Model Context Protocol (MCP). Here's how to integrate and use the server:
mcp://localhost:0/clear-thinking
index.ts
Register the tools with your MCP client:
const tools = {
sequentialthinking: {
name: "sequentialthinking",
description: "Step-by-step reasoning with revision capabilities",
parameters: {
thought: "string",
thoughtNumber: "number",
totalThoughts: "number",
nextThoughtNeeded: "boolean"
}
},
// ... other tools ...
};
The server can be integrated with MCP-compatible clients using a simple configuration file. Here's a typical example:
{
"command": "npx",
"args": [
"clarity-mcp-server"
],
}
Place this configuration in your client's MCP configuration file (e.g., mcp.json
). The server will be started automatically when the client needs to use the reasoning tools.
{
"name": "sequentialthinking",
"arguments": {
"thought": "Let me analyze this step by step...",
"thoughtNumber": 1,
"totalThoughts": 5,
"nextThoughtNeeded": true
}
}
{
"name": "mentalmodel",
"arguments": {
"modelName": "first_principles",
"problem": "How to optimize database performance"
}
}
{
"name": "designpattern",
"arguments": {
"patternName": "modular_architecture",
"context": "Building a scalable web application"
}
}
{
"name": "collaborativereasoning",
"arguments": {
"topic": "Should we implement microservices?",
"personas": [
{
"id": "architect",
"name": "Senior Architect",
"expertise": ["system design", "scalability"],
"background": "10+ years in enterprise architecture"
}
],
"stage": "problem-definition",
"sessionId": "session-1",
"iteration": 0,
"nextContributionNeeded": true
}
}
SequentialThinkingServer
: Manages step-by-step reasoning processesMentalModelServer
: Handles mental model applicationDesignPatternServer
: Processes software design patternsProgrammingParadigmServer
: Manages programming approach selectionDebuggingApproachServer
: Handles debugging methodologiesCollaborativeReasoningServer
: Manages multi-perspective analysisDecisionFrameworkServer
: Handles decision analysisMetacognitiveMonitoringServer
: Manages self-assessmentScientificMethodServer
: Handles scientific reasoningStructuredArgumentationServer
: Manages dialectical analysisVisualReasoningServer
: Handles visual thinking toolsMemoryServer
: Manages persistent memory operationsfirst_principles
- Break down to fundamental truthsopportunity_cost
- Analyze trade-offs and alternativeserror_propagation
- Understand how errors compoundrubber_duck
- Explain problems step-by-steppareto_principle
- Focus on vital few factorsoccams_razor
- Prefer simpler explanationsmodular_architecture
- Component-based designapi_integration
- Service integration patternsstate_management
- State handling strategiesasync_processing
- Asynchronous operation patternsscalability
- Scaling and performance patternssecurity
- Security implementation patternsagentic_design
- Autonomous agent patternsimperative
- Step-by-step instruction styleprocedural
- Function-based organizationobject_oriented
- Class and object modelingfunctional
- Function-based computationdeclarative
- Outcome-focused programminglogic
- Rule-based programmingevent_driven
- Event-based programmingaspect_oriented
- Cross-cutting concern separationconcurrent
- Parallel execution patternsreactive
- Event-driven data flowsbinary_search
- Bisection debugging methodreverse_engineering
- Backward trace analysisdivide_conquer
- Component isolation methodbacktracking
- Execution path tracingcause_elimination
- Process of eliminationprogram_slicing
- Code dependency analysisadd
- Add new memory nodeslink
- Create relationships between memoriessearch
- Search across stored memoriescontext
- Retrieve memory context and relationshipscreate
, update
, delete
, transform
, observe
graph
, flowchart
, stateDiagram
, conceptMap
, treeDiagram
, custom
node
, edge
, container
, annotation
rotate
, move
, resize
, recolor
, regroup
clear-thinking/
āāā index.ts # Main MCP server entry point
āāā tools/ # Tool implementations
ā āāā mentalModelServer.ts
ā āāā sequentialThinkingServer.ts
ā āāā designPatternServer.ts
ā āāā programmingParadigmServer.ts
ā āāā debuggingApproachServer.ts
ā āāā collaborativeReasoningServer.ts
ā āāā ... # Other reasoning tools
āāā package.json # Dependencies and scripts
āāā tsconfig.json # TypeScript configuration
āāā README.md # This file
The server supports the following configuration options in index.ts
:
const config = {
transport: "stdio", // or "tcp" for network transport
port: 0, // default for stdio
timeout: 30000, // tool execution timeout in ms
maxConcurrent: 10, // max concurrent tool executions
logging: {
level: "info",
format: "json"
}
};
// Server initialization
const server = new Server({
name: "clarity-mcp-server",
version: "1.1.2",
config
}, {
capabilities: {
tools: { /* tool definitions */ }
}
});
git checkout -b feature/amazing-feature
)git commit -m 'Add some amazing feature'
)git push origin feature/amazing-feature
)This project is licensed under the MIT License - see the LICENSE file for details.
Build Errors:
# Clear node_modules and reinstall
rm -rf node_modules package-lock.json
npm install
npm run build
Runtime Errors:
MCP Connection Issues:
Tool Execution Timeouts:
Schema Validation Errors:
Transport Issues:
FAQs
A Model Context Protocol server providing structured reasoning and thinking tools with memory graph
The npm package clarity-mcp-server receives a total of 4 weekly downloads. As such, clarity-mcp-server popularity was classified as not popular.
We found that clarity-mcp-server demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.Ā It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.