-
Notifications
You must be signed in to change notification settings - Fork 0
Add oddkit_write tool definition (stub) #56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
3eb6e52
e4cda98
200fb3f
5844faf
bb4f487
910df12
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -65,8 +65,8 @@ Use when: | |
| required: ["action", "input"], | ||
| }, | ||
| annotations: { | ||
| destructiveHint: false, | ||
| idempotentHint: true, | ||
| destructiveHint: true, | ||
| idempotentHint: false, | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Orchestrator annotations mark all actions as destructiveHigh Severity The orchestrator tool's annotations were changed from |
||
| openWorldHint: true, | ||
| }, | ||
| }; | ||
|
|
@@ -265,6 +265,40 @@ export const TOOLS = [ | |
| annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: true, openWorldHint: false }, | ||
| cliFlags: {}, | ||
| }, | ||
| { | ||
| name: "write", | ||
| mcpName: "oddkit_write", | ||
| description: "Write files to the GitHub repo. Accepts file path(s), content, commit message. Validates against governance constraints. Supports branches and PRs optionally.", | ||
| inputSchema: { | ||
| type: "object", | ||
| properties: { | ||
| files: { | ||
| type: "array", | ||
| items: { | ||
| type: "object", | ||
| properties: { | ||
| path: { type: "string", description: "Repo-relative file path (e.g., docs/decisions/D0017.md)" }, | ||
| content: { type: "string", description: "File content (UTF-8 text)" }, | ||
| }, | ||
| required: ["path", "content"], | ||
| }, | ||
| description: "Array of files to write", | ||
| }, | ||
| message: { type: "string", description: "Commit message" }, | ||
| branch: { type: "string", description: "Optional: target branch. If omitted, writes to default branch." }, | ||
| pr: { type: "boolean", description: "Optional: if true, opens a PR from branch to default branch." }, | ||
| repo: { type: "string", description: "Optional: GitHub repo (owner/repo). Defaults to baseline repo." }, | ||
| }, | ||
| required: ["files", "message"], | ||
| }, | ||
| annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false }, | ||
| cliFlags: { | ||
| files: { flag: "--files <json>", description: "JSON array of {path, content} objects" }, | ||
| commitMessage: { flag: "--commit-message <text>", description: "Commit message", required: true }, | ||
| branch: { flag: "--branch <name>", description: "Optional branch name" }, | ||
| pr: { flag: "--pr", description: "Open PR after commit" }, | ||
| }, | ||
|
cursor[bot] marked this conversation as resolved.
|
||
| }, | ||
|
cursor[bot] marked this conversation as resolved.
|
||
| ]; | ||
|
|
||
| // ────────────────────────────────────────────────────────────────────────────── | ||
|
|
||


Uh oh!
There was an error while loading. Please reload this page.