Home / Servers / GitHub API / copilot_spaces_create_resource_for_user
Create a resource for a Copilot Space for a user
An MCP tool from the GitHub API server, hosted on mcp.hjlabs.in.
Create a resource for a Copilot Space for a user Creates a new resource in a specific Copilot Space owned by a user. The authenticated user must have write permissions on the space. The following resource types are supported: repository… [POST /users/{username}/copilot-spaces/{space_number}/resources]
Name on the gateway: github_api__copilot_spaces_create_resource_for_user · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
username required | string | The handle for the GitHub user account. |
space_number required | integer | The unique identifier of the Copilot Space. |
resource_type required | repository | github_file | free_text | github_issue | github_pull_request | The type of resource to create. |
metadata required | object | Resource-specific metadata. |
How to call it
Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:
{
"name": "github_api__copilot_spaces_create_resource_for_user",
"arguments": {
"username": "…",
"space_number": 0,
"resource_type": "…",
"metadata": "…"
}
}Or connect the GitHub API server directly, which lists 1,221 tools including this one:
claude mcp add --transport http hj-github-api https://mcp.hjlabs.in/mcp/github-api \
--header "Authorization: Bearer YOUR_API_KEY"Try asking
Use the create a resource for a copilot space for a user tool with username set to ….