Skip to main content
Glama
uright

Azure DevOps Wiki MCP Server

by uright
types.test.ts2.52 kB
import { WikiSearchRequestSchema, WikiPageTreeRequestSchema, WikiGetPageRequestSchema, WikiUpdatePageRequestSchema } from '../src/types'; describe('Request Schema Validation', () => { describe('WikiSearchRequestSchema', () => { it('should validate valid search request', () => { const validRequest = { organization: 'myorg', project: 'myproject', searchText: 'test search' }; expect(() => WikiSearchRequestSchema.parse(validRequest)).not.toThrow(); }); it('should reject empty organization', () => { const invalidRequest = { organization: '', project: 'myproject', searchText: 'test search' }; expect(() => WikiSearchRequestSchema.parse(invalidRequest)).toThrow(); }); }); describe('WikiPageTreeRequestSchema', () => { it('should validate valid page tree request', () => { const validRequest = { organization: 'myorg', project: 'myproject', wikiId: 'wiki123' }; expect(() => WikiPageTreeRequestSchema.parse(validRequest)).not.toThrow(); }); it('should validate request with depth', () => { const validRequest = { organization: 'myorg', project: 'myproject', wikiId: 'wiki123', depth: 3 }; expect(() => WikiPageTreeRequestSchema.parse(validRequest)).not.toThrow(); }); }); describe('WikiGetPageRequestSchema', () => { it('should validate valid get page request', () => { const validRequest = { organization: 'myorg', project: 'myproject', wikiId: 'wiki123', path: '/some/page' }; expect(() => WikiGetPageRequestSchema.parse(validRequest)).not.toThrow(); }); }); describe('WikiUpdatePageRequestSchema', () => { it('should validate valid update page request', () => { const validRequest = { organization: 'myorg', project: 'myproject', wikiId: 'wiki123', path: '/some/page', content: '# Updated content' }; expect(() => WikiUpdatePageRequestSchema.parse(validRequest)).not.toThrow(); }); it('should allow empty content', () => { const validRequest = { organization: 'myorg', project: 'myproject', wikiId: 'wiki123', path: '/some/page', content: '' }; expect(() => WikiUpdatePageRequestSchema.parse(validRequest)).not.toThrow(); }); }); });

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/uright/azure-devops-wiki-mcp'

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