get_editing_codes
Access standardized semantic editing marks for content review with a teaching focus, enabling structured feedback on texts using Open Strategy Partners' documentation and protocols.
Instructions
Get the Open Strategy Partners (OSP) editing codes documentation and usage protocol for editing texts. These semantic editing marks provide a standardized framework for content review with a teaching/learning focus.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/index.ts:26-50 (handler)The handler function that implements the core logic of the 'get_editing_codes' tool. It asynchronously reads the 'codes-llm.md' markdown file using the ContentReader utility and returns the content wrapped in a standardized MCP response format, or an error response if reading fails.async (_extra) => { try { const content = await contentReader.readMarkdownFile('codes-llm.md'); return { content: [{ type: "text", text: JSON.stringify({ success: true, data: { content } }) }] }; } catch (error) { return { content: [{ type: "text", text: JSON.stringify({ success: false, error: error instanceof Error ? error.message : String(error) }) }], isError: true }; } }
- src/tools/index.ts:23-51 (registration)The registration of the 'get_editing_codes' tool within the registerTools function, specifying the tool name, description, and handler function passed to McpServer.tool().server.tool( "get_editing_codes", "Get the Open Strategy Partners (OSP) editing codes documentation and usage protocol for editing texts. These semantic editing marks provide a standardized framework for content review with a teaching/learning focus.", async (_extra) => { try { const content = await contentReader.readMarkdownFile('codes-llm.md'); return { content: [{ type: "text", text: JSON.stringify({ success: true, data: { content } }) }] }; } catch (error) { return { content: [{ type: "text", text: JSON.stringify({ success: false, error: error instanceof Error ? error.message : String(error) }) }], isError: true }; } } );
- src/sse.ts:24-24 (registration)Invocation of registerTools in the main server setup, which registers the 'get_editing_codes' tool (and others) on the MCP server instance.registerTools(server, contentReader);