一键导入
mcp-server-development
Model Context Protocol server development, MCP tool patterns, MCP configuration best practices, GitHub MCP integration
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Model Context Protocol server development, MCP tool patterns, MCP configuration best practices, GitHub MCP integration
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Identity and access management: RBAC, least privilege, MFA, quarterly reviews per ISO 27001 A.5.15, A.8.2, A.8.3
Business continuity and disaster recovery: 30-day retention, quarterly restore tests, RTO/RPO targets per ISO 27001 A.17
Political psychology, cognitive biases, group dynamics, leadership analysis, decision-making patterns for Swedish political intelligence
Risk-based data and asset classification framework: PUBLIC, INTERNAL, CONFIDENTIAL, RESTRICTED aligned with ISO 27001 A.5.12 and CIA triad
Unified compliance verification across ISO 27001, NIST CSF, CIS Controls, NIS2, EU CRA, GDPR, SOC 2, PCI DSS, and HIPAA for cybersecurity consulting
Cryptographic controls implementation: TLS 1.3, AES-256-GCM, bcrypt, RSA-4096, key management per NIST FIPS 140-2 and ISO 27001 A.8.24
| name | mcp-server-development |
| description | Model Context Protocol server development, MCP tool patterns, MCP configuration best practices, GitHub MCP integration |
| license | Apache-2.0 |
Guide the development and configuration of Model Context Protocol (MCP) servers for the CIA platform, enabling AI-powered tooling integration with GitHub Copilot and other MCP-compatible clients.
.github/copilot-mcp-config.json for new integrationsDo NOT use for:
┌─────────────────┐ ┌──────────────┐ ┌─────────────────┐
│ MCP Client │────▶│ MCP Server │────▶│ Data Sources │
│ (Copilot/IDE) │◀────│ (Tools) │◀────│ (Riksdag API) │
└─────────────────┘ └──────────────┘ └─────────────────┘
│ │
│ JSON-RPC 2.0 │ Tool Definitions
│ over stdio/SSE │ Input/Output Schemas
{
"mcpServers": {
"cia-political-data": {
"type": "stdio",
"command": "node",
"args": ["dist/mcp-server.js"],
"env": {
"CIA_DATA_DIR": "${workspaceFolder}/data"
}
}
}
}
copilot-mcp-config.json — use environment referencesinterface McpToolDefinition {
name: string; // e.g., "get_politician_votes"
description: string; // Clear, concise purpose
inputSchema: {
type: "object";
properties: Record<string, JsonSchema>;
required: string[];
};
}
// Politician lookup tool
const getPoliticianTool = {
name: "get_politician_profile",
description: "Retrieve profile and voting record for a Swedish Parliament member",
inputSchema: {
type: "object",
properties: {
personId: { type: "string", description: "Riksdagen person ID" },
includeVotes: { type: "boolean", default: false }
},
required: ["personId"]
}
};
// Document search tool
const searchDocumentsTool = {
name: "search_riksdag_documents",
description: "Search Swedish Parliament documents by keyword, type, and date range",
inputSchema: {
type: "object",
properties: {
query: { type: "string" },
docType: { type: "string", enum: ["motion", "proposition", "betankande"] },
fromDate: { type: "string", format: "date" },
toDate: { type: "string", format: "date" }
},
required: ["query"]
}
};
async function handleToolCall(name: string, args: unknown): Promise<McpResult> {
try {
const validated = validateInput(name, args);
const result = await executeQuery(validated);
return { content: [{ type: "text", text: JSON.stringify(result) }] };
} catch (error) {
return {
content: [{ type: "text", text: `Error: ${error.message}` }],
isError: true
};
}
}
The CIA project uses GitHub MCP server for:
| Control | Requirement |
|---|---|
| ISO 27001 A.8.9 | Configuration management for MCP servers |
| NIST CSF PR.DS-2 | Data-in-transit protection for MCP transport |
| CIS Control 16 | Application software security for MCP tools |