mirror of
https://github.com/modelcontextprotocol/servers.git
synced 2026-04-20 21:05:17 +02:00
schema tweaks
This commit is contained in:
committed by
Peter M. Elias
parent
59b831f326
commit
90265c27d2
@@ -40,7 +40,7 @@ export const GitHubRepositorySchema = z.object({
|
|||||||
|
|
||||||
const GithubFileContentLinks = z.object({
|
const GithubFileContentLinks = z.object({
|
||||||
self: z.string(),
|
self: z.string(),
|
||||||
git:z.number().nullable(),
|
git: z.number().nullable(),
|
||||||
html: z.string().nullable()
|
html: z.string().nullable()
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -50,7 +50,7 @@ export const GitHubFileContentSchema = z.object({
|
|||||||
size: z.number(),
|
size: z.number(),
|
||||||
name: z.string(),
|
name: z.string(),
|
||||||
path: z.string(),
|
path: z.string(),
|
||||||
content: z.string().nullable(),
|
content: z.string(),
|
||||||
sha: z.string(),
|
sha: z.string(),
|
||||||
url: z.string(),
|
url: z.string(),
|
||||||
git_url: z.string(),
|
git_url: z.string(),
|
||||||
@@ -367,8 +367,6 @@ export const CreateRepositorySchema = z.object({
|
|||||||
});
|
});
|
||||||
|
|
||||||
export const GetFileContentsSchema = RepoParamsSchema.extend({
|
export const GetFileContentsSchema = RepoParamsSchema.extend({
|
||||||
owner: z.string().describe("Repository owner (username or organization)"),
|
|
||||||
repo: z.string().describe("Repository name"),
|
|
||||||
path: z.string().describe("Path to the file or directory"),
|
path: z.string().describe("Path to the file or directory"),
|
||||||
branch: z.string().optional().describe("Branch to get contents from"),
|
branch: z.string().optional().describe("Branch to get contents from"),
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user