
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
thinker-context
Advanced tools
Thinker Context - MCP server for AI-powered context management and chain-of-thought planning with DeepSeek-V3.1
AI-powered context management and chain-of-thought planning for developers
An MCP (Model Context Protocol) server that uses DeepSeek-V3.1 to provide intelligent code planning, context tracking, and project documentation.
npm install -g @thinker/context
Add to your MCP client configuration (e.g., Kiro's mcp.json):
{
"mcpServers": {
"context-chain-thinking": {
"command": "node",
"args": ["/absolute/path/to/dist/index.js"],
"env": {
"WORKSPACE_ROOT": "${workspaceFolder}",
"SAMBANOVA_API_KEY": "your-api-key-here"
}
}
}
}
analyze_prompt - Break down prompts into execution plans using DeepSeek-V3.1 AI
validate_plan - Check plan validity against project stateget_project_context - Retrieve project documentationupdate_project_context - Update file documentationlog_change - Record modificationsget_change_history - View changelogcreate_checkpoint - Save current statelist_checkpoints - View available checkpoints// User prompt
"Add user authentication with JWT to my Express.js app"
// MCP calls DeepSeek-V3.1
analyze_prompt({ prompt: "Add user authentication..." })
// Returns detailed plan:
{
"plan_id": "plan-1773666002007",
"steps": [
{
"step_number": 1,
"action": "Install Required Dependencies",
"files_affected": ["package.json"],
"dependencies": [],
"reasoning": "Install JWT, bcrypt, and related packages",
"estimated_complexity": "low"
},
{
"step_number": 2,
"action": "Create User Model/Schema",
"files_affected": ["src/models/User.ts"],
"dependencies": [1],
"reasoning": "Define user data structure",
"estimated_complexity": "low"
},
// ... 15 more detailed steps
]
}
"Add user authentication with JWT"
analyze_prompt({ prompt: "Add user authentication with JWT" })
Returns a detailed execution plan with steps, dependencies, and reasoning.
For each step:
The server maintains files in .ai-context/:
project-map.json - Structured project knowledgeproject-map.md - Human-readable versionchangelog.jsonl - All changesexecution-plans/ - Historical planscheckpoints/ - State snapshots// 1. Analyze the prompt
const plan = await analyze_prompt({
prompt: "Add user authentication"
});
// 2. Create a checkpoint before starting
await create_checkpoint({
description: "Before adding auth"
});
// 3. Get current context
const context = await get_project_context({});
// 4. Make changes (in your code)
// ...
// 5. Update context
await update_project_context({
file_path: "src/auth.ts",
purpose: "Handles user authentication with JWT",
exports: ["login", "register", "verifyToken"],
functions: {
login: {
description: "Authenticates user and returns JWT",
parameters: ["email", "password"],
returns: "JWT token"
}
}
});
// 6. Log the change
await log_change({
type: "create",
files: ["src/auth.ts"],
description: "Added authentication module",
prompt: "Add user authentication",
diff_summary: "Created new auth module with login/register"
});
# Watch mode
npm run dev
# Build
npm run build
# Run
npm start
src/types.ts - TypeScript type definitionssrc/context-manager.ts - File system operations for contextsrc/chain-thinker.ts - Chain-of-thought reasoning logicsrc/index.ts - MCP server implementationMIT
All test files are in the tests/ folder:
node tests/test-mcp-integration.js
node tests/test-reasoning-quality.js
Open tests/test-sambanova-simple.html in your browser
Based on comprehensive testing of all 7 DeepSeek models:
| Model | Speed | Quality | Status |
|---|---|---|---|
| DeepSeek-V3.1 ⭐ | 244.71 tok/s | 5/5 | WINNER |
| DeepSeek-V3.1-Terminus | 230.47 tok/s | 5/5 | Preview |
| DeepSeek-R1-Distill-Llama-70B | 228.64 tok/s | 5/5 | Production |
| DeepSeek-V3.2 | 226.65 tok/s | 5/5 | Preview |
| DeepSeek-V3-0324 | 223.53 tok/s | 5/5 | Production |
| DeepSeek-R1-0528 | 214.50 tok/s | 5/5 | Production |
Why DeepSeek-V3.1?
All documentation is in the docs/ folder:
See the test output in INTEGRATION_COMPLETE.md for a real example where the AI generated a 17-step plan for adding JWT authentication, including:
mcp-context-chain-thinking/
├── src/ # Source code
│ ├── types.ts # TypeScript interfaces
│ ├── context-manager.ts # File operations
│ ├── chain-thinker.ts # AI reasoning with DeepSeek-V3.1
│ └── index.ts # MCP server
├── dist/ # Compiled JavaScript
├── docs/ # Documentation
│ ├── INTEGRATION_COMPLETE.md # Full integration guide
│ ├── KIRO_SETUP_GUIDE.md # Kiro setup instructions
│ ├── QUICK_REFERENCE.md # Quick reference card
│ ├── COMMANDS.md # Command reference
│ ├── PROJECT_PLAN.md # Original planning
│ ├── FINAL_SUMMARY.md # Project summary
│ ├── SAMBANOVA_TESTING.md # Model testing docs
│ └── SAMBANOVA_QUICK_START.md # Quick start guide
├── tests/ # Test files
│ ├── test-mcp-integration.js # Full integration test
│ ├── test-reasoning-quality.js # AI quality comparison
│ ├── test-sambanova-models.js # Performance benchmarks
│ └── test-sambanova-simple.html# Browser-based testing
├── .ai-context/ # Generated context files
├── .kiro/ # Kiro configuration
├── .env # Environment variables
├── .env.example # Example environment
├── package.json # NPM configuration
├── tsconfig.json # TypeScript config
└── README.md # This file
Potential enhancements:
MIT
FAQs
Thinker Context - MCP server for AI-powered context management and chain-of-thought planning with DeepSeek-V3.1
We found that thinker-context 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.