Principal Architect Service
Allows publishing architecture decision records and technical requirements to Confluence with ADF formatting
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Principal Architect ServiceList all architecture decision records"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Principal Architect Service
A comprehensive Model Context Protocol (MCP) server for managing product initiatives, technical requirements, architecture decisions, and related documentation through AI development tools.
🎯 Overview
This unified MCP server provides 42+ tools across 8 domains to help software architects and product teams:
Architecture Decision Records (ADRs) - Document and track architectural decisions with options, outcomes, and Confluence sync
Technical Requirements - Create and manage feature requirements with Confluence publishing
Product Requirements - Define product specifications and requirements
Business Rule Documents - Document business rules and logic
Technical Estimates - Track effort estimates and capacity planning
Initiative Resources - Manage product initiatives and features
Initiative Releases - Plan and track release schedules
Technology Selections - Document technology choices and standards
Related MCP server: Gigaspec
🚀 Quick Start
Prerequisites
Node.js 18+ (required)
NX Monorepo tools installed
API Server Running at
http://localhost:3000/api
Build the MCP Server
# Clone and enter the repository
cd principal-architect-service
# Install dependencies
npm install
# Build the MCP server
npx nx build product-initiatives-mcpStart the API Server
The MCP server requires the API backend to be running:
# Start the API server (default: http://localhost:3000)
npx nx serve product-initiatives-api📱 Installation by Tool
🖥️ Claude Desktop
Claude Desktop runs the MCP server as a subprocess and communicates via stdio.
Configuration Steps
Locate your Claude Desktop config file:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
Add the MCP server configuration:
{
"mcpServers": {
"principal-architect": {
"command": "node",
"args": [
"/absolute/path/to/principal-architect-service/dist/product-initiatives-mcp/main.js"
],
"env": {
"API_URL": "http://localhost:3000/api",
"LOG_LEVEL": "info"
}
}
}
}Important: Replace /absolute/path/to/ with your actual project path.
Alternative: Use npx (if in project directory)
{
"mcpServers": {
"principal-architect": {
"command": "npx",
"args": ["nx", "serve", "product-initiatives-mcp"],
"cwd": "/absolute/path/to/principal-architect-service",
"env": {
"API_URL": "http://localhost:3000/api",
"LOG_LEVEL": "info"
}
}
}
}Restart Claude Desktop completely (quit and relaunch)
Verify Installation:
Open Claude Desktop
Look for the 🔌 icon in the chat interface
You should see "principal-architect" listed with ~42 tools
Try asking: "List all architecture decision records"
Troubleshooting Claude Desktop
Server won't start:
# Check the build output exists
ls -la dist/product-initiatives-mcp/main.js
# Test the server manually
node dist/product-initiatives-mcp/main.jsTools not appearing:
Open Claude Desktop Developer Tools (Help → Developer Tools)
Check Console tab for MCP errors
Verify API server is running:
curl http://localhost:3000/api/health
💻 Claude Code (CLI)
Claude Code can use MCP servers via stdio transport. Configuration is stored in ~/.claude/config.yaml.
Configuration Steps
Create or edit your Claude Code config:
# Create config directory if needed
mkdir -p ~/.claude
# Edit the config file
nano ~/.claude/config.yamlAdd MCP server configuration:
mcpServers:
principal-architect:
command: node
args:
- /absolute/path/to/principal-architect-service/dist/product-initiatives-mcp/main.js
env:
API_URL: http://localhost:3000/api
LOG_LEVEL: infoImportant: Replace /absolute/path/to/ with your actual project path.
Alternative: Run from project directory
mcpServers:
principal-architect:
command: npx
args:
- nx
- serve
- product-initiatives-mcp
cwd: /absolute/path/to/principal-architect-service
env:
API_URL: http://localhost:3000/api
LOG_LEVEL: infoRestart Claude Code:
# If running in a session, exit and restart
# Or start a new session
claude-codeVerify Installation:
# In Claude Code, ask:
"What MCP servers are available?"
# Test a tool:
"List all ADRs"Using in Claude Code Session
Once configured, you can use natural language to interact with tools:
You: "Create a new ADR for choosing between REST and GraphQL APIs"
Claude: [Uses create_architecture_decision_records tool]
You: "Show me all ADRs related to authentication"
Claude: [Uses search_architecture_decision_records tool]
You: "Update ADR-001 to mark the REST option as selected"
Claude: [Uses update_architecture_decision_records tool]Troubleshooting Claude Code
Check MCP server status:
# View available MCP servers
cat ~/.claude/config.yaml
# Test server manually
node dist/product-initiatives-mcp/main.jsDebug mode:
Set LOG_LEVEL: debug in your config to see detailed logs.
🌊 Windsurf
Windsurf supports MCP servers similar to Claude Desktop, with configuration stored in the application settings.
Configuration Steps
Locate Windsurf MCP config:
macOS:
~/Library/Application Support/Windsurf/User/globalStorage/windsurf.jsonWindows:
%APPDATA%\Windsurf\User\globalStorage\windsurf.jsonLinux:
~/.config/Windsurf/User/globalStorage/windsurf.json
Note: Exact path may vary by Windsurf version. Check Settings → MCP Servers for the config location.
Add MCP server configuration:
{
"mcpServers": {
"principal-architect": {
"command": "node",
"args": [
"/absolute/path/to/principal-architect-service/dist/product-initiatives-mcp/main.js"
],
"env": {
"API_URL": "http://localhost:3000/api",
"LOG_LEVEL": "info"
}
}
}
}Important: Replace /absolute/path/to/ with your actual project path.
Alternative: Via Windsurf UI
Some Windsurf versions support UI-based MCP configuration:
Open Settings → Extensions → MCP Servers
Click "Add MCP Server"
Fill in:
Name:
principal-architectCommand:
nodeArgs:
/absolute/path/to/principal-architect-service/dist/product-initiatives-mcp/main.jsEnvironment Variables:
API_URL=http://localhost:3000/apiLOG_LEVEL=info
Reload Windsurf:
Restart Windsurf completely
Or use Command Palette: "Reload Window"
Verify Installation:
Open the AI chat panel
Look for MCP servers indicator
Try: "What tools are available from the principal-architect server?"
Using in Windsurf
Windsurf integrates MCP tools into the AI coding assistant:
You: "Create an ADR for our database selection"
Windsurf: [Uses create_architecture_decision_records]
You: "Show me the ADR we created yesterday"
Windsurf: [Uses list_architecture_decision_records with filters]Troubleshooting Windsurf
Server not loading:
Check Windsurf's Output panel → MCP Servers
Verify the path to main.js is correct and absolute
Ensure API server is running
Permission issues:
# Make sure the main.js file is executable
chmod +x dist/product-initiatives-mcp/main.js🛠️ Available Tools
Architecture Decision Records (ADRs)
8 tools for documenting architectural decisions:
Tool | Description |
| Create a new ADR with title, problem statement, and options |
| List all ADRs (supports pagination and filtering) |
| Get detailed ADR by ID including all options and outcomes |
| Update ADR metadata, problem statement, or decision outcome |
| Update specific option details, diagrams, or code examples |
| Search ADRs by keyword with relevance scoring |
| Delete an ADR (soft delete preserves history) |
| Publish ADR to Confluence with ADF formatting |
Technical Requirements
5 tools for feature requirements:
Tool | Description |
| Create technical requirements document |
| List all technical requirements |
| Get technical requirements by ID |
| Update technical requirements |
| Publish to Confluence |
Product Requirements
5 tools for product specs:
Tool | Description |
| Create product requirements document |
| List all product requirements |
| Get product requirements by ID |
| Update product requirements |
| Publish to Confluence |
Business Rule Documents
4 tools for business logic:
Tool | Description |
| Create business rule document |
| List all business rule documents |
| Get business rule by ID |
| Update business rule |
Technical Estimates
4 tools for effort estimation:
Tool | Description |
| Create technical estimation document |
| List all technical estimates |
| Get technical estimate by ID |
| Update technical estimates |
Initiative Resources
4 tools for managing initiatives:
Tool | Description |
| Create product initiative |
| List all initiatives |
| Get initiative by ID |
| Update initiative |
Initiative Releases
5 tools for release planning:
Tool | Description |
| Create initiative release |
| List all releases |
| Get release by ID |
| Update release |
| Publish release to Confluence |
Technology Selections
8 tools for technology decisions:
Tool | Description |
| Document a technology selection |
| List all technology selections |
| Get technology selection by ID |
| Update technology selection |
| Delete technology selection |
| Search technology selections |
| Filter by category |
| Mark technology as deprecated |
💡 Usage Examples
Example 1: Creating an ADR (Any Tool)
You: Create an ADR for choosing between MongoDB and PostgreSQL for our user database
AI: I'll create an Architecture Decision Record for the database selection...
[Uses create_architecture_decision_records tool]
Result: Created ADR-001 with:
- Title: "Database Selection for User Management"
- Problem: Need to choose a database for user data storage
- Options: MongoDB (document), PostgreSQL (relational)
- Status: ProposedExample 2: Searching ADRs (Claude Desktop)
You: Find all ADRs related to authentication
Claude: [Uses search_architecture_decision_records tool with keyword="authentication"]
Found 3 ADRs:
1. ADR-005: OAuth vs JWT Authentication
2. ADR-012: Multi-Factor Authentication Implementation
3. ADR-018: Session Management StrategyExample 3: Publishing to Confluence (Claude Code)
claude-code
You: Publish ADR-001 to Confluence
Claude: I'll publish the ADR to Confluence with proper formatting...
[Uses publish_architecture_decision_record tool]
✅ Published to Confluence:
- Page ID: 123456
- URL: https://your-domain.atlassian.net/wiki/spaces/ARCH/pages/123456
- Status: Published
- Stakeholders notified via @mentionsExample 4: Updating Options (Windsurf)
You: Update the MongoDB option in ADR-001 to include performance benchmarks
Windsurf: [Uses update_architecture_decision_record_option tool]
Updated option "MongoDB" with:
- Performance data: 10K writes/sec
- Latency: ~5ms p95
- Scalability: Horizontal shardingExample 5: Creating Technical Requirements (Claude Desktop)
You: Create technical requirements for a user authentication feature
Claude: [Uses create_technical_requirements tool]
Created: TECH-REQ-001
- Feature: User Authentication
- Functional Requirements: Login, logout, password reset
- Non-functional: <2s response time, 99.9% uptime
- Dependencies: OAuth library, email service🎨 Advanced Features
Confluence Integration
Several tools support publishing to Confluence with:
✅ Automatic ADF (Atlassian Document Format) conversion
✅ @mention resolution for stakeholders
✅ Linked diagrams and code examples
✅ Status badges and metadata
Requirements for Confluence sync:
Confluence API credentials in API server config
Workspace configured with Space Key
User permissions to create/edit pages
Search and Discovery
Keyword search with relevance scoring:
Full-text search across all ADR fields
Highlighted snippets in results
Relevance scores for ranking
Technology Standardization
Track your approved technology stack:
Categorize by layer (frontend, backend, database, etc.)
Mark technologies as approved/deprecated
Document rationale and alternatives
Search and filter by category
⚙️ Configuration
Environment Variables
Variable | Default | Description |
|
| Backend API base URL |
|
| Logging level: |
Custom API URL
If your API runs on a different port or host:
{
"mcpServers": {
"principal-architect": {
"env": {
"API_URL": "http://localhost:8080/api"
}
}
}
}Debug Mode
Enable detailed logging for troubleshooting:
{
"mcpServers": {
"principal-architect": {
"env": {
"LOG_LEVEL": "debug"
}
}
}
}🔧 Development
Project Structure
principal-architect-service/
├── apps/
│ └── product-initiatives-api/ # NestJS API backend
├── product-initiatives-mcp/ # MCP server
│ ├── src/
│ │ ├── main.ts # Server entry point
│ │ ├── tools/ # Domain-specific tools
│ │ │ ├── adrs.tools.ts
│ │ │ ├── technical-requirements.tools.ts
│ │ │ ├── product-requirements.tools.ts
│ │ │ └── ...
│ │ └── utils/ # Shared utilities
│ │ ├── logger.ts
│ │ ├── api-client.ts
│ │ └── error-handler.ts
│ └── README.md
├── libs/ # Shared libraries
│ ├── resource-schemas/ # JSON schemas
│ ├── mcp-tool-generator/ # Tool generation
│ └── confluence-client/ # Confluence integration
└── dist/ # Build outputRunning Tests
# Run all tests
npm test
# Run specific domain tests
npx nx test product-initiatives-api
# Run with coverage
npm run test:coverage
# Run e2e tests
npm run test:e2eBuilding for Production
# Build MCP server
npx nx build product-initiatives-mcp
# Build API server
npx nx build product-initiatives-api
# Build all
npm run buildLocal Development
# Start API server (watch mode)
npx nx serve product-initiatives-api
# In another terminal, test MCP server
node dist/product-initiatives-mcp/main.js
# Or use the development build
npx nx serve product-initiatives-mcp🐛 Troubleshooting
Common Issues
1. "Connection refused" errors
Problem: MCP server can't reach the API backend
Solution:
# Check if API is running
curl http://localhost:3000/api/health
# Start the API if needed
npx nx serve product-initiatives-api2. "Unknown tool" errors
Problem: Tool not found or not loaded
Solution:
# Rebuild the MCP server
npx nx build product-initiatives-mcp
# Restart Claude Desktop/Code/Windsurf3. Schema validation errors
Problem: Invalid input format
Solution:
Check the tool's input schema in the tool list
Ensure required fields are provided
Verify data types match (string, number, boolean)
4. Path issues on Windows
Problem: Windows path format not recognized
Solution: Use forward slashes or escaped backslashes:
{
"command": "node",
"args": [
"C:/Users/YourName/principal-architect-service/dist/product-initiatives-mcp/main.js"
]
}5. Port conflicts
Problem: API server port 3000 already in use
Solution:
# Use different port
PORT=3001 npx nx serve product-initiatives-api
# Update MCP config
"API_URL": "http://localhost:3001/api"Debug Checklist
API server is running (
curl http://localhost:3000/api/health)MCP server is built (
ls dist/product-initiatives-mcp/main.js)Config file has correct absolute paths
Environment variables are set correctly
Claude Desktop/Code/Windsurf has been restarted
No port conflicts (check
lsof -i :3000)Logs show successful tool initialization
Viewing Logs
Claude Desktop:
Help → Developer Tools → Console
Claude Code:
# Set debug level in config
LOG_LEVEL: debug
# Logs output to stderrWindsurf:
View → Output → MCP Servers
📚 Related Documentation
🤝 Contributing
Contributions are welcome! Please follow these guidelines:
Run quality checks before committing:
npm run lint npm test npm run typecheckFollow existing patterns:
Use NX generators for new tools
Follow TypeScript strict mode
Add tests for new functionality
Commit message format:
feat: add new ADR search capabilities fix: resolve Confluence publish error docs: update installation instructions
📄 License
MIT License
🆘 Support
Issues?
Check the Troubleshooting section
Review logs in your AI tool's developer console
Verify API server is running and accessible
Ensure all dependencies are installed
Questions?
Review the Usage Examples
Check tool descriptions in the Available Tools section
Consult the MCP specification
Need Help? Open an issue on GitHub with:
Your environment (Claude Desktop/Code/Windsurf version)
Config file contents (sanitize sensitive data)
Relevant logs or error messages
Steps to reproduce the issue
🎉 Getting Started Checklist
Clone the repository
Run
npm installBuild the MCP server:
npx nx build product-initiatives-mcpStart the API server:
npx nx serve product-initiatives-apiConfigure your AI tool (Claude Desktop/Code/Windsurf)
Restart your AI tool
Test: "List all architecture decision records"
Success! 🎊
Ready to document your architecture decisions? Start with:
"Create an ADR for our first major technical decision"This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Appeared in Searches
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ryan-norman-cmm/principal-architect-service'
If you have feedback or need assistance with the MCP directory API, please join our Discord server