Skip to main content
Glama
guides.ts957 B
/** * Guides 类工具 * 提供 OpenSpec 使用指南和项目上下文 */ import { z } from 'zod'; import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; import { OpenSpecCli } from '../../core/openspec-cli.js'; export function registerGuidesTools(server: McpServer, cli: OpenSpecCli): void { /** * 获取 OpenSpec 使用指南 (AGENTS.md) */ server.tool( 'openspec_get_instructions', 'Get OpenSpec usage instructions from AGENTS.md', {}, async () => { const content = await cli.getInstructions(); return { content: [{ type: 'text', text: content }], }; } ); /** * 获取项目上下文 (project.md) */ server.tool( 'openspec_get_project_context', 'Get project context from project.md', {}, async () => { const content = await cli.getProjectContext(); return { content: [{ type: 'text', text: content }], }; } ); }

Latest Blog Posts

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/Lumiaqian/openspec-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server