A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
TypeScript agent-skillsaidsh-pluginhacktoberfestjavascriptmcp-serverreactresume-builderself-hostedtypescript
fix(mcp): correct tool annotations and descriptions flagged by directory review
Amruth Pillaia03c0e2541b5
diff --git a/docs/guides/using-the-mcp-server.mdx b/docs/guides/using-the-mcp-server.mdxindex 24410b6f9..0de9f9416 100644--- a/docs/guides/using-the-mcp-server.mdx+++ b/docs/guides/using-the-mcp-server.mdx@@ -269,7 +269,7 @@ The server reads storage directly and verifies the account prefix and path segme`open_account_settings` opens profile, security, API keys, preferences or account settings. Provider creation/update and web credential entry return their authenticated settings page. `api_resume_set_password` returns the resume's editor link, where you set, change or remove its share password, and `api_resume_verify_password` returns a password-protected public resume's link, where a visitor enters the password. Account deletion, password changes, passkeys, two-factor authentication and provider credentials require user interaction in that browser. Browser preferences, local undo and document selection remain browser workflows; durable edits and history are available through MCP.-MCP is stateless and accepts POST requests with JSON responses. GET/DELETE return 405; there is no standalone SSE subscription. Draft/message streams are collected up to 500,000 characters; `truncated` identifies longer responses. Read the assistant thread for persisted replies. `api_resume_updates_subscribe` returns an owned snapshot; poll its `updatedAt` for changes.+MCP is stateless and accepts POST requests with JSON responses. GET/DELETE return 405; there is no standalone SSE subscription. Draft/message streams are collected up to 500,000 characters; `truncated` identifies longer responses. Read the assistant thread for persisted replies. To watch a resume for changes, poll `read_resume` and compare `updatedAt`.The installed SDK uses its supported MCP 1.x protocol negotiation, including `2025-11-25`. Protocol revisions beyond that require a separate SDK/compatibility upgrade; this server does not claim support for untested future versions.diff --git a/packages/mcp/src/parity.ts b/packages/mcp/src/parity.tsindex c41d4e608..58ead718c 100644--- a/packages/mcp/src/parity.ts+++ b/packages/mcp/src/parity.ts@@ -28,7 +28,6 @@ const PARITY_PROCEDURES = {"resume.update": router.resume.update,"resume.statistics.getDailyById": router.resume.statistics.getDailyById,"resume.statistics.recordDownload": router.resume.statistics.recordDownload,- "resume.updates.subscribe": router.resume.updates.subscribe,"coverLetters.listVersions": router.coverLetters.listVersions,"coverLetters.getVersion": router.coverLetters.getVersion,"coverLetters.createVersion": router.coverLetters.createVersion,@@ -134,7 +133,19 @@ const destructiveWrites = new Set(["career.saveProfile","career.saveStory","career.saveSchedule",+ "career.saveWorkspace","career.applyReply",+ "agent.messages.stop",+]);+// Changes what a public resume link shows, or sends content to the user's AI provider.+const openWorldPaths = new Set([+ "resume.update",+ "resume.restoreVersion",+ "resume.removePassword",+ "coverLetters.draft",+ "career.saveSchedule",+ "agent.messages.send",+ "statistics.github.getStarCount",]);/** These workflows require browser interaction so secrets and security ceremonies stay with the user. */@@ -276,9 +287,7 @@ export function parityToolContract(path: string, procedure: AnyProcedure): Parit? accountExportOutputSchema: streamingPaths.has(path)? z.object({ events: z.array(z.string()), truncated: z.boolean() })- : path === "resume.updates.subscribe"- ? toWireObjectSchema(requireZod(router.resume.getById["~orpc"].outputSchema))- : toWireObjectSchema(requireZod(definition.outputSchema));+ : toWireObjectSchema(requireZod(definition.outputSchema));const contract = { inputJson, inputSchema: boundedInput, outputSchema };if (!contracts) {contracts = new Map();@@ -307,7 +316,7 @@ export const PARITY_TOOL_META: Record<parityToolName(path),{title,- description: `${PARITY_TOOL_DESCRIPTIONS[path] ?? route.description ?? route.summary ?? path}${path === "resume.updates.subscribe" ? " Returns an owned snapshot; poll updatedAt for changes over stateless MCP." : ""}${streamingPaths.has(path) ? " Returns collected stream chunks, at most 500,000 characters; use the thread getter to retrieve persisted assistant replies." : ""}${exportPaths.has(path) ? " Returns an authenticated REST download URL; send the same bearer token or API key to download. Rendering occurs when downloaded." : ""}`,+ description: `${sentence(PARITY_TOOL_DESCRIPTIONS[path] ?? route.description ?? route.summary ?? path)}${path.startsWith("agent.messages.") && streamingPaths.has(path) ? " Returns collected stream chunks, at most 500,000 characters; use the thread getter to retrieve persisted assistant replies." : ""}${exportPaths.has(path) ? " Returns an authenticated REST download URL; send the same bearer token or API key to download. Rendering occurs when downloaded." : ""}`,inputSchema: contract.inputSchema,outputSchema: contract.outputSchema,annotations: {@@ -320,10 +329,7 @@ export const PARITY_TOOL_META: Record</update|delete|purge|remove|restore|password|trash|set/i.test(path)),idempotentHint: readOnly && !/draft|parse|test|search|improve|review/i.test(path),openWorldHint:- path === "statistics.github.getStarCount" ||- path === "career.saveSchedule" ||- path === "agent.messages.send" ||- /ai|webAccess|storage|attachments|Exports|importResumeFile/i.test(path),+ openWorldPaths.has(path) || /ai|webAccess|storage|attachments|Exports|importResumeFile/i.test(path),},},];@@ -333,6 +339,11 @@ export const PARITY_TOOL_META: Record<open_account_settings: accountToolMeta,};+/** Route summaries have no full stop; descriptions append further sentences. */+function sentence(text: string) {+ return /[.!?]$/.test(text) ? text : `${text}.`;+}+function requireZod(schema: unknown): z.ZodType {if (!(schema instanceof z.ZodType)) throw new Error("MCP procedure requires a Zod contract.");return schema;@@ -466,7 +477,7 @@ export function registerParityTools(...(context.signal && { signal: context.signal }),});} else {- result = await getClientCall(client, path === "resume.updates.subscribe" ? "resume.getById" : path)(input);+ result = await getClientCall(client, path)(input);}if (streamingPaths.has(path)) {const events: string[] = [];diff --git a/packages/mcp/src/tool-meta.ts b/packages/mcp/src/tool-meta.tsindex 8529ba93d..b1d44e88f 100644--- a/packages/mcp/src/tool-meta.ts+++ b/packages/mcp/src/tool-meta.ts@@ -48,6 +48,8 @@ export const PARITY_TOOL_DESCRIPTIONS: Record<string, string> = {"Apply the chosen changes (by index) of a read employer message to its application: stage, follow-up, next-step note, or saving offer terms. This changes the application; it does not send an email.","career.workspace":"Read an application's workspace: form answers, the submit checklist, questions to ask, evidence added from Fit, ticked plan rows and the pasted employer message.",+ "coverLetters.draft":+ "Write a draft of a cover letter's body with the user's AI provider, from the letter's linked resume and its application's job posting, using only facts from them. Returns the draft text as chunks in `events` to join in order; `truncated` is true past 500,000 characters. Nothing is saved: write the draft into the letter with `update_cover_letter`. Use variant `shorter` or `personal` with `previous` to revise an earlier draft.","career.saveWorkspace":"Save parts of an application's workspace. Each key given replaces that whole key; keys left out keep their values.","career.trackOpportunity":